← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1380901] Re: Refine HTTP error code for os-interface

 

** 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/1380901

Title:
  Refine HTTP error code for os-interface

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Related bug -->  https://bugs.launchpad.net/nova/+bug/1363901

  When attaching interface to an instance, Neutron may return several
  types of error to Nova (Eg. PortNotFound, PortInUse and etc.) Nova
  need to translate those error into a correct HTTP error code, so that
  end user will be able to know the exact failure reason.

  According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html,
  my proposed mapping between Nova error and HTTP error code is:

  PortNotFound    404
  FixedIpAlreadyInUse    409	
  PortInUse    409
  NetworkDuplicated    400
  NetworkAmbiguous    400
  NetworkNotFound    404

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


References