libvirt destroy causes AttributeError: 'module' object has no attribute 'SHUTOFF'

Bug #1010291 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Dan Prince

Bug Description

I'm seeing the following exceptions in compute.log:

2012-06-08 02:39:42 ERROR nova.utils [-] in looping call
2012-06-08 02:39:42 TRACE nova.utils Traceback (most recent call last):
2012-06-08 02:39:42 TRACE nova.utils File "/usr/lib/python2.7/site-packages/nova/utils.py", line 611, in _inner
2012-06-08 02:39:42 TRACE nova.utils self.f(*self.args, **self.kw)
2012-06-08 02:39:42 TRACE nova.utils File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/connection.py", line 441, in _wait_for_destroy
2012-06-08 02:39:42 TRACE nova.utils if state == power_state.SHUTOFF:
2012-06-08 02:39:42 TRACE nova.utils AttributeError: 'module' object has no attribute 'SHUTOFF'

Dan Prince (dan-prince)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → Critical
status: New → In Progress
Revision history for this message
Daniel Berrange (berrange) wrote :

What GIT changeset are you synced to ? AFAICT, there is no reference to power_state.SHUTOFF in the current GIT master

$ git describe
folsom-1-263-g6555c5a
$ find -type f | xargs grep 'power_state.SHUTOFF'
$

Revision history for this message
Dan Prince (dan-prince) wrote :

I see. This was just fixed on June 8th in:

commit 2d1d124982d3f67f587767012aaf260d9ddc217b
Author: Yun Mao <email address hidden>
Date: Fri Jun 8 11:16:26 2012 -0400

    Fix power_state mis-use bug 1010586

    SHUTDOWN and SHUTOFF are merged to SHUTDOWN in power state.

    Change-Id: If6a64076a3c23837ee18a34dcbd0a08fd46ab57f

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