← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1536453] Re: swap volume failed because block copy still active

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

-- 
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/1536453

Title:
  swap volume failed because block copy still active

Status in OpenStack Compute (nova):
  Expired

Bug description:
  version : kilo

  description:

  I migrate a volume which is in in-use status on lvm to another VG . It will be error in most time . I don‘t know why .
  Becasuse when I don't use the volume on lvm to migrate .It will be ok.

  
  product steps:

  1 create a volume on VG
  2 create a vm
  3 attach the volume to the vm
  4 migrate the volume to another VG.

  error logs:

  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5582, in _swap_volume
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]     resize_to)
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1232, in swap_volume
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]     self._swap_volume(virt_dom, disk_dev, conf.source_path, resize_to)
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1203, in _swap_volume
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]     self._conn.defineXML(xml)
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 183, in doit
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]     result = proxy_call(self._autowrap, f, *args, **kwargs)
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]     rv = execute(f, *args, **kwargs)
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]     six.reraise(c, e, tb)
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]     rv = meth(*args, **kwargs)
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3632, in defineXML
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd]     if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd] libvirtError: block copy still active: domain has active block job
  2016-01-21 11:13:40.918 27863 TRACE nova.compute.manager [instance: 35158835-9b79-49e9-9a92-e6bbfaba50dd] 
  2016-01-21 11:13:41.686 27863 INFO nova.scheduler.client.report [req-c59264b3-9223-472e-b1c4-bfc3f5643393 9134a1a11e5441c29e37757231f36450 32bfe3124bb2478aad3e6aa1cee09f14 - - -] Compute_service record updated for ('2C5_19_CG2', '2C5_19_CG2')
  2016-01-21 11:13:41.687 27863 ERROR oslo_messaging.rpc.dispatcher [req-c59264b3-9223-472e-b1c4-bfc3f5643393 9134a1a11e5441c29e37757231f36450 32bfe3124bb2478aad3e6aa1cee09f14 - - -] Exception during message handling: block copy still active: domain has active block job
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     executor_callback))
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     executor_callback)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 8262, in swap_volume
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     new_volume_id)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 88, in wrapped
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     payload)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 71, in wrapped
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     return f(self, context, *args, **kw)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 376, in decorated_function
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     LOG.warning(msg, e, instance_uuid=instance_uuid)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 347, in decorated_function
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 404, in decorated_function
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 392, in decorated_function
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5634, in swap_volume
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     new_volume_id)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5601, in _swap_volume
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     self.volume_api.unreserve_volume(context, new_volume_id)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5582, in _swap_volume
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     resize_to)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1232, in swap_volume
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     self._swap_volume(virt_dom, disk_dev, conf.source_path, resize_to)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1203, in _swap_volume
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     self._conn.defineXML(xml)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 183, in doit
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     result = proxy_call(self._autowrap, f, *args, **kwargs)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     rv = execute(f, *args, **kwargs)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     six.reraise(c, e, tb)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     rv = meth(*args, **kwargs)
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3632, in defineXML
  2016-01-21 11:13:41.687 27863 TRACE oslo_messaging.rpc.dispatcher     if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1536453/+subscriptions


References