FIP list_target_id_by_instance should check IP version of IP address of the port

Bug #1725656 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Akihiro Motoki

Bug Description

FloatingIpManager.list_target_id_by_instance() returns a list of target neutron ports for FIP association, but it just extract the first IP address of each port. Only IPv4 address of a port can be associated with FIP, so the IP version check is mandatory.

The same thing applies to FloatingIpManager.get_target_id_by_instance.

Tags: neutron
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/513924
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=07e2e0af921ad6b3f1f40b526274ec96faea3f45
Submitter: Zuul
Branch: master

commit 07e2e0af921ad6b3f1f40b526274ec96faea3f45
Author: Akihiro Motoki <email address hidden>
Date: Sat Oct 21 11:30:04 2017 +0000

    Make list_targets_by_instance look up IPv4 address as target

    Previously list_targets_by_instance extracts the first IP address
    of a network port. There is no guarantee that the first IP address
    is IPv4 address. It may be an IPv6 address, but IPv6 cannot be used
    as a target of floating IP.

    Closes-Bug: #1725656
    Change-Id: Ibd958dde42731aec2a2d80c0d172b7bfbb5c954e

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 13.0.0.0b2

This issue was fixed in the openstack/horizon 13.0.0.0b2 development milestone.

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.