]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix a race condition adding a security group rule
authorBrian Haley <brian.haley@hp.com>
Wed, 19 Nov 2014 17:10:57 +0000 (12:10 -0500)
committerBrian Haley <brian.haley@hp.com>
Wed, 19 Nov 2014 20:10:05 +0000 (15:10 -0500)
commitee0e41d09d6ffc3cb7bf8406c8e8b009dfb92e17
treec0e7371892e590a3edbd70ada6b64d786118cc2f
parentdcd60f8d4e6d5f9e1e6f6cbad243aac836609042
Fix a race condition adding a security group rule

setup_port_filters() needs to grab self.devices_to_refilter
before it calls prepare_devices_filter(), else it could skip
processing a device if an RPC arrives while it's processing
new devices.  That device will now be handled the next time
it's called.

Bug introduced in commit 3046c4ae22b1

Change-Id: Ib2f460cc095bbea8f9c767dcb9b4d4b66f1a7811
Closes-Bug: 1393925
neutron/agent/securitygroups_rpc.py
neutron/tests/unit/test_security_groups_rpc.py