Error when booting a VM from a volume

Bug #1157095 reported by Vincent Hou
This bug report is a duplicate of:  Bug #1155512: Issues with booting from the volume. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

First, I create a bootable volume with "cinder create --image-id $image_id--display_name=boot_volume --display_description "test bootable volume" 2".
What I expect: the image has been copied into the volume.
Then, I boot a VM from this volume with "nova boot --flavor 2 --block-device-mapping vda=$vol_id --security_groups=default VM_test".
What I expect: the VM should be successfully booted and in healthy state.
Result:
=======================================error of n-cpu===============================
2013-03-19 18:04:33.814 DEBUG nova.openstack.common.rpc.amqp [req-96f381c7-05cf-4d62-8021-d810f976bac9 admin admin] Making asynchronous cast on scheduler... from (pid=26395) cast /opt/stack/nova/nova/openstack/common/rpc/amqp.py:621
2013-03-19 18:04:33.827 DEBUG nova.openstack.common.rpc.amqp [req-96f381c7-05cf-4d62-8021-d810f976bac9 admin admin] UNIQUE_ID is ddffd4f390844d28a8de56e2799c0af3. from (pid=26395) _add_unique_id /opt/stack/nova/nova/openstack/common/rpc/amqp.py:337
2013-03-19 18:04:33.895 ERROR nova.compute.manager [req-96f381c7-05cf-4d62-8021-d810f976bac9 admin admin] [instance: f9c678eb-0365-4a38-9ec6-c733a502aa51] Error: ['Traceback (most recent call last):\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 801, in _run_instance\n set_access_ip=set_access_ip)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 1058, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', ' File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n self.gen.next()\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 1055, in _spawn\n block_device_info)\n', ' File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1510, in spawn\n block_device_info=block_device_info)\n', ' File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2326, in to_xml\n disk_info, rescue, block_device_info)\n', ' File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2244, in get_guest_config\n inst_type):\n', ' File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2088, in get_guest_storage_config\n info)\n', ' File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 943, in volume_driver_method\n return method(connection_info, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 242, in inner\n retval = f(*args, **kwargs)\n', ' File "/opt/stack/nova/nova/virt/libvirt/volume.py", line 245, in connect_volume\n self._run_iscsiadm(iscsi_properties, ("--rescan",))\n', ' File "/opt/stack/nova/nova/virt/libvirt/volume.py", line 179, in _run_iscsiadm\n check_exit_code=check_exit_code)\n', ' File "/opt/stack/nova/nova/utils.py", line 239, in execute\n cmd=\' \'.join(cmd))\n', "ProcessExecutionError: Unexpected error while running command.\nCommand: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-bdd314ba-d933-430d-bc81-e0718cb0f093 -p 9.119.148.202:3260 --rescan\nExit code: 255\nStdout: ''\nStderr: 'iscsiadm: No portal found.\\n'\n"]
2013-03-19 18:04:33.897 DEBUG nova.openstack.common.rpc.amqp [req-96f381c7-05cf-4d62-8021-d810f976bac9 admin admin] Making synchronous call on conductor ... from (pid=26395) multicall /opt/stack/nova/nova/openstack/common/rpc/amqp.py:584
2013-03-19 18:04:33.901 DEBUG nova.openstack.common.rpc.amqp [req-96f381c7-05cf-4d62-8021-d810f976bac9 admin admin] MSG_ID is 637946a31c9b4a78b863bce28422e9b4 from (pid=26395) multicall /opt/stack/nova/nova/openstack/common/rpc/amqp.py:587
2013-03-19 18:04:33.904 DEBUG nova.openstack.common.rpc.amqp [req-96f381c7-05cf-4d62-8021-d810f976bac9 admin admin] UNIQUE_ID is d3ecc28b44d34557b2ab7083dd023f6f. from (pid=26395) _add_unique_id /opt/stack/nova/nova/openstack/common/rpc/amqp.py:337
2013-03-19 18:04:40.415 DEBUG nova.openstack.common.rpc.amqp [-] Making synchronous call on conductor ... from (pid=26395) multicall /opt/stack/nova/nova/openstack/common/rpc/amqp.py:584
2013-03-19 18:04:40.415 DEBUG nova.openstack.common.rpc.amqp [-] MSG_ID is c8efc365a6284a8bbaa2f01cda4e575e from (pid=26395) multicall /opt/stack/nova/nova/openstack/common/rpc/amqp.py:587
=====================================================================================

