neutron/neutron/tests/unit
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
..
agent Merge "Add QoS minimum egress bandwidth rule into ovs-agent" 2019-03-04 12:12:54 +00:00
api remove neutron.common.rpc 2019-02-06 11:05:55 -07:00
cmd Modify api and rpc default number of workers 2019-02-19 13:24:01 -07:00
common Merge "ovs-agent: Report resource info in heartbeat" 2018-10-22 20:03:06 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
db Merge "use payloads for SECURITY_GROUP BEFORE_CREATE events" 2019-02-20 06:16:19 +00:00
debug Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
extensions Merge "Fix regression with SG read API with empty ruleset" 2019-03-02 23:06:33 +00:00
hacking remove string use of neutron.common.rpc 2019-02-08 09:40:39 -07:00
ipam Merge "Update the processing of assigned addresses when assigning addresses" 2019-02-07 20:30:20 +00:00
notifiers Send global_request_id for tracing calls from neutron to nova 2018-11-30 05:41:24 +00:00
objects Merge "New agent attribute: resources_synced" 2019-02-26 16:55:01 +00:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins Merge "Add QoS minimum egress bandwidth rule into ovs-agent" 2019-03-04 12:12:54 +00:00
privileged remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler remove neutron.common.rpc 2019-02-06 11:05:55 -07:00
services Fail placement sync if _get_rp_by_name() fails 2019-03-12 10:06:39 +01:00
tests Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Add dependency for service plugin 2019-02-16 00:17:53 +08:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Avoid loading same service plugin more than once 2019-02-21 11:17:02 +01:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Add ext_parent policy check 2018-08-01 02:45:42 +08:00
test_service.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
testlib_api.py use context manager from neutron-lib 2018-10-24 07:18:46 -06:00