Floating IPs cannot be associated in a HA router setup

Bug #1617769 reported by Paulo Matias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Paulo Matias

Bug Description

Regression introduced by https://github.com/openstack/neutron-lib/commit/0440878cc61737cf68a2f5780fc8af57845078fd

When Neutron is deployed to implement a HA router setup, Horizon is not capable to list targets for floating IP association. The user receives only a "No Ports Available" message and is thus unable to associate any floating IP through Horizon.

This happens because get_reachable_subnets [1] always returns an empty set, issue which is caused by the absence of the new device owner flag for HA router interface ("network:ha_router_replicated_interface") in ROUTER_INTERFACE_OWNERS [2].

I will send a patch to gerrit in a few minutes.

--

Expected result: The user should be able to associate a floating IP to an instance using Horizon.

Actual result: The user cannot associate any floating IP because "Port to be associated" only displays "No Ports Available".

Steps to reproduce:
* Deploy the environment
* Create an external network, a project network, and a router between them
* Launch an instance
* Allocate a floating IP
* Try to associate a floating IP to the instance

Environment:
* OpenStack-Ansible, master branch
* Multi-node setup
* Default neutron setup (ml2.lxb)

--
References

[1] https://github.com/openstack/horizon/blob/3bd785274636e9f90d11d28428f479e51403c6d1/openstack_dashboard/api/neutron.py#L449

[2] https://github.com/openstack/horizon/blob/3bd785274636e9f90d11d28428f479e51403c6d1/openstack_dashboard/api/neutron.py#L50

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

Changed in horizon:
assignee: nobody → Paulo Matias (paulo-matias)
status: New → In Progress
Changed in horizon:
milestone: none → newton-rc1
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/361754
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=2ac3d510147b51c37e343099d4c477d2d7cdd7a3
Submitter: Jenkins
Branch: master

commit 2ac3d510147b51c37e343099d4c477d2d7cdd7a3
Author: Paulo Matias <email address hidden>
Date: Sun Aug 28 12:33:34 2016 -0300

    Add the new device owner flag for HA router interface

    Changeset I89b247bdac3aee1e47ee8a1c9f1cb2c385019a51 introduced a new
    device owner flag for HA router interfaces which was still not included
    in Horizon's ROUTER_INTERFACE_OWNERS.

    Change-Id: I2db4218e7351e0017a7a74114be6ac7af803476c
    Related-Bug: #1554519
    Closes-Bug: #1617769

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

This issue was fixed in the openstack/horizon 10.0.0.0rc1 release candidate.

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.