OpenStack Networking (Neutron)
Go to file
Bence Romsics 732dbdaf5e Fail placement sync if _get_rp_by_name() fails
The Placement sync process involves some input from Placement first.
That is the UUID of the compute host RP. This is a remote call just like
the Placement updates we send later and it also may fail in all the
usual ways of remote calls. We need to fail the sync procedure if this
remote call fails.

Previously I had the mistaken belief that if I set the parent_uuid to
None that will be an invalid call rejected by Placement. But no, that's
a valid call and creates a resource provider without a parent. That is
the neutron managed resource providers will be in their own resource
provider tree instead of the compute host's resource provider tree.

In this change we make sure to handle the failure of getting the compute
host RP properly. We must not continue with the updates. And we must set
the agent's resources_synced to False.

Change-Id: Ie6ad33e2170c53a16c39a31a8d7f6496170a90ce
Closes-Bug: #1818683
2019-03-12 10:06:39 +01:00
api-ref Fix some typos 2016-06-28 22:46:19 +02:00
bin Use os-xenapi for neutron when XenServer as hypervisor 2017-03-30 18:33:37 +00:00
devstack Delete virtual interface "ovs-system" before load openvswitch module 2019-01-25 20:00:14 +09:00
doc Add QoS minimum egress bandwidth rule into ovs-agent 2019-02-26 11:05:04 +00:00
etc Add oslo.privsep to config-generator list 2019-03-01 16:54:20 +00:00
neutron Fail placement sync if _get_rp_by_name() fails 2019-03-12 10:06:39 +01:00
playbooks/legacy Switch neutron-tempest-dvr-ha-multinode-full job to python3 2019-02-22 11:51:19 +01:00
rally-jobs Merge "rally-jobs: Add FloatingIP workloads: assoc/dissoc" 2019-03-01 21:24:43 +00:00
releasenotes Merge "Enable adoption of subnets into a subnet pool" 2019-03-02 20:37:11 +00:00
tools Add method to tox to use local neutron-lib with unit tests 2019-03-02 14:56:15 -07:00
.coveragerc Cleanup coverage configuration 2016-10-17 17:06:19 +05:30
.gitignore [Configuration] Clean up .gitignore references to personal tools 2019-01-31 16:17:38 +01:00
.gitreview Fix .gitreview to not point at a branch 2015-08-17 13:51:51 -06:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Fix pylint R1716 (chained-comparison) refactor messages 2019-02-21 16:15:23 -05:00
.stestr.conf Fix post gate hook to accommodate for new os-testr 2017-09-12 14:20:12 -06:00
.zuul.yaml add python 3.7 unit test job 2019-02-27 23:06:55 +00:00
CONTRIBUTING.rst Update link for contribution 2017-08-31 16:44:51 +02:00
HACKING.rst Update the documentation link for doc migration 2017-07-22 18:46:13 +09:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
README.rst Update mailinglist from dev to discuss 2018-12-12 12:44:12 +08:00
TESTING.rst Add method to tox to use local neutron-lib with unit tests 2019-03-02 14:56:15 -07:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
bindep.txt Add libffi-dev to bindep.txt 2017-06-13 19:26:49 +00:00
lower-constraints.txt Merge "Bump neutron-lib requirement to 1.25.0" 2019-03-02 06:40:55 +00:00
requirements.txt Merge "Bump neutron-lib requirement to 1.25.0" 2019-03-02 06:40:55 +00:00
setup.cfg Placement reporting service plugin 2019-03-01 15:37:48 +01:00
setup.py Updated from global requirements 2017-03-04 11:19:58 +00:00
test-requirements.txt Bump pylint version to one that supports python3.7 2019-02-21 13:22:26 +00:00
tox.ini Add method to tox to use local neutron-lib with unit tests 2019-03-02 14:56:15 -07:00

README.rst

Team and repository tags

image

Welcome!

To learn more about neutron:

Get in touch via email. Use [Neutron] in your subject.

To learn how to contribute:

CONTRIBUTING.rst