yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #19644
[Bug 1362842] [NEW] Can't re-attach volumes to instances
Public bug reported:
When detaching a volume from an instance, and then re-attaching that
same volume to that same instance nova fails to attach.
Error:
2014-08-28 13:36:02.134 [01;31mERROR nova.virt.block_device [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [01;31mDriver failed to attach volume a2439dd9-49ef-4ce0-8b91-155ff6ecd3b0 at /dev/vdb[00m
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00mTraceback (most recent call last):
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/block_device.py", line 252, in attach
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m device_type=self['device_type'], encryption=encryption)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1315, in attach_volume
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m self._disconnect_volume(connection_info, disk_dev)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1306, in attach_volume
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m virt_dom.attachDeviceFlags(conf.to_xml(), flags)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m result = proxy_call(self._autowrap, f, *args, **kwargs)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m rv = execute(f,*args,**kwargs)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m rv = meth(*args,**kwargs)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/lib/python2.7/dist-packages/libvirt.py", line 420, in attachDeviceFlags
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m if ret == -1: raise libvirtError ('virDomainAttachDeviceFlags() failed', dom=self)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00mlibvirtError: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m
2014-08-28 13:36:02.136 [00;32mDEBUG nova.volume.cinder [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mCinderclient connection created using URL: http://10.50.142.1:8776/v1/a7b96ab31ea340ff8a6c900c7b3449ba[00m [00;33mfrom (pid=36738) get_cinder_client_version /opt/stack/nova/nova/volume/cinder.py:238[00m
2014-08-28 13:36:02.748 [01;31mERROR nova.compute.manager [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [01;31mFailed to attach a2439dd9-49ef-4ce0-8b91-155ff6ecd3b0 at /dev/vdb[00m
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00mTraceback (most recent call last):
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/compute/manager.py", line 4368, in _attach_volume
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m do_check_attach=False, do_driver_attach=True)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/block_device.py", line 46, in wrapped
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m ret_val = method(obj, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/block_device.py", line 261, in attach
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m connector)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/block_device.py", line 252, in attach
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m device_type=self['device_type'], encryption=encryption)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1315, in attach_volume
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m self._disconnect_volume(connection_info, disk_dev)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1306, in attach_volume
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m virt_dom.attachDeviceFlags(conf.to_xml(), flags)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m result = proxy_call(self._autowrap, f, *args, **kwargs)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m rv = execute(f,*args,**kwargs)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m rv = meth(*args,**kwargs)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/lib/python2.7/dist-packages/libvirt.py", line 420, in attachDeviceFlags
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m if ret == -1: raise libvirtError ('virDomainAttachDeviceFlags() failed', dom=self)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00mlibvirtError: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m
2014-08-28 13:36:02.750 [00;32mDEBUG nova.volume.cinder [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mCinderclient connection created using URL: http://10.50.142.1:8776/v1/a7b96ab31ea340ff8a6c900c7b3449ba[00m [00;33mfrom (pid=36738) get_cinder_client_version /opt/stack/nova/nova/volume/cinder.py:238[00m
2014-08-28 13:36:02.888 [00;32mDEBUG nova.openstack.common.lockutils [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mGot semaphore "compute_resources"[00m [00;33mfrom (pid=36738) internal_lock /opt/stack/nova/nova/openstack/common/lockutils.py:263[00m
2014-08-28 13:36:02.888 [00;32mDEBUG nova.openstack.common.lockutils [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mGot semaphore / lock "update_usage"[00m [00;33mfrom (pid=36738) inner /opt/stack/nova/nova/openstack/common/lockutils.py:324[00m
2014-08-28 13:36:02.914 [00;32mDEBUG nova.openstack.common.lockutils [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mReleased semaphore "compute_resources"[00m [00;33mfrom (pid=36738) lock /opt/stack/nova/nova/openstack/common/lockutils.py:291[00m
2014-08-28 13:36:02.914 [00;32mDEBUG nova.openstack.common.lockutils [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mSemaphore / lock released "update_usage"[00m [00;33mfrom (pid=36738) inner /opt/stack/nova/nova/openstack/common/lockutils.py:328[00m
2014-08-28 13:36:02.917 [01;31mERROR oslo.messaging.rpc.dispatcher [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[01;31mException during message handling: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device[00m
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00mTraceback (most recent call last):
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m incoming.message))
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return self._do_dispatch(endpoint, method, ctxt, args)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m result = getattr(endpoint, method)(ctxt, **new_args)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 412, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return function(self, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m payload)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/exception.py", line 71, in wrapped
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return f(self, context, *args, **kw)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 296, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m pass
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 282, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return function(self, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 324, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m kwargs['instance'], e, sys.exc_info())
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 312, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return function(self, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 4358, in attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m bdm.destroy(context)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 4355, in attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return self._attach_volume(context, instance, driver_bdm)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 4376, in _attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m self.volume_api.unreserve_volume(context, bdm.volume_id)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 4368, in _attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m do_check_attach=False, do_driver_attach=True)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/block_device.py", line 46, in wrapped
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m ret_val = method(obj, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/block_device.py", line 261, in attach
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m connector)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/block_device.py", line 252, in attach
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m device_type=self['device_type'], encryption=encryption)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1315, in attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m self._disconnect_volume(connection_info, disk_dev)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1306, in attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m virt_dom.attachDeviceFlags(conf.to_xml(), flags)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m result = proxy_call(self._autowrap, f, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m rv = execute(f,*args,**kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m rv = meth(*args,**kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/lib/python2.7/dist-packages/libvirt.py", line 420, in attachDeviceFlags
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m if ret == -1: raise libvirtError ('virDomainAttachDeviceFlags() failed', dom=self)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00mlibvirtError: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m
2014-08-28 13:36:02.921 [01;31mERROR oslo.messaging._drivers.common [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[01;31mReturning exception internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device to caller[00m
2014-08-28 13:36:02.922 [01;31mERROR oslo.messaging._drivers.common [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[01;31m['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 412, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/exception.py", line 88, in wrapped\n payload)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/exception.py", line 71, in wrapped\n return f(self, context, *args, **kw)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 296, in decorated_function\n pass\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 282, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 324, in decorated_function\n kwargs[\'instance\'], e, sys.exc_info())\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 312, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 4358, in attach_volume\n bdm.destroy(context)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 4355, in attach_volume\n return self._attach_volume(context, instance, driver_bdm)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 4376, in _attach_volume\n self.volume_api.unreserve_volume(context, bdm.volume_id)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 4368, in _attach_volume\n do_check_attach=False, do_driver_attach=True)\n', ' File "/opt/stack/nova/nova/virt/block_device.py", line 46, in wrapped\n ret_val = method(obj, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/virt/block_device.py", line 261, in attach\n connector)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/virt/block_device.py", line 252, in attach\n device_type=self[\'device_type\'], encryption=encryption)\n', ' File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1315, in attach_volume\n self._disconnect_volume(connection_info, disk_dev)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1306, in attach_volume\n virt_dom.attachDeviceFlags(conf.to_xml(), flags)\n', ' File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit\n result = proxy_call(self._autowrap, f, *args, **kwargs)\n', ' File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call\n rv = execute(f,*args,**kwargs)\n', ' File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker\n rv = meth(*args,**kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/libvirt.py", line 420, in attachDeviceFlags\n if ret == -1: raise libvirtError (\'virDomainAttachDeviceFlags() failed\', dom=self)\n', "libvirtError: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device\n"][00m
** Affects: nova
Importance: Undecided
Status: New
--
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/1362842
Title:
Can't re-attach volumes to instances
Status in OpenStack Compute (Nova):
New
Bug description:
When detaching a volume from an instance, and then re-attaching that
same volume to that same instance nova fails to attach.
Error:
2014-08-28 13:36:02.134 [01;31mERROR nova.virt.block_device [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [01;31mDriver failed to attach volume a2439dd9-49ef-4ce0-8b91-155ff6ecd3b0 at /dev/vdb[00m
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00mTraceback (most recent call last):
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/block_device.py", line 252, in attach
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m device_type=self['device_type'], encryption=encryption)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1315, in attach_volume
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m self._disconnect_volume(connection_info, disk_dev)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1306, in attach_volume
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m virt_dom.attachDeviceFlags(conf.to_xml(), flags)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m result = proxy_call(self._autowrap, f, *args, **kwargs)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m rv = execute(f,*args,**kwargs)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m rv = meth(*args,**kwargs)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/lib/python2.7/dist-packages/libvirt.py", line 420, in attachDeviceFlags
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m if ret == -1: raise libvirtError ('virDomainAttachDeviceFlags() failed', dom=self)
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00mlibvirtError: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device
[01;31m2014-08-28 13:36:02.134 TRACE nova.virt.block_device [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m
2014-08-28 13:36:02.136 [00;32mDEBUG nova.volume.cinder [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mCinderclient connection created using URL: http://10.50.142.1:8776/v1/a7b96ab31ea340ff8a6c900c7b3449ba[00m [00;33mfrom (pid=36738) get_cinder_client_version /opt/stack/nova/nova/volume/cinder.py:238[00m
2014-08-28 13:36:02.748 [01;31mERROR nova.compute.manager [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [01;31mFailed to attach a2439dd9-49ef-4ce0-8b91-155ff6ecd3b0 at /dev/vdb[00m
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00mTraceback (most recent call last):
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/compute/manager.py", line 4368, in _attach_volume
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m do_check_attach=False, do_driver_attach=True)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/block_device.py", line 46, in wrapped
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m ret_val = method(obj, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/block_device.py", line 261, in attach
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m connector)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/block_device.py", line 252, in attach
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m device_type=self['device_type'], encryption=encryption)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1315, in attach_volume
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m self._disconnect_volume(connection_info, disk_dev)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1306, in attach_volume
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m virt_dom.attachDeviceFlags(conf.to_xml(), flags)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m result = proxy_call(self._autowrap, f, *args, **kwargs)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m rv = execute(f,*args,**kwargs)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m rv = meth(*args,**kwargs)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m File "/usr/lib/python2.7/dist-packages/libvirt.py", line 420, in attachDeviceFlags
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m if ret == -1: raise libvirtError ('virDomainAttachDeviceFlags() failed', dom=self)
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00mlibvirtError: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device
[01;31m2014-08-28 13:36:02.748 TRACE nova.compute.manager [01;35m[instance: b813c603-6dad-44bd-acdb-76f1fd84899f] [00m
2014-08-28 13:36:02.750 [00;32mDEBUG nova.volume.cinder [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mCinderclient connection created using URL: http://10.50.142.1:8776/v1/a7b96ab31ea340ff8a6c900c7b3449ba[00m [00;33mfrom (pid=36738) get_cinder_client_version /opt/stack/nova/nova/volume/cinder.py:238[00m
2014-08-28 13:36:02.888 [00;32mDEBUG nova.openstack.common.lockutils [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mGot semaphore "compute_resources"[00m [00;33mfrom (pid=36738) internal_lock /opt/stack/nova/nova/openstack/common/lockutils.py:263[00m
2014-08-28 13:36:02.888 [00;32mDEBUG nova.openstack.common.lockutils [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mGot semaphore / lock "update_usage"[00m [00;33mfrom (pid=36738) inner /opt/stack/nova/nova/openstack/common/lockutils.py:324[00m
2014-08-28 13:36:02.914 [00;32mDEBUG nova.openstack.common.lockutils [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mReleased semaphore "compute_resources"[00m [00;33mfrom (pid=36738) lock /opt/stack/nova/nova/openstack/common/lockutils.py:291[00m
2014-08-28 13:36:02.914 [00;32mDEBUG nova.openstack.common.lockutils [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[00;32m] [01;35m[00;32mSemaphore / lock released "update_usage"[00m [00;33mfrom (pid=36738) inner /opt/stack/nova/nova/openstack/common/lockutils.py:328[00m
2014-08-28 13:36:02.917 [01;31mERROR oslo.messaging.rpc.dispatcher [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[01;31mException during message handling: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device[00m
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00mTraceback (most recent call last):
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m incoming.message))
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return self._do_dispatch(endpoint, method, ctxt, args)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m result = getattr(endpoint, method)(ctxt, **new_args)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 412, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return function(self, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m payload)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/exception.py", line 71, in wrapped
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return f(self, context, *args, **kw)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 296, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m pass
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 282, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return function(self, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 324, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m kwargs['instance'], e, sys.exc_info())
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 312, in decorated_function
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return function(self, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 4358, in attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m bdm.destroy(context)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 4355, in attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return self._attach_volume(context, instance, driver_bdm)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 4376, in _attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m self.volume_api.unreserve_volume(context, bdm.volume_id)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/compute/manager.py", line 4368, in _attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m do_check_attach=False, do_driver_attach=True)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/block_device.py", line 46, in wrapped
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m ret_val = method(obj, context, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/block_device.py", line 261, in attach
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m connector)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/block_device.py", line 252, in attach
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m device_type=self['device_type'], encryption=encryption)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1315, in attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m self._disconnect_volume(connection_info, disk_dev)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m six.reraise(self.type_, self.value, self.tb)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1306, in attach_volume
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m virt_dom.attachDeviceFlags(conf.to_xml(), flags)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m result = proxy_call(self._autowrap, f, *args, **kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m rv = execute(f,*args,**kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m rv = meth(*args,**kwargs)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/lib/python2.7/dist-packages/libvirt.py", line 420, in attachDeviceFlags
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m if ret == -1: raise libvirtError ('virDomainAttachDeviceFlags() failed', dom=self)
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00mlibvirtError: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device
[01;31m2014-08-28 13:36:02.917 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m
2014-08-28 13:36:02.921 [01;31mERROR oslo.messaging._drivers.common [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[01;31mReturning exception internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device to caller[00m
2014-08-28 13:36:02.922 [01;31mERROR oslo.messaging._drivers.common [[01;36mreq-79e463d4-7e6d-4fce-8b04-e98de64d91a7 [00;36madmin admin[01;31m] [01;35m[01;31m['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 412, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/exception.py", line 88, in wrapped\n payload)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/exception.py", line 71, in wrapped\n return f(self, context, *args, **kw)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 296, in decorated_function\n pass\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 282, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 324, in decorated_function\n kwargs[\'instance\'], e, sys.exc_info())\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 312, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 4358, in attach_volume\n bdm.destroy(context)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 4355, in attach_volume\n return self._attach_volume(context, instance, driver_bdm)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 4376, in _attach_volume\n self.volume_api.unreserve_volume(context, bdm.volume_id)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 4368, in _attach_volume\n do_check_attach=False, do_driver_attach=True)\n', ' File "/opt/stack/nova/nova/virt/block_device.py", line 46, in wrapped\n ret_val = method(obj, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/virt/block_device.py", line 261, in attach\n connector)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/virt/block_device.py", line 252, in attach\n device_type=self[\'device_type\'], encryption=encryption)\n', ' File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1315, in attach_volume\n self._disconnect_volume(connection_info, disk_dev)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1306, in attach_volume\n virt_dom.attachDeviceFlags(conf.to_xml(), flags)\n', ' File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit\n result = proxy_call(self._autowrap, f, *args, **kwargs)\n', ' File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call\n rv = execute(f,*args,**kwargs)\n', ' File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker\n rv = meth(*args,**kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/libvirt.py", line 420, in attachDeviceFlags\n if ret == -1: raise libvirtError (\'virDomainAttachDeviceFlags() failed\', dom=self)\n', "libvirtError: internal error unable to execute QEMU command 'device_add': Duplicate ID 'virtio-disk1' for device\n"][00m
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1362842/+subscriptions
Follow ups
References