← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1939195] [NEW] Evacuate instance failed after delete instance group

 

Public bug reported:

I boot an instance with --hint group={uuid}, and then delete this instance group after instance status is active. Then evacuate the instance, nova-compute raise the exception.
File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3255, in rebuild_instance
    migration, request_spec, volume_id, allocs)
  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3319, in _do_rebuild_instance_with_claim
    self._do_rebuild_instance(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3342, in _do_rebuild_instance
    self._validate_instance_group_policy(context, instance, hints)
  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1388, in _validate_instance_group_policy
    _do_validation(context, instance, group_hint)
  File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 328, in inner
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1370, in _do_validation
    group = objects.InstanceGroup.get_by_hint(context, group_hint)
  File "/usr/lib/python2.7/site-packages/nova/objects/instance_group.py", line 342, in get_by_hint
    return cls.get_by_uuid(context, hint)
  File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 177, in wrapper
    args, kwargs)
  File "/usr/lib/python2.7/site-packages/nova/conductor/rpcapi.py", line 240, in object_class_action_versions
    args=args, kwargs=kwargs)
  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 181, in call
    transport_options=self.transport_options)
  File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 129, in _send
    transport_options=transport_options)
  File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 674, in send
    transport_options=transport_options)
  File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 664, in _send
    raise result
InstanceGroupNotFound_Remote: Instance group 89454517-7af6-4758-8477-32d3a35c9f3a could not be found.
Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 128, in _object_dispatch
    return getattr(target, method)(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 184, in wrapper
    result = fn(cls, context, *args, **kwargs)

  File "/usr/lib/python2.7/site-packages/nova/objects/instance_group.py", line 311, in get_by_uuid
    db_group = db.instance_group_get(context, uuid)

  File "/usr/lib/python2.7/site-packages/nova/db/api.py", line 925, in instance_group_get
    return IMPL.instance_group_get(context, group_uuid)

  File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 241, in wrapped
    return f(context, *args, **kwargs)

  File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 6004, in instance_group_get
    raise exception.InstanceGroupNotFound(group_uuid=group_uuid)

InstanceGroupNotFound: Instance group
89454517-7af6-4758-8477-32d3a35c9f3a could not be found.

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

Title:
  Evacuate instance failed after delete instance group

Status in OpenStack Compute (nova):
  New

Bug description:
  I boot an instance with --hint group={uuid}, and then delete this instance group after instance status is active. Then evacuate the instance, nova-compute raise the exception.
  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3255, in rebuild_instance
      migration, request_spec, volume_id, allocs)
    File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3319, in _do_rebuild_instance_with_claim
      self._do_rebuild_instance(*args, **kwargs)
    File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3342, in _do_rebuild_instance
      self._validate_instance_group_policy(context, instance, hints)
    File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1388, in _validate_instance_group_policy
      _do_validation(context, instance, group_hint)
    File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 328, in inner
      return f(*args, **kwargs)
    File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1370, in _do_validation
      group = objects.InstanceGroup.get_by_hint(context, group_hint)
    File "/usr/lib/python2.7/site-packages/nova/objects/instance_group.py", line 342, in get_by_hint
      return cls.get_by_uuid(context, hint)
    File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 177, in wrapper
      args, kwargs)
    File "/usr/lib/python2.7/site-packages/nova/conductor/rpcapi.py", line 240, in object_class_action_versions
      args=args, kwargs=kwargs)
    File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 181, in call
      transport_options=self.transport_options)
    File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 129, in _send
      transport_options=transport_options)
    File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 674, in send
      transport_options=transport_options)
    File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 664, in _send
      raise result
  InstanceGroupNotFound_Remote: Instance group 89454517-7af6-4758-8477-32d3a35c9f3a could not be found.
  Traceback (most recent call last):

    File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 128, in _object_dispatch
      return getattr(target, method)(*args, **kwargs)

    File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 184, in wrapper
      result = fn(cls, context, *args, **kwargs)

    File "/usr/lib/python2.7/site-packages/nova/objects/instance_group.py", line 311, in get_by_uuid
      db_group = db.instance_group_get(context, uuid)

    File "/usr/lib/python2.7/site-packages/nova/db/api.py", line 925, in instance_group_get
      return IMPL.instance_group_get(context, group_uuid)

    File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 241, in wrapped
      return f(context, *args, **kwargs)

    File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 6004, in instance_group_get
      raise exception.InstanceGroupNotFound(group_uuid=group_uuid)

  InstanceGroupNotFound: Instance group
  89454517-7af6-4758-8477-32d3a35c9f3a could not be found.

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