Attach volume to instance running on different compute node

asked 2013-10-17 05:45:02 -0500

vladber gravatar image

I'm running a cinder on each compute node locally .

Is it possible to attach volume which resides on one compute node to instance is running on another one ?

I have the following problem .On the compute node #1 where instance is running I got this error while tried to attach some volume from compute node #2 :

Oct 17 10:43:50 compute02 kernel: [848806.148673] scsi16 : iSCSI Initiator over TCP/IP Oct 17 10:43:50 compute02 kernel: [848806.152548] connection12:0: detected conn error (1020) Oct 17 10:43:50 compute02 tgtd: conn_close(101) connection closed, 0x1522808 1 Oct 17 10:43:51 compute02 iscsid: conn 0 login rejected: initiator error - target not found (02/03)

If both instance and volume are on the same node attach works just fine .

Manually I succeeded to login from compoute02 to discover and login to the target using iscsiadm tool :

root@compute02:~# iscsiadm -m discovery -t st -p 10.63.16.250 10.63.16.250:3260,1 iqn.2010-10.org.openstack:volume-a98621a2-5ddd-4716-979b-ffa9b4e6ba2d 10.63.16.250:3260,1 iqn.2010-10.org.openstack:volume-7cadb590-71dc-481d-b12e-5dfffa137898 10.63.16.250:3260,1 iqn.2010-10.org.openstack:volume-03874058-3453-4638-98b5-e24ad04d290b

root@compute02:~# iscsiadm -m node -T iqn.2010-10.org.openstack:volume-7cadb590-71dc-481d-b12e-5dfffa137898 -p 10.63.16.250 -l Logging in to [iface: default, target: iqn.2010-10.org.openstack:volume-7cadb590-71dc-481d-b12e-5dfffa137898, portal: 10.63.16.250,3260] Login to [iface: default, target: iqn.2010-10.org.openstack:volume-7cadb590-71dc-481d-b12e-5dfffa137898, portal: 10.63.16.250,3260]: successful

If I migrate instance to the volume compute node attachment works .

/Vlad.

edit retag flag offensive close delete