]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix race condition in ProcessMonitor
authorMiguel Angel Ajo <mangelajo@redhat.com>
Wed, 10 Dec 2014 11:21:52 +0000 (12:21 +0100)
committerMiguel Angel Ajo <mangelajo@redhat.com>
Thu, 11 Dec 2014 08:05:16 +0000 (09:05 +0100)
commitb25915f1d94e19756c932ae18119bdf872cc6316
treea223155ba2ea685cdbb419e83dfb4967d546f2df
parent988bd650d220b4c19b6275e4f0639e0ddceaea09
Fix race condition in ProcessMonitor

If any new external process was enabled/disabled during
the process monitoring loop time, a RuntimeError: dictionary
changed size during iteration was thrown. This is fixed
by pre-building the service list from the dictionary
for the iteration.

Closes-Bug: #1401042

Change-Id: Id0a3af22fb85992bde35d8c691bee3ddf435639d
neutron/agent/linux/external_process.py