firewall port for ZFS Appliance with Oracle VM Storageconnect

I just stumbled across this and could not find it anywhere else on the net. I set up a ZFS Appliance with Oracle VM and their storageconnect plugin according to the documentation pdf (which are pretty easy step-by-step instructions) but in this case the OVM Server and the ZFS Appliance were not in the same network and access is denied by default in the firewall between those nets. So trying to register the appliance as a FC Storage led to this error that just tells me that the connection timed out.

(03/03/2014 04:30:38:233 PM)
OVMAPI_B000E Storage plugin command [storage_plugin_validate] failed for storage server [0004fb0000090000ddffb1ffb5081da6]
failed with [com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command:
storage_plugin_validate to server: ovm42 failed.
OVMAPI_4004E Server Failed Command: storage_plugin_validate oracle.s7k.
SCSIPlugin.SCSIPlugin, Status: OSCPlugin.OperationFailedEx:'URL failure: Connection timed out' [Mon Mar 03 16:30:38 CET 2014]
[Mon Mar 03 16:30:38 CET 2014]] OVMAPI_4010E Attempt to send command: storage_plugin_validate to server: ovm42 failed.
OVMAPI_4004E Server Failed Command: storage_plugin_validate oracle.s7k.SCSIPlugin.SCSIPlugin, Status: 
org.apache.xmlrpc.XmlRpcException: OSCPlugin.OperationFailedEx:'URL failure: Connection timed out' [Mon Mar 03 16:30:38 CET 2014]
[Mon Mar 03 16:30:38 CET 2014] [Mon Mar 03 16:30:38 CET 2014]

Luckily, the ovm server has tcpdump installed, so I fired it up and checked which port it was trying to reach. My guess was that the SC Plugin would communicate over ssh but it looks like I assumed wrongly:

Warning: making manual modifications in the management domain 
might cause inconsistencies between Oracle VM Manager and the server.

[root@ovm42 ~]# tcpdump -i bond0 host 192.168.142.74
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on bond0, link-type EN10MB (Ethernet), capture size 96 bytes
16:27:28.742474 IP 192.168.42.42.56542 > 192.168.142.74.215: S 1866677898:1866677898(0) win 14600 
16:27:31.746946 IP 192.168.42.42.56542 > 192.168.142.74.215: S 1866677898:1866677898(0) win 14600 
16:27:37.763049 IP 192.168.42.42.56542 > 192.168.142.74.215: S 1866677898:1866677898(0) win 14600 
16:27:49.778992 IP 192.168.42.42.56542 > 192.168.142.74.215: S 1866677898:1866677898(0) win 14600 

So take this as a quick tip: When configuring Oracle VM Manager with Storage Connect to ZFS Appliances, make sure to open tcp port 215 from your OVM Servers (not the management Server btw) to your Appliance.

Leave a Reply

Your email address will not be published. Required fields are marked *