openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #18065
"nova boot" errors while attaching a volume to an instance
-
To:
openstack mail list <openstack@xxxxxxxxxxxxxxxxxxx>
-
From:
"Bontala, Vibhuvardhan" <vibhuvardhan.bontala@xxxxxxx>
-
Date:
Wed, 31 Oct 2012 15:29:18 -0400
-
Accept-language:
en-US
-
Acceptlanguage:
en-US
-
Thread-index:
Ac23ngVX2baJeYTzRZOyfT94kEm+vw==
-
Thread-topic:
"nova boot" errors while attaching a volume to an instance
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@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@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@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@esg-dell-c4-s08:/etc/cinder$
I am not sure what's wrong with my setup. Any help is greatly appreciated.
Thanks
Vibhu
Follow ups