Floating IPs should be associated with the first fixed IPv4 address

Bug #1437855 reported by Andrew Boik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Andrew Boik
Kilo
Fix Released
Undecided
Unassigned

Bug Description

If a port attached to an instance has multiple fixed IPs and a floating IP is associated without specifying a fixed ip to associate, the behavior in Neutron is to reject the associate request. The behavior in Nova in the absence of a specified fixed ip, however, is to pick the first one from the list of fixed ips on the port.

This is a problem if an IPv6 address is the first on the port because the floating IP will be NAT'ed to the IPv6 fixed address, which is not supported. Any attempts to reach the instance through its floating address will fail. This causes failures in certain scenario tests that use the Nova floating IP API when dual-stack IPv4+IPv6 is enabled, such as test_baremetal_basic_ops in check-tempest-dsvm-ironic-pxe_ssh in https://review.openstack.org/#/c/168063

Andrew Boik (drewboik)
Changed in nova:
status: New → In Progress
assignee: nobody → Andrew Boik (drewboik)
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/168701
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c5dfd2c3ef773b29666fae3fe75bf7548044dbf5
Submitter: Jenkins
Branch: master

commit c5dfd2c3ef773b29666fae3fe75bf7548044dbf5
Author: Andrew Boik <email address hidden>
Date: Sun Mar 29 10:18:48 2015 -0400

    Associate floating IPs with first v4 fixed IP if none specified

    In the absence of a specified fixed address with which to associate a
    floating IP, the first IPv4 address on the port should be associated.
    Without the check for IPv4, IPv6 ports can be associated with a (IPv4)
    floating IP, which is not supported.

    Change-Id: Ib66a9109cc1c7999474daca5970d0af1f70886e4
    Closes-Bug: 1437855

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Joe Gordon (jogo) wrote :

This helps fix IPv6 support so this may be a good candidate for a kilo backport once stable/kilo is open

Changed in nova:
importance: Low → Medium
tags: added: kilo-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/178442

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

Reviewed: https://review.openstack.org/178442
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e7519b44dd10b19c401f9a27eef548a2efc8e9e2
Submitter: Jenkins
Branch: stable/kilo

commit e7519b44dd10b19c401f9a27eef548a2efc8e9e2
Author: Andrew Boik <email address hidden>
Date: Sun Mar 29 10:18:48 2015 -0400

    Associate floating IPs with first v4 fixed IP if none specified

    In the absence of a specified fixed address with which to associate a
    floating IP, the first IPv4 address on the port should be associated.
    Without the check for IPv4, IPv6 ports can be associated with a (IPv4)
    floating IP, which is not supported.

    Change-Id: Ib66a9109cc1c7999474daca5970d0af1f70886e4
    Closes-Bug: 1437855
    (cherry picked from commit c5dfd2c3ef773b29666fae3fe75bf7548044dbf5)

tags: added: in-stable-kilo
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-1 → 12.0.0
Matt Riedemann (mriedem)
tags: removed: kilo-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.