HTTP 500 Server error while creating an instance with a non existent network port parameter

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

Bug Description

Using Quantum as the network service, boot an instance and pass a non existent port
in the network parameter list.

Nova API Expected Error: 400 BadRequest
Actual Error: 500 Server Error

Though Quantum Client returns Status: 404, Nova API returns Status: 500

API Log snip:

2013-06-27 06:45:07.528 TRACE nova.api.openstack QuantumClientException: Port ca476808-bfa1-42c0-da1c-301973456e78 could not be found on network None
2013-06-27 06:45:07.528 TRACE nova.api.openstack
2013-06-27 06:45:07.537 INFO nova.api.openstack [req-a73d95ff-3235-4221-9ccc-ab478b84fc0e demo demo] http://10.2.3.102:8774/v2/a764d297000a47188db8dc1b5490d882/servers returned with HTTP 500
2013-06-27 06:45:07.538 DEBUG nova.api.openstack.wsgi [req-a73d95ff-3235-4221-9ccc-ab478b84fc0e demo demo] Returning 500 to user: The server has either erred or is incapable of performing the requested operation. from (pid=23318) __call__ /opt/stack/nova/nova/api/openstack/wsgi.py:1182
2013-06-27 06:45:07.539 INFO nova.osapi_compute.wsgi.server [req-a73d95ff-3235-4221-9ccc-ab478b84fc0e demo demo] 10.2.3.243 "POST /v2/a764d297000a47188db8dc1b5490d882/servers HTTP/1.1" status: 500 len: 359 time: 0.2387700

Affects: Nova trunk commit 9900e0549118e76df0ee47c68b76a1bc5ed1bd59

Tags: ntt
Rohit Karajgi (rohitk)
Changed in nova:
assignee: nobody → Rohit Karajgi (rohitkarajgi)
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/35356

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/35356
Committed: http://github.com/openstack/nova/commit/4721408ea861a66af1ad1df5a45c42addcd8a95f
Submitter: Jenkins
Branch: master

commit 4721408ea861a66af1ad1df5a45c42addcd8a95f
Author: Rohit Karajgi <email address hidden>
Date: Fri Jun 28 08:14:04 2013 -0700

    Fix HTTP response for PortNotFound during boot

    If a non-existent Quantum port is passed as a network parameter during create
    instance, Nova API should return an HTTP BadRequest.

    Fixes bug #1195468

    Change-Id: I5914fda076fdd3ff20c81984364ca725edae1a78

Changed in nova:
status: In Progress → Fix Committed
Rohit Karajgi (rohitk)
description: updated
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-3 → 2013.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.