One more interesting thing. When running the test locally, I can reproduce the failure in ~1/10 runs.
Here is smth interesting in the logs:
2015-09-08 15:43:16.304 27343 DEBUG neutron.agent.linux.utils [-] Running command (rootwrap daemon): ['ip', 'netns', 'exec', 'test-09ea1917-8fe1-4c5a-abc8-99b067d8f71c', 'ping', '-c', '10', '-W', '1', '10.220.181.185'] execute_rootwrap_daemon neutron/agent/linux/utils.py:102 2015-09-08 15:43:16.305 27343 DEBUG neutron.agent.linux.utils [-] Running command (rootwrap daemon): ['ip', 'netns', 'exec', 'test-09ea1917-8fe1-4c5a-abc8-99b067d8f71c', 'ping', '-c', '10', '-W', '1', '10.75.125.235'] execute_rootwrap_daemon neutron/agent/linux/utils.py:102 2015-09-08 15:43:16.307 27343 DEBUG neutron.agent.linux.utils [-] Running command (rootwrap daemon): ['ip', 'netns', 'exec', 'test-09ea1917-8fe1-4c5a-abc8-99b067d8f71c', 'ping', '-c', '10', '-W', '1', '10.247.223.213'] execute_rootwrap_daemon neutron/agent/linux/utils.py:102 ... 2015-09-08 15:43:25.343 27343 DEBUG neutron.agent.linux.utils [-] Command: ['ip', 'netns', 'exec', 'test-09ea1917-8fe1-4c5a-abc8-99b067d8f71c', 'ping', '-c', 10, '-W', 1, '10.247.223.213'] Exit code: 0
Seems like first two ping attempts didn't even get into linux.utils?..
One more interesting thing. When running the test locally, I can reproduce the failure in ~1/10 runs.
Here is smth interesting in the logs:
2015-09-08 15:43:16.304 27343 DEBUG neutron. agent.linux. utils [-] Running command (rootwrap daemon): ['ip', 'netns', 'exec', 'test-09ea1917- 8fe1-4c5a- abc8-99b067d8f7 1c', 'ping', '-c', '10', '-W', '1', '10.220.181.185'] execute_ rootwrap_ daemon neutron/ agent/linux/ utils.py: 102 agent.linux. utils [-] Running command (rootwrap daemon): ['ip', 'netns', 'exec', 'test-09ea1917- 8fe1-4c5a- abc8-99b067d8f7 1c', 'ping', '-c', '10', '-W', '1', '10.75.125.235'] execute_ rootwrap_ daemon neutron/ agent/linux/ utils.py: 102 agent.linux. utils [-] Running command (rootwrap daemon): ['ip', 'netns', 'exec', 'test-09ea1917- 8fe1-4c5a- abc8-99b067d8f7 1c', 'ping', '-c', '10', '-W', '1', '10.247.223.213'] execute_ rootwrap_ daemon neutron/ agent/linux/ utils.py: 102 agent.linux. utils [-] 8fe1-4c5a- abc8-99b067d8f7 1c', 'ping', '-c', 10, '-W', 1, '10.247.223.213']
2015-09-08 15:43:16.305 27343 DEBUG neutron.
2015-09-08 15:43:16.307 27343 DEBUG neutron.
...
2015-09-08 15:43:25.343 27343 DEBUG neutron.
Command: ['ip', 'netns', 'exec', 'test-09ea1917-
Exit code: 0
Seems like first two ping attempts didn't even get into linux.utils?..