yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #54372
[Bug 1603592] Re: os-attach-interface returns a 500 when neutron policy forbids port creation
Reviewed: https://review.openstack.org/345223
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=ead6597274c088712b3992222d27faa663c67647
Submitter: Jenkins
Branch: master
commit ead6597274c088712b3992222d27faa663c67647
Author: liyingjun <yingjun.li@xxxxxxxxxxxxxxx>
Date: Thu Jul 21 15:49:37 2016 +0800
network: handle forbidden exception from neutron
Neutron will raise a forbidden exception when the neutron policy is not
allowed to for some operation like create_port. The operation is an RPC
call from nova-api to nova-compute. The Forbidden from neutron isn't
handled in nova-api so we get a 500 back instead of a 403. It should be
a 403 in this case.
Change-Id: Iea4feaeb7ea6860e892ef57a4443e814a74b1d9e
Closes-bug: #1603592
** Changed in: nova
Status: In Progress => Fix Released
--
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/1603592
Title:
os-attach-interface returns a 500 when neutron policy forbids port
creation
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) mitaka series:
Confirmed
Bug description:
From a test on our internal CI against mitaka:
root@uat-dal09-compute-316:~# nova-manage version
13.0.0
The tempest test failure:
http://paste.openstack.org/show/533818/
The attach_interface operation is an RPC call from nova-api to nova-
compute. In our case, neutron policy was such that port creation
failed:
http://paste.openstack.org/show/533819/
The Forbidden from neutron isn't handled in nova-api so we get a 500
back instead of a 403.
This is somewhat related to bug 1571722 and patch
https://review.openstack.org/#/c/312014/ but that's fixing a 401 and a
misconfiguration issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1603592/+subscriptions
References