commit 8cf394b896e3644ff51edf6a0d462501fb6e6843
Author: Stephen Ma <email address hidden>
Date: Sun Oct 27 08:14:21 2013 -0700
Delete DHCP port without DHCP server on a net node
A DHCP-network was deleted from one host using neutron
dhcp-agent-network-remove and then added to another host
using neutron dhcp-agent-network-add command. While the
dhcp-agent-network-remove command was in progress, the
host crashed. As a result, the removal of the DHCP-network
was partially done. The network was disassociated from
the agent in mysql. However, the agent never made the
release_dhcp_port RPC call to delete the port -- even
after the agent restarted. The end result is that there
are two DHCP ports for the same network. One of these
is found on the host that is no longer hosting the
dhcp-server.
This fix make the DHCP agent invoke the release_dhcp_port
RPC call on a stale network whose dnsmasq process is not
running (not active). Before this change, the RPC call is
made on a stale network only when the dnsmasq process is
running.
Reviewed: https:/ /review. openstack. org/56740 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=8cf394b896e 3644ff51edf6a0d 462501fb6e6843
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8cf394b896e3644 ff51edf6a0d4625 01fb6e6843
Author: Stephen Ma <email address hidden>
Date: Sun Oct 27 08:14:21 2013 -0700
Delete DHCP port without DHCP server on a net node
A DHCP-network was deleted from one host using neutron agent-network- remove and then added to another host network- add command. While the agent-network- remove command was in progress, the dhcp_port RPC call to delete the port -- even
dhcp-
using neutron dhcp-agent-
dhcp-
host crashed. As a result, the removal of the DHCP-network
was partially done. The network was disassociated from
the agent in mysql. However, the agent never made the
release_
after the agent restarted. The end result is that there
are two DHCP ports for the same network. One of these
is found on the host that is no longer hosting the
dhcp-server.
This fix make the DHCP agent invoke the release_dhcp_port
RPC call on a stale network whose dnsmasq process is not
running (not active). Before this change, the RPC call is
made on a stale network only when the dnsmasq process is
running.
Closes-Bug: #1244860 b5455550c306c6a 75ddf91d9bb
Change-Id: Ie0bafdac698810