← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1271095] [NEW] nova-compute start failed because of instance_type not found

 

Public bug reported:

I got this issue in my stable havana nova,
the reproduce steps are:
1. create a new flavor
2. boot an instance with this flavor
3. delete the flavor
4. restart the nova-compute service

the trace stack in compute.log:
2014-01-21 17:03:58.395 45856 ERROR nova.openstack.common.threadgroup [-] Instance type 3537 could not be found.
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 117, in wait
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     x.wait()
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 49, in wait
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py", line 65, in run_service
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     service.start()
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 164, in start
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     self.manager.pre_start_hook()
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 963, in pre_start_hook
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     self.update_available_resource(nova.context.get_admin_context())
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 5617, in update_available_resource
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     rt.update_available_resource(context)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 246, in inner
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return f(*args, **kwargs)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 306, in update_available_resource
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     self._update_usage_from_instances(resources, instances)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 637, in _update_usage_from_instances
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     self._update_usage_from_instance(resources, instance)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 564, in _update_usage_from_instance
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     instance['instance_type_id'])
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/conductor/api.py", line 110, in instance_type_get
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return self._manager.instance_type_get(context, instance_type_id)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 1129, in wrapper
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return func(*args, **kwargs)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 376, in instance_type_get
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     result = self.db.flavor_get(context, instance_type_id)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 1433, in flavor_get
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return IMPL.flavor_get(context, id)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 128, in wrapper
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return f(*args, **kwargs)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 4440, in flavor_get
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     raise exception.InstanceTypeNotFound(instance_type_id=id)
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup InstanceTypeNotFound: Instance type 3537 could not be found.
2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup

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

Title:
  nova-compute start failed because of instance_type not found

Status in OpenStack Compute (Nova):
  New

Bug description:
  I got this issue in my stable havana nova,
  the reproduce steps are:
  1. create a new flavor
  2. boot an instance with this flavor
  3. delete the flavor
  4. restart the nova-compute service

  the trace stack in compute.log:
  2014-01-21 17:03:58.395 45856 ERROR nova.openstack.common.threadgroup [-] Instance type 3537 could not be found.
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 117, in wait
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     x.wait()
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 49, in wait
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py", line 65, in run_service
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     service.start()
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 164, in start
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     self.manager.pre_start_hook()
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 963, in pre_start_hook
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     self.update_available_resource(nova.context.get_admin_context())
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 5617, in update_available_resource
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     rt.update_available_resource(context)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 246, in inner
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return f(*args, **kwargs)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 306, in update_available_resource
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     self._update_usage_from_instances(resources, instances)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 637, in _update_usage_from_instances
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     self._update_usage_from_instance(resources, instance)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 564, in _update_usage_from_instance
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     instance['instance_type_id'])
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/conductor/api.py", line 110, in instance_type_get
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return self._manager.instance_type_get(context, instance_type_id)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 1129, in wrapper
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return func(*args, **kwargs)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 376, in instance_type_get
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     result = self.db.flavor_get(context, instance_type_id)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 1433, in flavor_get
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return IMPL.flavor_get(context, id)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 128, in wrapper
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     return f(*args, **kwargs)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 4440, in flavor_get
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup     raise exception.InstanceTypeNotFound(instance_type_id=id)
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup InstanceTypeNotFound: Instance type 3537 could not be found.
  2014-01-21 17:03:58.395 45856 TRACE nova.openstack.common.threadgroup

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


Follow ups

References