← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1394569] Re: KeyError "extra_specs" in _cold_migrate

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => kilo-1

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

Title:
  KeyError "extra_specs" in _cold_migrate

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

Bug description:
  Trying cold migrate

  stack@o11n200:/root$ nova list
  +--------------------------------------+-------------------+--------+------------+-------------+--------------------+
  | ID                                   | Name              | Status | Task State | Power State | Networks           |
  +--------------------------------------+-------------------+--------+------------+-------------+--------------------+
  | 476324ba-644c-472b-9de7-e4434d8211bc | fedora_instance_1 | ACTIVE | -          | Running     | private=10.140.0.2 |
  | 3dae14aa-9168-4b5c-bb7f-3f38315dc791 | fedora_instance_2 | ACTIVE | -          | Running     | private=10.140.0.6 |
  | e80b5863-f228-49ac-b35f-8d10a0d6e4eb | fedora_instance_3 | ACTIVE | -          | Running     | private=10.140.0.8 |
  | 05b2ea29-ebcd-4a25-9582-6fbd223fba73 | fedora_instance_4 | ACTIVE | -          | Running     | private=10.140.0.7 |
  +--------------------------------------+-------------------+--------+------------+-------------+--------------------+
  stack@o11n200:/root$ nova migrate fedora_instance_3
  ERROR (BadRequest): The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-86801856-94cf-43c1-b21e-cb084abf8aac)

  Screen (n-api)

  2014-11-20 14:01:48.426 ERROR nova.api.openstack.compute.contrib.admin_actions [req-86801856-94cf-43c1-b21e-cb084abf8aac admin admin] Error in migrate u'\'extra_specs\'\nTraceb
  ack (most recent call last):\n\n  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n    incoming.message))\n\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\n  File "/u
  sr/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\n  File "/usr/loca
  l/lib/python2.7/dist-packages/oslo/messaging/rpc/server.py", line 139, in inner\n    return func(*args, **kwargs)\n\n  File "/opt/stack/nova/nova/conductor/manager.py", line 49
  0, in migrate_server\n    reservations)\n\n  File "/opt/stack/nova/nova/conductor/manager.py", line 550, in _cold_migrate\n    quotas.rollback()\n\n  File "/usr/local/lib/pytho
  n2.7/dist-packages/oslo/utils/excutils.py", line 82, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n\n  File "/opt/stack/nova/nova/conductor/manager.py", line 5
  36, in _cold_migrate\n    request_spec[\'instance_type\'].pop(\'extra_specs\')\n\nKeyError: \'extra_specs\'\n'
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions Traceback (most recent call last):
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/opt/stack/nova/nova/api/openstack/compute/contrib/admin_actions.py", line 151, in _migrate
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     self.compute_api.resize(req.environ['nova.context'], instance)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/opt/stack/nova/nova/compute/api.py", line 221, in wrapped
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     return func(self, context, target, *args, **kwargs)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/opt/stack/nova/nova/compute/api.py", line 211, in inner
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     return function(self, context, instance, *args, **kwargs)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/opt/stack/nova/nova/compute/api.py", line 238, in _wrapped
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     return fn(self, context, instance, *args, **kwargs)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/opt/stack/nova/nova/compute/api.py", line 192, in inner
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     return f(self, context, instance, *args, **kw)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/opt/stack/nova/nova/compute/api.py", line 2598, in resize
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     reservations=quotas.reservations or [])
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/opt/stack/nova/nova/conductor/api.py", line 345, in resize_instance
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     None, None, reservations)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/opt/stack/nova/nova/conductor/rpcapi.py", line 414, in migrate_server
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     reservations=reservations)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/client.py", line 152, in call
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     retry=self.retry)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 90, in _send
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     timeout=timeout, retry=retry)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 408, in send
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     retry=retry)
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 399, in _send
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions     raise result
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions KeyError: u'\'extra_specs\'\nTraceback (most recent call last):\n\n  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n    incoming.message))\n\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\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\n  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/server.py", line 139, in inner\n    return func(*args, **kwargs)\n\n  File "/opt/stack/nova/nova/conductor/manager.py", line 490, in migrate_server\n    reservations)\n\n  File "/opt/stack/nova/nova/conductor/manager.py", line 550, in _cold_migrate\n    quotas.rollback()\n\n  File "/usr/local/lib/python2.7/dist-packages/oslo/utils/excutils.py", line 82, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n\n  File "/opt/stack/nova/nova/conductor/manager.py", line 536, in _cold_migrate\n    request_spec[\'instance_type\'].pop(\'extra_specs\')\n\nKeyError: \'extra_specs\'\n'
  2014-11-20 14:01:48.426 TRACE nova.api.openstack.compute.contrib.admin_actions 

  
  stack@o11n200:/root$ nova-manage --version
  2015.1

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


References