conductor api doesn't have instance_get_active_by_window_joined method

Bug #1102469 reported by Wenhao Xu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Tiago Mello

Bug Description

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'

Wenhao Xu (wenhao-x)
description: updated
information type: Public → Public Security
Revision history for this message
Wenhao Xu (wenhao-x) wrote :

This is caused by commti d22b0ca2402d9625cea7460050e3fc77e7e2ea85

 git show d22b0ca2
commit d22b0ca2402d9625cea7460050e3fc77e7e2ea85
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()
     - instance_get_all_by_host()
     - instance_get_all_by_filters()

    Further, it adds support for the following APIs:

     - instance_get_all_hung_in_rebooting()
     - instance_get_active_by_window()

    It also makes compute/manager use conductor for these operations, with
    one exception. Currently, ComputeManager.init_host () lists all
    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

Thierry Carrez (ttx)
information type: Public Security → Public
Tiago Mello (timello)
Changed in nova:
assignee: nobody → Tiago Rodrigues de Mello (tmello)
Changed in nova:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/20275

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/20275
Committed: http://github.com/openstack/nova/commit/d442815d9909904a512258b0ec33d3a7a4ff0e31
Submitter: Jenkins
Branch: master

commit d442815d9909904a512258b0ec33d3a7a4ff0e31
Author: Tiago Mello <email address hidden>
Date: Tue Jan 22 19:01:10 2013 -0200

    Adds conductor support for instance_get_active_by_window_joined

    This patch fixes Bug 1102469.

    Related to bp/no-db-compute-manager

    Change-Id: Ib9e7a4c380eb5d1a0c7059ad6a90d0aec1638fbd

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-3 → 2013.1
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.