DHCP agent should release IPv6 leases

Bug #1521666 reported by Alexey I. Froloff on 2015-12-01
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
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...

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) on 2015-12-03
Changed in neutron:
status: New → Confirmed
assignee: nobody → Sean M. Collins (scollins)
Sean M. Collins (scollins) wrote :
tags: added: ipv6
Changed in neutron:
assignee: Sean M. Collins (scollins) → Sergey Nechaev (spnechaev)

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)

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

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  Edit
Everyone can see this information.

Other bug subscribers