← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1322786] [NEW] Revert resize failed when vm with volume attached

 

Public bug reported:

Reverting a resize of an instance with an attached volume results in the
instance changing to ERROR status.

- to reproduce:

nova boot --image {image_id} --flavor 1 myvm
cinder create --display-name myvol 1
nova volume-attach myvm myvol auto
nova resize myvm 2
# wait for VERIFY_RESIZE
nova resize-revert myvm

- error message in nova:

'NoneType' object has no attribute 'to_dict'

stack trace:

  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/compute/manager.py", line 258, in decorated_function
    return function(self, context, *args, **kwargs)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/compute/manager.py", line 2843, in finish_revert_resize
    block_device_info, power_on)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4651, in finish_revert_migration
    block_device_info, power_on)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3235, in _create_domain_and_network
    {'connection_info': jsonutils.dumps(connection_info)})
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/compute/manager.py", line 416, in block_device_mapping_update
    context, bdm_id, values)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/conductor/api.py", line 186, in block_device_mapping_update
    context, values, create=False)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/conductor/rpcapi.py", line 258, in block_device_mapping_update_or_create
    values=values, create=create)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/rpcclient.py", line 85, in call
    return self._invoke(self.proxy.call, ctxt, method, **kwargs)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/rpcclient.py", line 63, in _invoke
    return cast_or_call(ctxt, msg, **self.kwargs)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/proxy.py", line 126, in call
    result = rpc.call(context, real_topic, msg, timeout)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/__init__.py", line 139, in call
    return _get_impl().call(CONF, context, topic, msg, timeout)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/impl_kombu.py", line 816, in call
    rpc_amqp.get_connection_pool(conf, Connection))
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 572, in call
    rv = multicall(conf, context, topic, msg, timeout, connection_pool)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 558, in multicall
    pack_context(msg, context)
  File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 308, in pack_context
    for (key, value) in context.to_dict().iteritems()])

** 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/1322786

Title:
  Revert resize failed when vm with volume attached

Status in OpenStack Compute (Nova):
  New

Bug description:
  Reverting a resize of an instance with an attached volume results in
  the instance changing to ERROR status.

  - to reproduce:

  nova boot --image {image_id} --flavor 1 myvm
  cinder create --display-name myvol 1
  nova volume-attach myvm myvol auto
  nova resize myvm 2
  # wait for VERIFY_RESIZE
  nova resize-revert myvm

  - error message in nova:

  'NoneType' object has no attribute 'to_dict'

  stack trace:

    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/compute/manager.py", line 258, in decorated_function
      return function(self, context, *args, **kwargs)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/compute/manager.py", line 2843, in finish_revert_resize
      block_device_info, power_on)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4651, in finish_revert_migration
      block_device_info, power_on)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3235, in _create_domain_and_network
      {'connection_info': jsonutils.dumps(connection_info)})
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/compute/manager.py", line 416, in block_device_mapping_update
      context, bdm_id, values)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/conductor/api.py", line 186, in block_device_mapping_update
      context, values, create=False)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/conductor/rpcapi.py", line 258, in block_device_mapping_update_or_create
      values=values, create=create)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/rpcclient.py", line 85, in call
      return self._invoke(self.proxy.call, ctxt, method, **kwargs)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/rpcclient.py", line 63, in _invoke
      return cast_or_call(ctxt, msg, **self.kwargs)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/proxy.py", line 126, in call
      result = rpc.call(context, real_topic, msg, timeout)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/__init__.py", line 139, in call
      return _get_impl().call(CONF, context, topic, msg, timeout)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/impl_kombu.py", line 816, in call
      rpc_amqp.get_connection_pool(conf, Connection))
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 572, in call
      rv = multicall(conf, context, topic, msg, timeout, connection_pool)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 558, in multicall
      pack_context(msg, context)
    File "/opt/openstack/nova/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 308, in pack_context
      for (key, value) in context.to_dict().iteritems()])

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


Follow ups

References