Avoid error when removing addresses from address set
There are race conditions [1] that can trigger address removal from
address set, current code will result in a python exception:
ValueError: list.remove(x): x not in list.
Even worse, if address set is left inconsistent with neutron DB
because of [1], e.g. an IP assigned to a port in neutron but not yet
reflected in OVN address set, then future updates of IPs to that
port will always fail on OVN side due to the exception above.
Reviewed: https:/ /review. openstack. org/349121 /git.openstack. org/cgit/ openstack/ networking- ovn/commit/ ?id=1b0db6ea0e5 b663f1feb0ba037 34d33bbbeeda9b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1b0db6ea0e5b663 f1feb0ba03734d3 3bbbeeda9b
Author: Han Zhou <email address hidden>
Date: Fri Jul 29 16:03:34 2016 -0800
Avoid error when removing addresses from address set
There are race conditions [1] that can trigger address removal from
address set, current code will result in a python exception:
ValueError: list.remove(x): x not in list.
Even worse, if address set is left inconsistent with neutron DB
because of [1], e.g. an IP assigned to a port in neutron but not yet
reflected in OVN address set, then future updates of IPs to that
port will always fail on OVN side due to the exception above.
[1] https:/ /bugs.launchpad .net/networking -ovn/+bug/ 1605089
Related-Bug: 1605089
Change-Id: Id002594a17f410 aea3f6ada4ddabc 418d64ca63d