yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #23712
[Bug 1380901] [NEW] Refine HTTP error code for os-interface
Public bug reported:
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
** Affects: nova
Importance: Undecided
Status: New
--
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):
New
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
Follow ups
References