neutron/neutron/agent/metadata
Slawek Kaplonski 7af0b713ff Add locks for setting iptables rules in l3 and metadata agents
Router_info class and metadata agent's driver are using same
instance of the iptables manager class and it could happend that
sometimes e.g. nat rule which packets send to 169.254.169.254:80
redirects to the port 9697 so haproxy can process them, can be missed as
they will be overwritten by the Router_info class manipulating other
rules in the same 'nat' rules list.

This patch fixed that by adding lock for methods which are changing
rules in iptables_manager's nat table in both router_info and
the metadata agent's driver.

Conflicts:
    neutron/agent/metadata/driver.py

Closes-Bug: #1920778
Change-Id: Ic3a324c0e608c7afc4b15dbc8becd33b75ee78f6
(cherry picked from commit af3c1b8442)
(cherry picked from commit c028839647)
2021-04-09 16:05:46 +02:00
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
agent.py Fix return correct cache when reusing port 2020-03-27 16:48:57 +04:00
driver.py Add locks for setting iptables rules in l3 and metadata agents 2021-04-09 16:05:46 +02:00