Comment 5 for bug 1244860

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/icehouse)

Reviewed: https://review.openstack.org/127183
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=7f13cbca1c007623313025ecfeb8e7cae9e7e365
Submitter: Jenkins
Branch: stable/icehouse

commit 7f13cbca1c007623313025ecfeb8e7cae9e7e365
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.

    Closes-Bug: #1244860
    Change-Id: Ie0bafdac698810b5455550c306c6a75ddf91d9bb
    (cherry picked from commit 8cf394b896e3644ff51edf6a0d462501fb6e6843)