[Openstack] "nova boot" errors while attaching a volume to an instance

Bontala, Vibhuvardhan vibhuvardhan.bontala at emc.com
Wed Oct 31 19:29:18 UTC 2012


Hi,

I am running GA bits of Folsom. I am running a two node setup where the first node is the controller+compute node that has Cinder running as well. The second node is merely a compute node. I am seeing an issue while booting an instance from Cinder volume on both the nodes. The "nova boot" operation fails while spawning the instance with the following error.

[00mProcessExecutionError: Unexpected error while running command.
[00mCommand: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887 -p 192.168.150.96:3260 --rescan
[00mExit code: 255
[00mStdout: ''
[00mStderr: 'iscsiadm: No portal found.\n'
[00m

I had successfully created a Cinder volume with a valid image on it.

+--------------------------------------+-----------+--------------+------+-------------+-------------+
|                  ID                  |   Status  | Display Name | Size | Volume Type | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+-------------+
| 3ac4b027-905e-4318-a74e-2bdf94f5d887 | available |   Volume1    |  2   |     None    |             |
+--------------------------------------+-----------+--------------+------+-------------+-------------+

I even tried to discover the iSCSI targets. But it returns with "no records found".

I then looked into to MySQL database for Cinder and looked at the entries, specifically "provider_location" and it looked just fine. 192.168.150.96 is the node where I have controller and cinder running.

+-----------------------------------------------------------------------------------------------+
| provider_location                                                                             |
+-----------------------------------------------------------------------------------------------+
| NULL                                                                                          |
| 192.168.150.96:3260,1 iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887 1 |

I manually tried to discover the iSCSI targets and it couldn't find any.

stack at esg-dell-c4-s08:/etc/cinder$ sudo iscsiadm -m discovery -t sendtargets -p 192.168.150.96:3260 192.168.150.96:3260,1 iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887
iscsiadm: Connection to Discovery Address 192.168.150.96 closed
iscsiadm: Login I/O error, failed to receive a PDU
iscsiadm: retrying discovery login to 192.168.150.96
stack at esg-dell-c4-s08:/etc/cinder$ sudo iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887 -p 192.168.150.96:3260iscsiadm: no records found!
stack at esg-dell-c4-s08:/etc/cinder$ sudo iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3ac4b027-905e-4318-a74e-2bdf94f5d887 -p 192.168.150.96:3260 --rescan
iscsiadm: No portal found.
stack at esg-dell-c4-s08:/etc/cinder$

I am not sure what's wrong with my setup. Any help is greatly appreciated.

Thanks
Vibhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121031/5de36b5a/attachment.html>


More information about the Openstack mailing list