← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1962306] Re: [Prefix Delegation] router add segment fails with Subnet for router interface must have a gateway IP

 

Reviewed:  https://review.opendev.org/c/openstack/neutron/+/831214
Committed: https://opendev.org/openstack/neutron/commit/820b2e26658a3fb5e00a7cedbdc2418d2196aa42
Submitter: "Zuul (22348)"
Branch:    master

commit 820b2e26658a3fb5e00a7cedbdc2418d2196aa42
Author: yatinkarel <ykarel@xxxxxxxxxx>
Date:   Mon Feb 28 18:54:26 2022 +0530

    Ensure gateway is set for prefix delegated subnets
    
    With [1] gateway is no longer set for subnet created
    with prefix delegation, but when adding the subnet
    to the router it fails as it expects gateway to be
    set.
    
    This patch ensures gateway is set temporary to the first IP
    of the subnet as it used to be just like the temporary CIDR.
    Also need to ensure dhcp configuration is skipped to avoid the
    original issue[2].
    
    [1] https://review.opendev.org/c/openstack/neutron/+/699465
    [2] https://bugs.launchpad.net/neutron/+bug/1856675
    
    Closes-Bug: #1962306
    Related-Bug: #1856675
    Change-Id: I512f7d98ac99bb0ef06fd2acba09482e3436d18d


** 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/1962306

Title:
  [Prefix Delegation] router add segment fails with Subnet for router
  interface must have a gateway IP

Status in neutron:
  Fix Released

Bug description:
  Steps to reproduce:-
  Update ipv6_pd_enabled = true in neutron.conf and restart neutron-api service.

  $ openstack network create ipv6-pd
  $ openstack subnet create --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac --use-default-subnet-pool --network ipv6-pd ipv6-pd-1
  $ openstack router add subnet router1 ipv6-pd-1

  Add subnet fails with below Error:-
  BadRequestException: 400: Client Error for url: http://192.168.0.5:9696/v2.0/routers/417bc2ad-019a-470c-b0ca-61a1d81c3d7d/add_router_interface, Bad router request: Subnet for router interface must have a gateway IP.

  The issue is caused with https://review.opendev.org/c/openstack/neutron/+/699465 in order to fix 
  https://bugs.launchpad.net/neutron/+bug/1856675.

  
  Workaround:-
  Create segment with --gateway specified, this will cause the issue #1856675 but working prefix-delegation, so need to fix it without re introducing previous bug:-
  openstack subnet create --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac --use-default-subnet-pool --network ipv6-pd --gateway :: ipv6-pd-1

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



References