Powervm virt driver not reporting correct error state of corrupted VMs

Bug #1166906 reported by David Peraza
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
David Peraza

Bug Description

power_state mapping in powervm driver is incomplete resulting in VMs that are not able to boot reporting good state to compute manager.

Very simple to recreate: simply add a corrupted powervm image to glance (I used a gzipped text file with raw extensions) and spawn the image. The result is that nova list show instance as available when in reality image is in Error or Open Firmware state.

Recommended fix: Add a complete mapping from powervm power_state to nova compute power_state. Image to device copy can use some debug statements too to make it easier for a user to determine why instance is not booting.

Tags: powervm
David Peraza (dperaza)
Changed in nova:
assignee: nobody → David Peraza (dperaza)
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/26528

Changed in nova:
status: New → In Progress
David Peraza (dperaza)
summary: - Powervm virt driver not reporting correct error state of currupted VMs
+ Powervm virt driver not reporting correct error state of corrupted VMs
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/26528
Committed: http://github.com/openstack/nova/commit/1cb4fec1c95f03548ac3a5e9b1b47b3e4012109d
Submitter: Jenkins
Branch: master

commit 1cb4fec1c95f03548ac3a5e9b1b47b3e4012109d
Author: David Peraza <email address hidden>
Date: Tue Apr 9 01:09:13 2013 +0000

    Completes the power_state mapping from compute driver and manager

    Fixes bug 1166906

    Added extra states to constants module together with test
    cases checking every state map.

    Also added some debug statements under blockdev and operator
    to be able to spot obvious issues with images at deploy time.

    Change-Id: I77ebb4d417a3875b761f5fb220d9274b79611ff0

Changed in nova:
status: In Progress → Fix Committed
Matt Riedemann (mriedem)
tags: added: powervm
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-1 → 2013.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.