Revision history for this message
Chuck Short (zulcss) wrote :

I am not able to reproduce this which version are you using and which os?

Changed in nova:
status: New → Incomplete
Revision history for this message
Vincent Hou (houshengbo) wrote :

I am using the latest devstack and the OpenStack code under Ubuntu 12.04. The error disappeared, but there is a new problem.
1. glance image-list to retrieve the image-id.
2. Create a VM from the image: nova boot --flavor 2 --image $image-id --security_groups=default VM_test_from_image
The VM is running actively and I can ping it.

Then I tried booting from a volume.
1. Create a volume from the image: cinder create --image-id $image_id --display_name=boot_volume --display_description "test bootable volume" 2
2. Check the volume id: cinder list
2. Create a VM from the volume: nova boot --flavor 2 --block-device-mapping vda=$vol_id --security_groups=default VM_test
This VM is also running actively, but I cannot ping it.

Changed in nova:
status: Incomplete → New
Revision history for this message
Chuck Short (zulcss) wrote :

Vincent,

Can you please open another bug about the problems you are seeing since the original bug has disapeared.

chuck

Changed in nova:
status: New → Invalid
Revision history for this message
Vincent Hou (houshengbo) wrote :
Revision history for this message
Vincent Hou (houshengbo) wrote : Re: [Bug 1157095] Re: Error when booting a VM from a volume
Download full text (5.3 KiB)

Chuck:

https://bugs.launchpad.net/nova/+bug/1155512.

Please refer to this one.

On Tue, Mar 19, 2013 at 10:14 PM, Chuck Short <email address hidden>wrote:

> I am not able to reproduce this which version are you using and which
> os?
>
> ** Changed in: nova
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1157095
>
> Title:
> Error when booting a VM from a volume
>
> Status in OpenStack Compute (Nova):
> Incomplete
>
> Bug description:
> First, I create a bootable volume with "cinder create --image-id
> $image_id--display_name=boot_volume --display_description "test bootable
> volume" 2".
> What I expect: the image has been copied into the volume.
> Then, I boot a VM from this volume with "nova boot --flavor 2
> --block-device-mapping vda=$vol_id --security_groups=default VM_test".
> What I expect: the VM should be successfully booted and in healthy state.
> Result:
> =======================================error of
> n-cpu===============================
> 2013-03-19 18:04:33.814 DEBUG nova.openstack.common.rpc.amqp
> [req-96f381c7-05cf-4d62-8021-d810f976bac9 admin admin] Making asynchronous
> cast on scheduler... from (pid=26395) cast
> /opt/stack/nova/nova/openstack/common/rpc/amqp.py:621
> 2013-03-19 18:04:33.827 DEBUG nova.openstack.common.rpc.amqp
> [req-96f381c7-05cf-4d62-8021-d810f976bac9 admin admin] UNIQUE_ID is
> ddffd4f390844d28a8de56e2799c0af3. from (pid=26395) _add_unique_id
> /opt/stack/nova/nova/openstack/common/rpc/amqp.py:337
> 2013-03-19 18:04:33.895 ERROR nova.compute.manager
> [req-96f381c7-05cf-4d62-8021-d810f976bac9 admin admin] [instance:
> f9c678eb-0365-4a38-9ec6-c733a502aa51] Error: ['Traceback (most recent call
> last):\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 801, in
> _run_instance\n set_access_ip=set_access_ip)\n', ' File
> "/opt/stack/nova/nova/compute/manager.py", line 1058, in _spawn\n
> LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', '
> File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n
> self.gen.next()\n', ' File "/opt/stack/nova/nova/compute/manager.py",
> line 1055, in _spawn\n block_device_info)\n', ' File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1510, in spawn\n
> block_device_info=block_device_info)\n', ' File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2326, in to_xml\n
> disk_info, rescue, block_device_info)\n', ' File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2244, in
> get_guest_config\n inst_type):\n', ' File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2088, in
> get_guest_storage_config\n info)\n', ' File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 943, in
> volume_driver_method\n return method(connection_info, *args,
> **kwargs)\n', ' File "/opt/stack/nova/nova/openstack/common/lockutils.py",
> line 242, in inner\n retval = f(*args, **kwargs)\n', ' File
> "/opt/stack/nova/nova/virt/libvirt/volume.py", line 245, in
> connect_volume\n self._run_iscsiadm(iscsi_properties, ("--rescan",))\n',
> ' File "/opt/stack/nova/n...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.