get_instance_bdms tries to access db from compute

Bug #1122432 reported by Andrew Laski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

check_can_live_migrate_source() in compute manager calls is_volume_backed_instance() in the compute api which calls get_instance_bdms() which tries to access the database. The offending call is self.db.block_device_mapping_get_all_by_instance(). This needs to be added to the conductor.

Mate Lakat (mate-lakat)
tags: added: xenserver
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

Mate,

is the issue xenserver specific?

Revision history for this message
Mate Lakat (mate-lakat) wrote :

Hi Amando, you are right. looking at the logs, it seems, that it is not a xenserver/xenapi specific problem.

Let me include the stactrace from n-cpu screen:

Traceback (most recent call last):
  File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 276, in _process_data
    rval = self.proxy.dispatch(ctxt, version, method, **args)
  File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
    return getattr(proxyobj, method)(ctxt, **kwargs)
  File "/opt/stack/nova/nova/exception.py", line 109, in wrapped
    temp_level, payload)
  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
    return f(self, context, *args, **kw)
  File "/opt/stack/nova/nova/compute/manager.py", line 2734, in check_can_live_migrate_source
    None)
  File "/opt/stack/nova/nova/compute/api.py", line 2355, in is_volume_backed_instance
    bdms = bdms or self.get_instance_bdms(context, instance)
  File "/opt/stack/nova/nova/compute/api.py", line 2352, in get_instance_bdms
    instance['uuid'])
  File "/opt/stack/nova/nova/db/api.py", line 1084, in block_device_mapping_get_all_by_instance
    instance_uuid)
  File "/opt/stack/nova/bin/nova-compute", line 67, in __call__
    raise exception.DBNotAllowed('nova-compute')
DBNotAllowed: nova-compute

tags: removed: xenserver
Revision history for this message
Andrew Laski (alaski) wrote :

Duplicate of https://bugs.launchpad.net/nova/+bug/1124594 which is in progress.

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.