Add router interface checking for duplicated subnets should ingore external network

Bug #1697410 reported by Dongcan Ye
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Dongcan Ye

Bug Description

When adding router interface by subnet, it will check the router attached port, this will cause add router interface failed in some situation.

=======================Steps to reproduce=======================
$ neutron net-create test
$ neutron subnet-create test 192.168.138.0/24 --name test-subnet
$ neutron router-create test-router

# In this step, ext-net has cidr 192.168.128.0/20
$ neutron router-gateway-set test-router ext-net

$ neutron router-interface-add test-router test-subnet
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Bad router request: Cidr 192.168.138.0/24 of subnet 72a72809-371b-47e1-a70f-15fb9a342760 overlaps with cidr 192.168.128.0/20 of subnet ec039c18-2eba-47c6-b219-fdc76a0caf66.
Neutron server returns request_ids: ['req-8b9b3d8f-44c9-437c-9b2b-98d1761d4b1c']

Dongcan Ye (hellochosen)
Changed in neutron:
assignee: nobody → Dongcan Ye (hellochosen)
summary: - Add router interface for duplicated subnets should not check external
- network
+ Add router interface checking for duplicated subnets should ingore
+ external network
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/473356

Changed in neutron:
status: New → In Progress
Changed in neutron:
assignee: Dongcan Ye (hellochosen) → Brian Haley (brian-haley)
Changed in neutron:
assignee: Brian Haley (brian-haley) → Dongcan Ye (hellochosen)
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

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

commit 0415f4f50cf1cd020c43acffb1330fda23b65d95
Author: Dongcan Ye <email address hidden>
Date: Mon Jun 12 18:39:55 2017 +0800

    Fix bug when checking duplicated subnets for router interface

    If user set gateway for router first, and gateway subnet
    overlapped with tenant subnet, will cause add router interface
    to fail.

    Add router interface checking for duplicated subnets should
    ingore the gateway network.

    This patch also filters gateway network when creating gw port.

    Change-Id: Idcc8be221656ace13b12b62f559e4cb9a6af4f32
    Closes-Bug: #1697410

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/476608

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/ocata)

Reviewed: https://review.openstack.org/476608
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=6afcb3aa7823bbb501ccaa0825bb0d98af1a582d
Submitter: Jenkins
Branch: stable/ocata

commit 6afcb3aa7823bbb501ccaa0825bb0d98af1a582d
Author: Dongcan Ye <email address hidden>
Date: Mon Jun 12 18:39:55 2017 +0800

    Fix bug when checking duplicated subnets for router interface

    If user set gateway for router first, and gateway subnet
    overlapped with tenant subnet, will cause add router interface
    to fail.

    Add router interface checking for duplicated subnets should
    ingore the gateway network.

    This patch also filters gateway network when creating gw port.

    Change-Id: Idcc8be221656ace13b12b62f559e4cb9a6af4f32
    Closes-Bug: #1697410
    (cherry picked from commit 0415f4f50cf1cd020c43acffb1330fda23b65d95)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 11.0.0.0b3

This issue was fixed in the openstack/neutron 11.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 10.0.3

This issue was fixed in the openstack/neutron 10.0.3 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.