migrate server doesn't raise correct exception

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

Bug Description

Migrate a non existent server throws HTTPBadRequest exception ,the correct is InstanceNotFound exception.
live-migrate has the same problem.

The other server actions throw InstanceNotFound exception.

I think it's a bug.

Tags: api
Changed in nova:
assignee: nobody → huangtianhua (huangtianhua)
Matt Riedemann (mriedem)
tags: added: api
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/51339
Committed: http://github.com/openstack/nova/commit/103db29c224909cd260f1619a0a4578e172f6649
Submitter: Jenkins
Branch: master

commit 103db29c224909cd260f1619a0a4578e172f6649
Author: huangtianhua <tiantian223@163.com>
Date: Sat Oct 12 11:00:03 2013 +0800

    migrate server doesn't raise correct exception

    Currently a BadRequest is raised for the migrate and live-migrate API
    operations when the given instance isn't found. This patch changes the
    APIs to raise a InstanceNotFound instead to be consistent with the other
    admin action APIs which hit the same type of error.

    Closes-Bug: #1239038

    Change-Id: I28cd367c5885481ea19ace43855b2518a2afd955

Changed in nova:
status: In Progress → Fix Committed
Dong Liu (liudong78)
description: updated
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.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.