DHCP agent should release IPv6 leases

Bug #1521666 reported by Alexey I. Froloff
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Brian Haley

Bug Description

dhcp_relase does not work with IPv6, but IPv6 leases still should be released. Example:

1. Start VM in dhcpv6-statefull network, make it acquire IPv6 address.
2. Delete VM.
3. Start another VM in same network before lease expires.

There's a very high chance that same IPv6 address will be allocated for both these VMs (same address will be reused after first VM was delete). On DHCP agent hosts file would be changed, but lease file not, so dnsmasq will not give second VM address until lease expitres. Reducing lease time is not a good solution here...

Tags: ipv6
Revision history for this message
Sean M. Collins (scollins) wrote :

DHCPv6 Stateful is not currently being tested, due to the fact that Cirros does not support it yet

https://bugs.launchpad.net/cirros/+bug/1487041

Doug Wiegley (dougwig)
Changed in neutron:
status: New → Confirmed
assignee: nobody → Sean M. Collins (scollins)
Revision history for this message
Sean M. Collins (scollins) wrote :
tags: added: ipv6
Changed in neutron:
assignee: Sean M. Collins (scollins) → Sergey Nechaev (spnechaev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/301747

Changed in neutron:
status: Confirmed → In Progress
Changed in neutron:
assignee: Sergey Nechaev (spnechaev) → Brian Haley (brian-haley)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/301747
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=2aa23de58f55f7b1001508326c5ac2627ba3a429
Submitter: Jenkins
Branch: master

commit 2aa23de58f55f7b1001508326c5ac2627ba3a429
Author: Sergey Nechaev <email address hidden>
Date: Tue Apr 5 14:40:59 2016 +0000

    Adding support of releasing DHCPv6 leases

    Original problem is that dhcp_release does not work with IPv6, but IPv6
    leases still should be released. For example:

    1. Start VM in dhcpv6-stateful network, make it acquire IPv6 address.
    2. Delete VM.
    3. Start another VM in same network before lease expires.

    There's a very high chance that the same IPv6 address will be allocated
    for both of these VMs (same address will be reused after first VM was
    deleted).

    On DHCP agent, hosts file would be changed, but not lease file, so
    dnsmasq will not give second VM address until lease expires. Reducing
    lease time is not a good solution here.

    Solution is adding invocation of dhcp_release6 utility when
    releasing IPv6 address. dhcp_release6 utility appears in dnsmasq 2.76.
    It crafts DHCP6_Release packet, sends it from passed network
    interface to IPv6 multicast address and waits for DHCP6_Reply.

    Closes-Bug: 1521666
    Change-Id: I5efab81cdaf0676503b6c7da0d4b4f400d859286

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 9.0.0.0b3

This issue was fixed in the openstack/neutron 9.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.