Author: Carl Baldwin <carl.bald...@hpe.com>
Date: Mon Sep 12 15:31:08 2016 -0600
Try to reuse existing IPs when a port update specifies subnet
If a port update specifies only a subnet_id for a fixed_ip then we
want to look at existing fixed_ips to see if that subnet_id is already
there. This avoids allocating a new IP address on the subnet and
deallocating the old one.
Without some special care, this breaks the code path for prefix
delegation. One could argue that PD needs reworking. However, as a
stop-gap measure, we still run the old code path if the address is an
EUI-64 address. This allows PD to continue to work as it was
originally written and it doesn't do any harm because allocating
EUI-64 addresses is repeatable.
This commit removes a test case from the DNS integration tests. The
test was specifically testing that DNS records we updated in the case
where a subnet id was passed to re-allocate a fixed_ip. Since the use
case no longer works, the test doesn't make sense.
This commit also preserves the ability to add an additional IP from a
subnet for which the port already has IPs.
** 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.
Update port with subnet_id in fixed_ips allocates a new IP when
existing one could be used.
Status in neutron:
This issue has been seen twice causing this related bug . What
happens is the DHCP agent updates the port using the subnet_id but not
the actual ip_address that the port already has. So, the server
allocates a new IP address and throws out the old one.
What it should do is recognize that there is already an IP address on
the port that satisfies the request and avoid the churn.
A previous attempt was made  to address this bug but was reverted
because it had a side effect . Need a fix that addresses this
issue without the side-effect.
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : firstname.lastname@example.org
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp