nova should raise http 409 instead of 500 when get a error instance diagnostics

Bug #1599377 reported by Eli Qiao on 2016-07-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Low
Alex Xu

Bug Description

When retrieving server diagnostics, nova should raise 409 instead of 500 in case the instance has no host yet.

Tags: api Edit Tag help
Eli Qiao (taget-9) on 2016-07-06
Changed in nova:
assignee: nobody → Eli Qiao (taget-9)
importance: Undecided → Low

Fix proposed to branch: master
Review: https://review.openstack.org/338034

Changed in nova:
status: New → In Progress
Changed in nova:
assignee: Eli Qiao (taget-9) → Alex Xu (xuhj)

Reviewed: https://review.openstack.org/338034
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=16b092d9cf3e7a641940543bbf5dd4937ac643c9
Submitter: Jenkins
Branch: master

commit 16b092d9cf3e7a641940543bbf5dd4937ac643c9
Author: Eli Qiao <email address hidden>
Date: Wed Jul 6 14:35:42 2016 +0800

    API: catch InstanceNotReady exception.

    When retrieving server diagnostics, nova should raise 409 instead of 500
    in case the instance has no host yet.

    Closes-Bug: #1599377
    Change-Id: I3748978d9faf8adc8ca7d1d1d3f02128aa22cf3f

Changed in nova:
status: In Progress → Fix Released

This issue was fixed in the openstack/nova 14.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers