yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26209
[Bug 1378389] Re: os-interface:show will not handle PortNotFoundClient exception from neutron
** 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/1378389
Title:
os-interface:show will not handle PortNotFoundClient exception from
neutron
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
The os-interface:show method in the v2/v3 compute API is catching a
NotFound(NovaException):
http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/contrib/attach_interfaces.py?id=2014.2.rc1#n67
But when using the neutronv2 API, if you get a port not found it's
going to raise up a PortNotFoundClient(NeutronClientException), which
won't be handled by the NotFound(NovaException) in the compute API
since it's not the same type of exception.
http://git.openstack.org/cgit/openstack/nova/tree/nova/network/neutronv2/api.py?id=2014.2.rc1#n584
This bug has two parts:
1. The neutronv2 API show_port method needs to return nova exceptions,
not neutron client exceptions.
2. The os-interfaces:show v2/v3 APIs need to handle the exceptions
(404 is handled, but neutron can also raise Forbidden/Unauthorized
which the compute API isn't handling).
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1378389/+subscriptions
References