neutron/neutron/tests/unit/agent/linux
Slawek Kaplonski ba12b9e369 Fix mismatch of tags in dnsmasq options
In some cases (I don't know exactly how) it may happend that
when new subnet, e.g. IPv6 is added to the network, subnets
can change their order based on uuid.
As before this patch we were using in dnsmasq options tags like
"tagN" for subnets (where N was just number based on position of
the subnet in the sorted list) it could happend sometimes that
dnsmasq ended up with mismatch of tags configured in "dhcp-range"
cmd option and set in "opts" file. That caused problem with serving
proper DHCP options to the vms.

This patch fixes this issue by using tags with format:
"subnet-<uuid>" where uuid is id of the subnet. That was it's not
based on order of subnets in the list and will always match with tag
configured in opts file for specific subnet.

As we was currently using port id as tag for "per port" DHCP options,
this patch changes that to use tags like "port-<uuid>" to make it
consistent with options configured "per subnet" and to make it easier
to debug from where each option comes.

Conflicts:
    neutron/agent/linux/dhcp.py
    neutron/tests/unit/agent/linux/test_dhcp.py

Change-Id: Idaea33d62fa31edd7149ec916ec314438375724a
Partial-Bug: #1848738
(cherry picked from commit 88f2073526)
(cherry picked from commit a0730e684d)
2019-10-23 21:52:46 +02:00
..
openvswitch_firewall Make sure the port still in port map when prepare_port_filter 2019-08-12 12:04:19 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
failing_process.py Keep reading stdout/stderr until after kill 2015-11-19 19:14:13 +02:00
test_async_process.py Add kill_timeout to AsyncProcess 2019-01-04 11:44:23 +01:00
test_bridge_lib.py Fix UT BridgeLibTest when IPv6 is disabled 2018-06-05 12:02:26 +02:00
test_daemon.py Use bytes for python3 friendly os.write 2017-02-02 18:59:03 -08:00
test_dhcp.py Fix mismatch of tags in dnsmasq options 2019-10-23 21:52:46 +02:00
test_external_process.py Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
test_interface.py Remove deprecated IVS interface driver 2018-04-26 20:15:46 +00:00
test_ip_conntrack.py Move conntrack zones to IPTablesFirewall 2017-03-30 14:54:51 -07:00
test_ip_lib.py Switch isolated metadata proxy to bind to 169.254.169.254 2019-02-12 10:30:25 +00:00
test_ip_link_support.py sriov: implement spoofchecking configuration 2015-07-29 19:38:25 +02:00
test_ip_monitor.py Fix W605 warnings 2018-05-17 16:20:59 +09:00
test_ipset_manager.py Create ipset set_name_exists() method 2015-10-14 10:18:44 -04:00
test_iptables_firewall.py When converting sg rules to iptables, do not emit dport if not supported 2019-03-11 18:14:02 +00:00
test_iptables_manager.py Fix neutron-openvswitch-agent Windows support 2018-08-28 06:53:11 +00:00
test_keepalived.py Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
test_l3_tc_lib.py Make L3 IP tc filter rate limit more accurate 2018-06-20 02:21:28 +00:00
test_ovsdb_monitor.py Ensure ovsdb_connection enabled before calling monitor 2017-03-06 22:19:18 +00:00
test_pd.py Fix errors in PrefixDelegation.remove_stale_ri_ifname 2017-05-02 16:46:56 +00:00
test_polling.py Ensure ovsdb_connection enabled before calling monitor 2017-03-06 22:19:18 +00:00
test_tc_lib.py Fix ingress bw limit for OVS DPDK ports 2018-01-15 13:19:14 +00:00
test_utils.py Check if process' cmdline is "space separarated" 2019-03-27 09:43:54 +00:00
test_xenapi_root_helper.py Use os-xenapi for neutron when XenServer as hypervisor 2017-03-30 18:33:37 +00:00