In fullstack test "test_configurations_are_synced_towards_placement", the Placement process is stopped, a new network is added and the L2 agent is restarted (SRIOV in this case).
The agent should sync the resources using the placement API, but because the Placement process is down, the server should report "resources_synced=False" until the placement report is received.
In [1] can be seen that the first reply from the server, informing about the agent with the new configuration (new network), the flag is True ("resources_synced": true):
2019-12-13 09:59:09.251 5513 DEBUG neutronclient.client [-] RESP: 200 {'Content-Type': 'application/json', 'Content-Length': '860', 'X-Openstack-Request-Id': 'req-363fc0e2-c3ae-4995-853b-cfbba9f2beb2', 'Date': 'Fri, 13 Dec 2019 09:59:09 GMT', 'Connection': 'keep-alive'} {"agents": [{"id": "158dea82-07e4-47d8-a65a-849e6de5e981", "agent_type": "NIC Switch agent", "binary": "neutron-sriov-nic-agent", "topic": "N/A", "host": "host-a677ed52", "admin_state_up": true, "created_at": "2019-12-13 09:58:39", "started_at": "2019-12-13 09:58:58", "heartbeat_timestamp": "2019-12-13 09:58:58", "description": null, "resources_synced": true, "availability_zone": null, "alive": true, "configurations": {"device_mappings": {"physnet1": ["ens590a255c847e", "ens61730c512d2e"], "physnetnew": ["ens74c23d91936f"]}, "extensions": [], "resource_provider_bandwidths": {"ens590a255c847e": {"egress": 1000, "ingress": 1000}, "ens61730c512d2e": {"egress": 1000, "ingress": 1000}, "ens74c23d91936f": {"egress": 1000, "ingress": 1000}}, "resource_provider_inventory_defaults": {"allocation_ratio": 1.0, "min_unit": 1, "step_size": 1, "reserved": 0}}}]} http_log_resp /home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-fullstack/lib/python3.6/site-packages/neutronclient/common/utils.py:204
Logs: https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_1de/697251/7/check/neutron-fullstack/1deb02b/testr_results.html.gz
[1] https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_1de/697251/7/check/neutron-fullstack/1deb02b/controller/logs/dsvm-fullstack-logs/TestPlacementBandwidthReport.test_configurations_are_synced_towards_placement_NIC-Switch-agent_.txt.gz
the test decided to fail and started killing the neutron server at:
2019-12-13 09:59:32.058 5513 DEBUG neutron. agent.common. async_process [-] Halting async process [/home/ zuul/src/ opendev. org/openstack/ neutron/ .tox/dsvm- fullstack/ bin/neutron- server --log-dir /opt/stack/ logs/dsvm- fullstack- logs/TestPlacem entBandwidthRep ort.test_ configurations_ are_synced_ towards_ placement_ NIC-Switch- agent_ --log-file neutron- server- -2019-12- 13--09- 58-26-449940. log --config-file /tmp/tmptz3q23o r/tmpodugwxcl/ neutron. conf --config-file /tmp/tmptz3q23o r/tmpodugwxcl/ ml2_conf. ini]. stop /home/zuul/ src/opendev. org/openstack/ neutron/ neutron/ agent/common/ async_process. py:135
while the server noticed resources_ synced= False at:
2019-12-13 09:59:34.268 14875 WARNING neutron. services. placement_ report. plugin [req-f5af49ea- fb5c-496a- bcfc-4d37004763 f0 - - - - -] Synchronization of resources of agent type NIC Switch agent at host host-a677ed52 to placement failed.: keystoneauth1. exceptions. http.HttpError: HTTP Error (HTTP 0)
maybe for some reasons the placement plugin is taking too longer to fail than expected?