HTTP 500 is returned when using an invalid network id to attach interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Qin Zhao |
Bug Description
When I post an 'attach interface' request to Nova with an invalid network id, Nova returns an HTTP 500 which informs me that the attach interface operation fails.
REQ: curl -i 'http://
INFO (connectionpool
DEBUG (connectionpool
RESP: [500] {'date': 'Wed, 17 Sep 2014 06:13:02 GMT', 'content-length': '72', 'content-type': 'application/json; charset=UTF-8', 'x-compute-
RESP BODY: {"computeFault": {"message": "Failed to attach interface", "code": 500}}
In fact, Nova get an empty network list from Neutron due to my incorrect input. Nova should be able to address the error and return an HTTP 400 error in order to to inform the user to correct the network id in request.
Changed in nova: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-2 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/122091
Review: https:/