]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix intermittent ipset_manager test failure
authorBrian Haley <brian.haley@hp.com>
Thu, 9 Apr 2015 21:48:40 +0000 (17:48 -0400)
committerBrian Haley <brian.haley@hp.com>
Tue, 14 Apr 2015 15:43:15 +0000 (11:43 -0400)
commit40a1f410ff45ce129c08da0cd071020c7ea338af
tree68bf729da1dd1493b7c08cfbae7cc6f034967ca6
parent3d205937de81db608e4b0e5d6b364ef502f78401
Fix intermittent ipset_manager test failure

Change ipset_manager _refresh_set() to make a copy of the list of
IPs when creating a set, instead of using a reference, else any
change to the set could update the caller's data.

Also made the IpsetManagerTestCase classes always pass maxelem and
hashsize to the parent class.

Change-Id: I45fc716ab0952b80363b0c7dabae29cda05604dc
Closes-bug: #1442377
neutron/agent/linux/ipset_manager.py
neutron/tests/unit/agent/linux/test_ipset_manager.py