← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1123219] Re: Illegal DB access in nova-compute _sync_db_power_states method

 

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

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

Title:
  Illegal DB access in nova-compute _sync_db_power_states method

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Boot an instance with the libvirt driver, and then use 'virsh destroy
  [instancename]' to kill it off behind Nova's back.

  Now wait a while (upto 10 minutes) for the '_sync_db_power_states'
  periodic task to run in nova-compute. When it does run it will
  generate the following exception

  2013-02-12 16:25:52.509 ERROR nova.compute [-] No db access allowed in nova-compute:   File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 192, in main
      result = function(*args, **kwargs)
    File "/home/berrange/src/cloud/nova/nova/utils.py", line 630, in _inner
      idle = self.f(*self.args, **self.kw)
    File "/home/berrange/src/cloud/nova/nova/service.py", line 571, in periodic_tasks
      return self.manager.periodic_tasks(ctxt, raise_on_error=raise_on_error)
    File "/home/berrange/src/cloud/nova/nova/manager.py", line 229, in periodic_tasks
      task(self, context)
    File "/home/berrange/src/cloud/nova/nova/compute/manager.py", line 3425, in _sync_power_states
      vm_power_state)
    File "/home/berrange/src/cloud/nova/nova/compute/manager.py", line 3492, in _sync_instance_power_state
      self.compute_api.stop(context, db_instance)
    File "/home/berrange/src/cloud/nova/nova/compute/api.py", line 158, in wrapped
      return func(self, context, target, *args, **kwargs)
    File "/home/berrange/src/cloud/nova/nova/compute/api.py", line 148, in inner
      return function(self, context, instance, *args, **kwargs)
    File "/home/berrange/src/cloud/nova/nova/compute/api.py", line 139, in wrapped
      return function(self, context, instance, *args, **kwargs)
    File "/home/berrange/src/cloud/nova/nova/compute/api.py", line 129, in inner
      return f(self, context, instance, *args, **kw)
    File "/home/berrange/src/cloud/nova/nova/compute/api.py", line 1236, in stop
      progress=0)
    File "/home/berrange/src/cloud/nova/nova/compute/api.py", line 158, in wrapped
      return func(self, context, target, *args, **kwargs)
    File "/home/berrange/src/cloud/nova/nova/compute/api.py", line 950, in update
      _, updated = self._update(context, instance, **kwargs)
    File "/home/berrange/src/cloud/nova/nova/compute/api.py", line 957, in _update
      context, instance['uuid'], kwargs)
    File "/home/berrange/src/cloud/nova/nova/db/api.py", line 697, in instance_update_and_get_original
      rv = IMPL.instance_update_and_get_original(context, instance_uuid, values)
    File "/home/berrange/src/cloud/nova/bin/nova-compute", line 65, in __call__
      stacktrace = "".join(traceback.format_stack())

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