Deleted instances show power state as 'Running'

Bug #1392798 reported by Andrew Boik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Andrew Boik

Bug Description

After deleting an instance and executing a `nova list --deleted` command as an administrator, the Power State of the deleted instance is still displayed as 'Running' and set to 1 in the database as well.

Steps to reproduce:

    Boot an instance:
    dboik@dboik-VirtualBox:~$ nova boot foo --flavor m1.tiny --image cirros-032-x86_64-uec

    Wait for instance to finish building:
    dboik@dboik-VirtualBox:~$ nova list
    +--------------------------------------+------+--------+------------+-------------+------------------+
    | ID | Name | Status | Task State | Power State | Networks |
    +--------------------------------------+------+--------+------------+-------------+------------------+
    | 2fed0daa-b083-43cf-9285-7364ce4852ce | foo | ACTIVE | - | Running | private=10.0.0.2 |
    +--------------------------------------+------+--------+------------+-------------+------------------+

    Delete the instance:
    dboik@dboik-VirtualBox:~$ nova delete foo
    Request to delete server foo has been accepted.

    As an OpenStack administrator, list the deleted instances:
    dboik@dboik-VirtualBox:~$ nova list --deleted
    +--------------------------------------+------+---------+------------+-------------+------------------+
    | ID | Name | Status | Task State | Power State | Networks |
    +--------------------------------------+------+---------+------------+-------------+------------------+
    | 2fed0daa-b083-43cf-9285-7364ce4852ce | foo | DELETED | - | Running | private=10.0.0.2 |
    +--------------------------------------+------+---------+------------+-------------+------------------+

Andrew Boik (drewboik)
Changed in nova:
assignee: nobody → Andrew Boik (drewboik)
Andrew Boik (drewboik)
Changed in nova:
status: New → In Progress
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/134603

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/134603
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2aea3a3d54cbe0dc9ce2b8c504818baeb1542677
Submitter: Jenkins
Branch: master

commit 2aea3a3d54cbe0dc9ce2b8c504818baeb1542677
Author: Andrew Boik <email address hidden>
Date: Fri Nov 14 12:07:59 2014 -0500

    Update Power State after deleting instance

    Update the power state for an instance when deleting it.
    Instead of being stuck in the 'Running' power state after deletion,
    a deleted instance will be in the NOSTATE power state.

    Change-Id: I2be9094af21e00868ad066118e94355b09f64346
    Closes-Bug: #1392798

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