floating-ip association is allowed via router interface

Bug #1556884 reported by YAMAMOTO Takashi
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
YAMAMOTO Takashi

Bug Description

after a recent change [1],
floating-ip created on an external network associated to a router via a router interface (not gateway port)
can be assocaited to a port on another network connected to the router.
i believe it isn't intended to be allowed.

[1] If054945eab058c7138aabbb22cda15890ccb502c

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

Changed in neutron:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
status: New → In Progress
Revision history for this message
Irena Berezovsky (irenab) wrote :

While working on some interesting case for Manila integration with neutron, we found it very useful to have another range of floating ips to be associated with distinct network (in this case storage network) so it won't require to use external network addresses. For me this looks as a feature and not a bug :-)

Revision history for this message
Kevin Benton (kevinbenton) wrote :

@Irena, how did that end up working? Wouldn't the router have the IP address on the incorrect interface?

Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :

Kevin,

i guess it happens to work due to weak host model wrt ARP.

tags: added: l3-ipam-dhcp
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

This is bug for me but I'm not sure that this bug is worth RC1. I guess that there are probably no use case that we process interface-add external NW into router.

Revision history for this message
Irena Berezovsky (irenab) wrote :

@Kevin, I tried this with Midonet plugin (admit that didn't test yet with the reference implementation), and had to assure that midonet does not to assume gw port for the FIP but takes into account the subnet of the FIP. This places the NAT rule on the interface where FIP subnet (not the external net one) is connected.

Revision history for this message
Irena Berezovsky (irenab) wrote :

I would like neutron to support this use case, as it helps the user (manila) to support multi-tenant environment by assigning VM a unique IP for the storage network. One of the options is to add specific API extension to allow additional router-interface for FIP allocation, but not sure if it's required.

Revision history for this message
Ryu Ishimoto (ryu-midokura) wrote :

While I consider it a bug if you look at it from the point of view that the validation was unintentionally removed in an unrelated patch, I also think that this is not really a bug in the sense that we already have at least one use case where this is useful, and we haven't come up with any reason why it's a problem. I would vote for keeping it as is unless the reference implementation does not handle this case.

tags: added: mitaka-backport-potential
Changed in neutron:
milestone: none → newton-1
Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

Irena Berezovsky, Ryu Ishimoto: The feature was not intentionally added and we shouldn't merge it into project without discussion even if it's useful for someone . Can you start to discuss in Newton if you have the request for the feature?

Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :

Ryu,

even if it works perfectly (i doubt it), adding a feature this way defeats the purpose of extensions.
ie. allow a user to query features via api.

Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :
Changed in neutron:
milestone: newton-1 → newton-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/292318
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=35aefdb54d58c786b26b10e1d0c550f7149e23fb
Submitter: Jenkins
Branch: master

commit 35aefdb54d58c786b26b10e1d0c550f7149e23fb
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon Mar 14 20:38:28 2016 +0900

    Fix validation of floating-ip association

    A recently merged patch [1] allowed floating-ip via non-gateway port.
    This commit fixes the regression.

    This commit also provides an override point to allow plugins to choose
    the "broken" behaviour.

    [1] If054945eab058c7138aabbb22cda15890ccb502c

    Closes-Bug: #1556884
    Related-Bug: #1566191
    Change-Id: I5b824a209355bbb44d954e00ad47269ac0b903b5

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

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/325697

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

Reviewed: https://review.openstack.org/325697
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=cb36ef3828a8929ccdeec849ad8f4bba8f6bc137
Submitter: Jenkins
Branch: stable/mitaka

commit cb36ef3828a8929ccdeec849ad8f4bba8f6bc137
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon Mar 14 20:38:28 2016 +0900

    Fix validation of floating-ip association

    A recently merged patch [1] allowed floating-ip via non-gateway port.
    This commit fixes the regression.

    This commit also provides an override point to allow plugins to choose
    the "broken" behaviour.

    [1] If054945eab058c7138aabbb22cda15890ccb502c

    Closes-Bug: #1556884
    Related-Bug: #1566191
    Change-Id: I5b824a209355bbb44d954e00ad47269ac0b903b5
    (cherry picked from commit 35aefdb54d58c786b26b10e1d0c550f7149e23fb)

tags: added: in-stable-mitaka
tags: added: neutron-proactive-backport-potential
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/neutron 9.0.0.0b2

This issue was fixed in the openstack/neutron 9.0.0.0b2 development milestone.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/neutron 8.2.0

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

tags: removed: neutron-proactive-backport-potential
tags: removed: mitaka-backport-potential
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.