← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1509626] Re: prefix delegation deletes addresses for ports

 

*** This bug is a duplicate of bug 1505316 ***
    https://bugs.launchpad.net/bugs/1505316

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

commit c2f780648d878477bec731d255e71c112ca941b5
Author: venkata anil <anil.venkata@xxxxxxxxxxxx>
Date:   Wed Apr 6 08:39:13 2016 +0000

    Fix prefix delegation deleting addresses for ports
    
    If a network has IPv4 and IPv6(prefix delegated) subnets,
    prefix delegation is deleting port's IPv4 address and
    not properly updating IPv6 address.
    
    Prefix Delegation(PD) is calling port_update with empty fixed_ip,
    for the port with IPv4 and IPv6(PD) subnets. After fixing this,
    when _update_ips_for_port is called with new_ips having IPv6 PD subnet,
    it is unable to add IPv6 address with new subnet prefix,
    as _test_fixed_ips_for_port not returning IPv6 PD subnet.
    
    To fix this, we explicitly add PD subnet to "to_add" list,
    so that IPv6 address with new prefix added to PD subnet's port.
    
    Closes-bug: #1509626
    Partial-Bug: #1505316
    Change-Id: I1162ca7d004461c335b0f6e0a9b5d6dff0a10429


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1509626

Title:
  prefix delegation deletes addresses for ports

Status in neutron:
  Fix Released

Bug description:
  If a network has IPv4 and IPv6(prefix delegated) subnets,
  prefix delegation is deleting port's IPv4 address and not properly updating IPv6 address.

  1) create network
  2) create ipv4 subnet with CIDR for the above network
  3) create ipv6 slaac subnet with prefix delegation for above network
  4) create router
  5) add gateway to router
  6) add above ipv6 subnet to router
  Check if IPv6 subnet got new prefix.
  You can see fixed_ip attribute as blank for dhcp port
  (i.e "ipallocations" table has no entry for this dhcp port).

  7) Boot a vm on this network.
  "neutron port-show" will show ipv4 and ipv6 address for this network.
  But this vm can't aquire ipv4 address as dhcp packets are dropped in linux bridge(because security groups related to dhcp are deleted along with dhcp port's fixed_ip delete)

  8) delete above ipv6 subnet from router through router-interface-delete.
  This deletes ipv4 address for vm's port (check this with "neutron port-show").

  Expected behavior:
  Prefix delegation should only update IPv6 address if the network has both IPv4 and IPv6 subnets.
  It should update IPv6 address with proper prefix.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1509626/+subscriptions


References