** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => kilo-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1363901

Title:
  HTTP 500 is returned when using an in-used fixed ip to attach
  interface

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When I post an 'attach interface' request to Nova with an in-used
  fixed ip, Nova returns an HTTP 500 error and a confusing error
  message.

  REQ: curl -i 
'http://10.90.10.24:8774/v2/19abae5746b242d489d1c2862b228d8b/servers/b5cdb8f7-2350-4e28-bf75-7a696dfba73a/os-interface'
 -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H 
"User-Agent: python-novaclient" -H "X-Auth-Project-Id: Public" -H 
"X-Auth-Token: {SHA1}f04a301215d1014df8a0c7a32818235c2c5fbd1a" -d 
'{"interfaceAttachment": {"fixed_ips": [{"ip_address": "10.100.99.4"}], 
"net_id": "173854d5-333f-4c78-b5a5-10d2e9c8d827"}}'
  INFO (connectionpool:187) Starting new HTTP connection (1): 10.90.10.24
  DEBUG (connectionpool:357) "POST 
/v2/19abae5746b242d489d1c2862b228d8b/servers/b5cdb8f7-2350-4e28-bf75-7a696dfba73a/os-interface
 HTTP/1.1" 500 128
  RESP: [500] {'date': 'Mon, 01 Sep 2014 09:02:24 GMT', 'content-length': 
'128', 'content-type': 'application/json; charset=UTF-8', 
'x-compute-request-id': 'req-abcdfaab-c208-4089-9e2e-d63bed1e8dfa'}
  RESP BODY: {"computeFault": {"message": "The server has either erred or is 
incapable of performing the requested operation.", "code": 500}}

  
  In fact, Nova works perfect well. The error is caused by my incorrect input. 
Neutron client can return an IpAddressInUseClient exception, so that Nova 
should be able to address the error and return an HTTP 400 error in order to to 
inform the user to correct the request.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1363901/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to