VMs don't get ip from dhcp after compute restart
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Darragh O'Reilly | ||
neutron (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
(For SRU template, please see bug 1869808, as the SRU info there applies to this bug also)
Env: pike + ovs + vxlan + l2pop + iptables_hybrid.
Dhcp agent on differnt node than compute.
Steps:
1. Boot 4 or more vms to same compute and same vxlan net.
2. Wait until they are fully running and reboot compute node.
3. After boot the vms are in status SHUTOFF. Start the vms.
Vms don't get an ip address from neutron dhcp. The flood to tunnels flow (br-tun table 22) for the network is missing, so broadcasts like dhcp requests don't get on a tunnel to the node with dhcp agent. Neutron server did not send the flooding entry to the agent. It only does that for the first or second active port, or if the agent is restarted.
After the compute boots, neutron-ovs-cleanup runs first and deletes the qvo ports from br-int [4]. Then the ovs-agent starts and nova-compute after it. Nova-compute destroys the domains and moves the vms to SHUTOFF status. It also (for some reason) recreates the qbr linux bridges and qvb/qvo veths connected to br-int. So neutron continues to see the ports as ACTIVE even though the vms are SHUTOFF, and agent_active_ports [1] never drops below 3. Also nova-compute might start a short time after the ovs-agent and the new ports are not detected in first iteration of the ovs agent loop, so agent_restarted will be false here [2].
Before [3] agent_restarted was true if the agent was running for less than agent_boot_time (default 180 sec) and the problem did not show.
It does not happen if neutron-ovs-cleanup is disabled. Then the ovs agent first treats them as skipped_devices and they get status DOWN.
[1] https:/
[2] https:/
[3] https:/
[4] https:/
tags: | added: l2-pop ovs |
Changed in neutron: | |
assignee: | nobody → Darragh O'Reilly (darragh-oreilly) |
status: | New → In Progress |
tags: | added: in-stable-pike |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
description: | updated |
@Darragh,
Given https:/ /bugs.launchpad .net/neutron/ +bug/1853582, it seems you assumption was that ovs_all_ports set to False prevented the deletion of ports created by Nova. But as I indicated in that bug, you assumption is not valid. Do you still believe we have to pursue this bug? If yes, how should the report be updated?