branch: master
testing commit: cd4093e0f2a7d07fa81915dc4866f4ac7324a028
It can be reproduced by enabling instance_usage_audit in the nova.conf and run nova-compute.
This is caused by incomplete nova_conductor api implementation. Please add the corresponding method: instance_get_active_by_window_joined
The trace is here:
2013-01-22 00:23:42,174.174 ERROR nova.manager [req-82aa156f-b347-4bcf-ada9-733e23f889e3 None None] Error during ComputeManager._instance_usage_audit: 'API' object has no attribute 'instance_get_active_by_window_joined'
2013-01-22 00:23:42,174.174 29676 TRACE nova.manager Traceback (most recent call last):
2013-01-22 00:23:42,174.174 29676 TRACE nova.manager File "/home/wenhao/workspace/openstack/nova/nova/manager.py", line 230, in periodic_tasks
2013-01-22 00:23:42,174.174 29676 TRACE nova.manager task(self, context)
2013-01-22 00:23:42,174.174 29676 TRACE nova.manager File "/home/wenhao/workspace/openstack/nova/nova/compute/manager.py", line 3089, in _instance_usage_audit
2013-01-22 00:23:42,174.174 29676 TRACE nova.manager instances = capi.instance_get_active_by_window_joined(
2013-01-22 00:23:42,174.174 29676 TRACE nova.manager AttributeError: 'API' object has no attribute 'instance_get_active_by_window_joined'
This is caused by commti d22b0ca2402d962 5cea7460050e3fc 77e7e2ea85
git show d22b0ca2 5cea7460050e3fc 77e7e2ea85
commit d22b0ca2402d962
Author: Dan Smith <email address hidden>
Date: Thu Jan 3 09:17:17 2013 -0800
Move instance_get_*() to conductor
This patch adds conductor support for instance_ get_all_ by_filters( ),
and supports the following APIs through that method:
- instance_get_all() get_all_ by_host( ) get_all_ by_filters( )
- instance_
- instance_
Further, it adds support for the following APIs:
- instance_ get_all_ hung_in_ rebooting( ) get_active_ by_window( )
- instance_
It also makes compute/manager use conductor for these operations, with init_host () lists all
one exception. Currently, ComputeManager.
instances associated with the host, which may happen before a conductor
service is available. This will be handled separately due to the
sequencing concerns.
Related to bp/no-db- compute- manager