← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1241337] Re: VM do not resume if attach an volume when suspended

 

** Also affects: nova/havana
   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/1241337

Title:
  VM do not resume if attach an volume when suspended

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) havana series:
  Fix Committed

Bug description:
  
  1) nova suspend vm2
  2) nova attach vm2 6ac2e985-9586-438f-a027-bc9591fa5b43 /dev/sdb
  3) nova volume-attach vm2 6ac2e985-9586-438f-a027-bc9591fa5b43 /dev/sdb
  4) nova resume vm2

  VM failed to resume and nova compute report the following errors.

  2013-10-18 12:16:33.175 ERROR nova.openstack.common.rpc.amqp [req-a8b196e3-dbd5-45f4-814e-56a715b07fdf admin admin] Exception during message handling
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 461, in _process_data
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     **args)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     result = getattr(proxyobj, method)(ctxt, **kwargs)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 354, in decorated_function
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/exception.py", line 90, in wrapped
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     payload)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/exception.py", line 73, in wrapped
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 244, in decorated_function
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     pass
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 230, in decorated_function
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 295, in decorated_function
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     function(self, context, *args, **kwargs)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 272, in decorated_function
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     e, sys.exc_info())
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 259, in decorated_function
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 3314, in resume_instance
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     block_device_info)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1969, in resume
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     block_device_info)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3206, in _create_domain_and_network
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     {'connection_info': jsonutils.dumps(connection_info)})
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 420, in block_device_mapping_update
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     context, bdm_id, values)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/conductor/api.py", line 170, in block_device_mapping_update
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     context, values, create=False)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/conductor/rpcapi.py", line 244, in block_device_mapping_update_or_create
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     values=values, create=create)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/rpcclient.py", line 85, in call
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     return self._invoke(self.proxy.call, ctxt, method, **kwargs)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/rpcclient.py", line 63, in _invoke
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     return cast_or_call(ctxt, msg, **self.kwargs)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/proxy.py", line 126, in call
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     result = rpc.call(context, real_topic, msg, timeout)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/__init__.py", line 139, in call
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     return _get_impl().call(CONF, context, topic, msg, timeout)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/impl_kombu.py", line 816, in call
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     rpc_amqp.get_connection_pool(conf, Connection))
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 572, in call
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     rv = multicall(conf, context, topic, msg, timeout, connection_pool)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 558, in multicall
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     pack_context(msg, context)
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 308, in pack_context
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp     for (key, value) in context.to_dict().iteritems()])
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp AttributeError: 'NoneType' object has no attribute 'to_dict'
  2013-10-18 12:16:33.175 TRACE nova.openstack.common.rpc.amqp

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