yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #23473
[Bug 1378389] [NEW] os-interface:show will not handle PortNotFoundClient exception from neutron
Public bug reported:
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).
** Affects: nova
Importance: Medium
Assignee: Matt Riedemann (mriedem)
Status: In Progress
** Tags: api network
** Changed in: nova
Status: New => In Progress
** Changed in: nova
Importance: Undecided => Medium
--
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):
In Progress
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
Follow ups
References