OSAPI does not report HARD_REBOOT

Bug #884906 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Brian Waldon

Bug Description

If I make the following request to hard reboot a server, the status of the server is REBOOT. It should be HARD_REBOOT:

curl -i -H "X-Auth-Token: admin:admin" -X POST -H "Content-Type: application/json" -d '{"reboot": {"type": "HARD"}}' http://localhost:8774/v1.1/admin/servers/057e65e3-09b2-47a0-84af-6a83bb77b0df/action

curl -H "X-Auth-Token: admin:admin" http://localhost:8774/v1.1/admin/servers/057e65e3-09b2-47a0-84af-6a83bb77b0df

{"server": {"status": "REBOOT", "updated": "2011-11-01T20:01:27Z", "hostId": "2509e0f7fef13a2e3bd5e7c874cfe1a67ae8ebfaeaab80b2822818de", "user_id": "admin", "name": "stacktester1", "links": [{"href": "http://localhost:8774/v1.1/admin/servers/057e65e3-09b2-47a0-84af-6a83bb77b0df", "rel": "self"}, {"href": "http://localhost:8774/admin/servers/057e65e3-09b2-47a0-84af-6a83bb77b0df", "rel": "bookmark"}], "created": "2011-11-01T19:50:28Z", "tenant_id": "admin", "image": {"id": "dae03bac-2793-4b45-bbb4-ac5e0b9d5c1d", "links": [{"href": "http://localhost:8774/admin/images/dae03bac-2793-4b45-bbb4-ac5e0b9d5c1d", "rel": "bookmark"}]}, "metadata": {}, "accessIPv4": "", "accessIPv6": "", "key_name": null, "flavor": {"id": "2", "links": [{"href": "http://localhost:8774/admin/flavors/2", "rel": "bookmark"}]}, "config_drive": "", "id": "057e65e3-09b2-47a0-84af-6a83bb77b0df", "addresses": {"public": [{"version": 4, "addr": "192.168.0.2"}]}}}

Tags: osapi-v1.1
Brian Waldon (bcwaldon)
tags: added: osapi-v1.1
Brian Waldon (bcwaldon)
Changed in nova:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Brian Waldon (bcwaldon)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to nova (master)

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

 status fixcommitted
 done

commit d5d2df5718fae936d8c3f852be2fdc81b7789870
Author: Brian Waldon <email address hidden>
Date: Mon Nov 7 17:20:16 2011 -0500

    Adding task_states.REBOOTING_HARD

    Fixes bug 884906

    Change-Id: I546d0ddd7afee7596a4c47053dae3cb3ba18fdb2

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