API error message reports incorrect state for unavailable soft reboot

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

Bug Description

Sending a soft reboot request to the Nova API while an instance is in the stopped state results in the following response:

Status
409 Conflict

{
conflictingRequest: {
message: "Cannot 'reboot' while instance is in vm_state stopped"
code: 409
}
-
}

Since we support a hard reboot on certain states it would be better to indicate the type of reboot in the error message that isn't supported. e.g. return message: "Cannot 'soft reboot' while instance is in vm_state stopped"

Revision history for this message
Mathew Odden (locke105) wrote :
Changed in nova:
importance: Undecided → Low
assignee: nobody → Mathew Odden (locke105)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/119254
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=45fe3b071f56afbc9ac7d280acd68f7c976904bb
Submitter: Jenkins
Branch: master

commit 45fe3b071f56afbc9ac7d280acd68f7c976904bb
Author: Matt Odden <email address hidden>
Date: Thu Sep 4 23:31:54 2014 +0000

    Update invalid state error message on reboot API

    This change adds more detail to the error message
    when a request to soft reboot an instance in an
    invalid state fails, indicating that specifically
    soft reboot is the request that failed, when
    a hard reboot might still succeed.

    Closes-Bug: 1365683

    Change-Id: I4b12aa261d1c4fa05bacd5311793ed6e0478e59b

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