poll_unconfirmed_resizes periodic task errors for instances in 'resize_verify' task state

Bug #973331 reported by Unmesh Gurjar
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Unmesh Gurjar

Bug Description

Scenario:
1. Configure the resize_confirm_window to 60 seconds, connection_type to 'libvirt' and libvirt_type to 'kvm'.
2. Create an instance and resize it (do not confirm the resize).
3. Verify the Compute logs for '_poll_unconfirmed_resizes' periodic task.

Branch: master

Expected Behavior: Compute should automatically confirm any unconfirmed resizes that are older than "resize_confirm_window".

Actual Behavior: The automatic confirmation code fails, following is the stack trace in Compute log:
    2012-04-04 05:06:38 DEBUG nova.virt.libvirt.connection [-] Updating host stats from (pid=24785) update_status /opt/stack/nova/nova/virt/libvirt/connection.py:2591
    2012-04-04 05:06:41 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_unconfirmed_resizes from (pid=24785) periodic_tasks /opt/stack/nova/nova/manager.py:152
    2012-04-04 05:06:41 INFO nova.virt.libvirt.connection [-] Found 1 unconfirmed migrations older than 60 seconds
    2012-04-04 05:06:41 INFO nova.virt.libvirt.connection [-] Automatically confirming migration 1
    2012-04-04 05:06:41 ERROR nova.manager [-] Error during ComputeManager._poll_unconfirmed_resizes: 'LibvirtConnection' object has no attribute 'compute_api'
    2012-04-04 05:06:41 TRACE nova.manager Traceback (most recent call last):
    2012-04-04 05:06:41 TRACE nova.manager File "/opt/stack/nova/nova/manager.py", line 155, in periodic_tasks
    2012-04-04 05:06:41 TRACE nova.manager task(self, context)
    2012-04-04 05:06:41 TRACE nova.manager File "/opt/stack/nova/nova/compute/manager.py", line 2245, in _poll_unconfirmed_resizes
    2012-04-04 05:06:41 TRACE nova.manager self.driver.poll_unconfirmed_resizes(FLAGS.resize_confirm_window)
    2012-04-04 05:06:41 TRACE nova.manager File "/opt/stack/nova/nova/exception.py", line 114, in wrapped
    2012-04-04 05:06:41 TRACE nova.manager return f(*args, **kw)
    2012-04-04 05:06:41 TRACE nova.manager File "/opt/stack/nova/nova/virt/libvirt/connection.py", line 854, in poll_unconfirmed_resizes
    2012-04-04 05:06:41 TRACE nova.manager self.compute_api.confirm_resize(ctxt, migration.instance_uuid)
    2012-04-04 05:06:41 TRACE nova.manager AttributeError: 'LibvirtConnection' object has no attribute 'compute_api'
    2012-04-04 05:06:41 TRACE nova.manager

Changed in nova:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
description: updated
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/6361

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

Reviewed: https://review.openstack.org/6361
Committed: http://github.com/openstack/nova/commit/9c71fd6aef64acfc4c026b17e10d6075c03d037e
Submitter: Jenkins
Branch: master

commit 9c71fd6aef64acfc4c026b17e10d6075c03d037e
Author: Unmesh Gurjar <email address hidden>
Date: Mon Apr 9 11:26:49 2012 +0530

    Fixed compute periodic task. Fixes bug 973331.

    1. Moved the poll_unconfirmed_resizes implementation to compute manager (as
    it is not hypervisor specific).
    2. Added unit test case coverage.

    Change-Id: Ic58502f44326c5d59439087b4fa9ae7aa79c1e17

Changed in nova:
status: In Progress → Fix Committed
tags: added: essex-backport
Devin Carlen (devcamcar)
Changed in nova:
importance: Undecided → Low
milestone: none → folsom-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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