yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01491
[Bug 1124441] Re: config drive not created when booting from volume
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1124441
Title:
config drive not created when booting from volume
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
When booting from volume with a config drive, libvirt fails to
instantiate because the disk.config is never created in the instance
directory. This was recently broken.
This could be related to bug 984996 (instance directory not created)
but I'm not sure
I boot a VM from volume using this:
nova boot --config-drive=true --block-device-mapping vda=<VOLUME ID
HERE>:::0 --flavor=1 --nic net-id=38278b90-9f80-44ec-b2a5-dac6a7066a5e
autoBFV
This will generate the following error:
2013-02-13 14:29:20.831 DEBUG nova.utils [req-ab6b48d5-c2e6-43c4-970c-f65b16acfda5 8636766bc6b342539a9c1b0e3e0c24cc 24e6c25ee7bf4f5bbcd19c53bbe84f37] Result was 0 execute /usr/lib/python2.7/dist-packages/nova/utils.py:231
2013-02-13 14:29:20.833 DEBUG nova.utils [req-ab6b48d5-c2e6-43c4-970c-f65b16acfda5 8636766bc6b342539a9c1b0e3e0c24cc 24e6c25ee7bf4f5bbcd19c53bbe84f37] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-restore -c execute /usr/lib/python2.7/dist-packages/nova/utils.py:207
2013-02-13 14:29:20.909 DEBUG nova.utils [req-ab6b48d5-c2e6-43c4-970c-f65b16acfda5 8636766bc6b342539a9c1b0e3e0c24cc 24e6c25ee7bf4f5bbcd19c53bbe84f37] Result was 0 execute /usr/lib/python2.7/dist-packages/nova/utils.py:231
2013-02-13 14:29:20.910 DEBUG nova.network.linux_net [req-ab6b48d5-c2e6-43c4-970c-f65b16acfda5 8636766bc6b342539a9c1b0e3e0c24cc 24e6c25ee7bf4f5bbcd19c53bbe84f37] IPTablesManager.apply completed with success _apply /usr/lib/python2.7/dist-packages/nova/network/linux_net.py:391
2013-02-13 14:29:20.911 DEBUG nova.openstack.common.lockutils [req-ab6b48d5-c2e6-43c4-970c-f65b16acfda5 8636766bc6b342539a9c1b0e3e0c24cc 24e6c25ee7bf4f5bbcd19c53bbe84f37] Released file lock "iptables" at /var/lock/nova/nova-iptables for method "_apply"... inner /usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py:235
2013-02-13 14:29:22.607 ERROR nova.compute.manager [req-ab6b48d5-c2e6-43c4-970c-f65b16acfda5 8636766bc6b342539a9c1b0e3e0c24cc 24e6c25ee7bf4f5bbcd19c53bbe84f37] [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] Instance failed to spawn
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] Traceback (most recent call last):
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 985, in _spawn
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] block_device_info)
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1205, in spawn
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] block_device_info)
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2087, in _create_domain_and_network
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] domain = self._create_domain(xml, instance=instance)
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2048, in _create_domain
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] domain.createWithFlags(launch_flags)
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 187, in doit
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] result = proxy_call(self._autowrap, f, *args, **kwargs)
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 147, in proxy_call
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] rv = execute(f,*args,**kwargs)
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 76, in tworker
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] rv = meth(*args,**kwargs)
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] File "/usr/lib/python2.7/dist-packages/libvirt.py", line 650, in createWithFlags
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2013-02-13 14:29:22.607 3204 TRACE nova.compute.manager [instance: ab87f0d0-15bf-4c23-b504-227ba274b5e6] libvirtError: Unable to allow access for disk path /var/lib/nova/instances/instance-0000002d/disk.config: No such file or directory
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1124441/+subscriptions