Wrong exception raised for PortNotFound and NetworkNotFound

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

Bug Description

Http exception should be HTTPNotFound instead of HTTPBadRequest for PortNotFound/NetworkNotFound in [1]:

[1] http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/contrib/attach_interfaces.py#n124

Liyingjun (liyingjun)
Changed in nova:
assignee: nobody → Liyingjun (liyingjun)
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/161618

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

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

commit b97abfa9d948389b43479da2c50acb00174958be
Author: liyingjun <email address hidden>
Date: Thu Mar 5 14:31:52 2015 +0800

    Raise HTTPNotFound for Port/NetworkNotFound

    Http exception should be HTTPNotFound instead of HTTPBadRequest for
    PortNotFound/NetworkNotFound for attach interface api.

    Change-Id: Iddbf6f04000f7f4471ac10ae8c7df055af747bd6
    Closes-bug: #1428481

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