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.
Reviewed: https:/ /review. openstack. org/345223 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ead6597274c 088712b3992222d 27faa663c67647
Committed: https:/
Submitter: Jenkins
Branch: master
commit ead6597274c0887 12b3992222d27fa a663c67647
Author: liyingjun <email address hidden>
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: Iea4feaeb7ea686 0e892ef57a4443e 814a74b1d9e
Closes-bug: #1603592