Passing a non existant port when creating a new instance with the v3 api results in a 500

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

Bug Description

Commit 4721408ea861a66af1ad1df5a45c42addcd8a95f fixed bug 1195468 for the V2 API where trying to create an instance with a non existant port resulted in a 500 status code rather than a 400. The fix was not applied to the V3 API. We should fix that.

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/41863

Changed in nova:
assignee: nobody → Christopher Yeoh (cyeoh-0)
status: New → In Progress
Changed in nova:
milestone: none → havana-rc1
importance: Undecided → Low
tags: added: api havana-rc-potential
Changed in nova:
milestone: havana-rc1 → none
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/41863
Committed: http://github.com/openstack/nova/commit/5608249c437ca92d81ecc54c2ad02bb510491298
Submitter: Jenkins
Branch: master

commit 5608249c437ca92d81ecc54c2ad02bb510491298
Author: Chris Yeoh <email address hidden>
Date: Wed Aug 14 17:33:56 2013 +0930

    Fix HTTP response for PortNotFound during boot (v3 API)

    If a non-existent Neutron port is passed as a network parameter during create
    instance, Nova API should return a 404 error. This was fixed for the V2
    API in commit 4721408ea861a66af1ad1df5a45c42addcd8a95f (though with a 400).
    This applies the corresponding fix to the V3 API.

    Fixes bug 1212137

    Change-Id: I27dfba636635eb8ac257785b833b240bc439f9ff

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
tags: added: havana-backport-potential
removed: havana-rc-potential
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.