Router interface should not be updated to have more ips

Bug #1410688 reported by Zhiyuan Cai
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Expired
Medium
Unassigned

Bug Description

When adding an interface to a router with a port, Neutron will check, and if that port has more than one fixed ips, Neutron will reject that request. However, we can still update a router port to have more than one fixed ips.

openstack@Openstack-Vega:~$ neutron router-port-list router1
+--------------------------------------+----------+-------------------+---------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+----------+-------------------+---------------------------------------------------------------------------------+
| 358c58b8-9b74-4425-b38f-e17a47742488 | testport | fa:16:3e:cb:75:39 | {"subnet_id": "ffd2d8ad-7a27-4e59-b78b-508af54d3cb4", "ip_address": "10.0.0.6"} |
+--------------------------------------+----------+-------------------+---------------------------------------------------------------------------------+

openstack@Openstack-Vega:~$ neutron port-update testport --fixed-ips type=dict list=true ip_address=10.0.0.6 ip_address=10.0.0.7
Updated port: testport

openstack@Openstack-Vega:~$ neutron router-port-list router1
+--------------------------------------+----------+-------------------+---------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+----------+-------------------+---------------------------------------------------------------------------------+
| 358c58b8-9b74-4425-b38f-e17a47742488 | testport | fa:16:3e:cb:75:39 | {"subnet_id": "ffd2d8ad-7a27-4e59-b78b-508af54d3cb4", "ip_address": "10.0.0.6"} |
| | | | {"subnet_id": "ffd2d8ad-7a27-4e59-b78b-508af54d3cb4", "ip_address": "10.0.0.7"} |
+--------------------------------------+----------+-------------------+---------------------------------------------------------------------------------+

Changed in neutron:
assignee: nobody → Zhiyuan Cai (luckyvega-g)
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This is because during the port-update we don't validate or look at port owners in relation to IP allocations.

Changed in neutron:
status: New → Confirmed
Revision history for this message
Kevin Benton (kevinbenton) wrote :

If this is admin-only, do we care? Maybe we should just pull the restriction off of the create so we don't end up special-casing port-update code just for routers.

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/147739

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Kyle Mestery (<email address hidden>) on branch: master
Review: https://review.openstack.org/147739
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This bug is > 365 days without activity. We are unsetting assignee and milestone and setting status to Incomplete in order to allow its expiry in 60 days.

If the bug is still valid, then update the bug status.

Changed in neutron:
assignee: Zhiyuan Cai (luckyvega-g) → nobody
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for neutron because there has been no activity for 60 days.]

Changed in neutron:
status: Incomplete → Expired
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.