← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1859163] Re: Create port with fixed ipv6 address for non-router ports is not allowed anymore

 

Reviewed:  https://review.opendev.org/701965
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=b20669fa6ec88445ccf4b3fa8cb38aa05b5b3efb
Submitter: Zuul
Branch:    master

commit b20669fa6ec88445ccf4b3fa8cb38aa05b5b3efb
Author: Rodolfo Alonso Hernandez <ralonsoh@xxxxxxxxxx>
Date:   Fri Jan 10 13:57:08 2020 +0000

    IPv6 accepts first address only for routers
    
    Neutron considers the network address a valid IPv6 address if the
    owner is a router or is not defined yet [1][2]. If not, the IPv6
    address is discharded.
    
    [1] https://tools.ietf.org/html/rfc4291#section-2.6.1
    [2] https://review.opendev.org/#/c/647484/
    
    Change-Id: I1ddee94bd34182960de8e5261fbc99edc10b6654
    Closes-Bug: #1859163


** Changed in: neutron
       Status: Fix Committed => 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/1859163

Title:
  Create port with fixed ipv6 address for non-router ports is not
  allowed anymore

Status in neutron:
  Fix Released

Bug description:
  As per merge in of https://review.opendev.org/#/c/699465/12/neutron/ipam/utils.py it is not allowed to create or update ports with fixed ips if the device_owner is not empty or a router device owner.
  This blocks us from creating ports with our own custom device owner, but also blocks for example the following example with a nova port:

  openstack network create net1
  openstack subnet create --ip-version 6 --subnet-range cafe:babe::/64 --network net1 subnet1
  openstack port create --network net1 --fixed-ip subnet=subnet1,ip-address=cafe:babe::5 port1
  openstack server create --flavor 1 --image cirros --port port1 server1
  openstack port set --fixed-ip subnet=subnet1,ip-address=cafe:babe::6 port1

  Expected result: port1 is updated with the new fixed ip.

  Actual result: Neutron API gives the error "IP address cafe:babe::6 is
  not a valid IP for the specified subnet."

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


References