Juno Horizon: Not able to associate Floating-IP to a VM from Horizon

Bug #1454872 reported by Vinod Nair
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
Ashish Ranjan
Trunk
Fix Committed
High
Ashish Ranjan

Bug Description

Not able to associate Floating IP using UI
The same works fine with cli

UI reports port not available.

Revision history for this message
Vinod Nair (vinodnair) wrote :
summary: - Not ab;e to associate Floating-IP to a VM from UI
+ Not able to associate Floating-IP to a VM from UI
tags: added: horizon ui
Revision history for this message
Rahul (rahuls) wrote : Re: Not able to associate Floating-IP to a VM from UI

Vinod can I access the system. Which project is the port in and in which project are you allocating/associating floating IP?

Revision history for this message
Rahul (rahuls) wrote :

VInod any update on this?

information type: Proprietary → Public
Revision history for this message
Rahul (rahuls) wrote :

Juno Horizon has made it mandatory to have:
1. Public VN with external flag.
2. Set it as the external g/w of a Router
3. Subnets to be attached to Router by having router interfaces from those subnets.
4. Ports from subnets matching #2,#3, are the only ones that can be assigned a Floating IP

This is as per Neutron spec, which we weren't following all this while.

Revision history for this message
Rahul (rahuls) wrote :

Needs to be documented properly.

We need to see where all this might impact UI implementation.

Revision history for this message
Rahul (rahuls) wrote : Re: Juno Horizon: Not able to associate Floating-IP to a VM from UI

root@nodeg36:/usr/share/openstack-dashboard# diff -ruN openstack_dashboard/api/neutron_orig.txt openstack_dashboard/api/neutron.py
--- openstack_dashboard/api/neutron_orig.txt 2015-05-20 21:02:08.009885387 +0530
+++ openstack_dashboard/api/neutron.py 2015-05-20 21:05:17.261429136 +0530
@@ -420,7 +420,6 @@
         ports = port_list(self.request, tenant_id=tenant_id)
         servers, has_more = nova.server_list(self.request)
         server_dict = SortedDict([(s.id, s.name) for s in servers])
- reachable_subnets = self._get_reachable_subnets(ports)

         targets = []
         for p in ports:
@@ -430,8 +429,6 @@
             port_id = p.id
             server_name = server_dict.get(p.device_id)
             for ip in p.fixed_ips:
- if ip['subnet_id'] not in reachable_subnets:
- continue
                 target = {'name': '%s: %s' % (server_name, ip['ip_address']),
                           'id': '%s_%s' % (port_id, ip['ip_address']),
                           'instance_id': p.device_id}

summary: - Not able to associate Floating-IP to a VM from UI
+ Juno Horizon: Not able to associate Floating-IP to a VM from UI
Rahul (rahuls)
tags: removed: ui
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/11710
Submitter: Arvind (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/11710
Committed: http://github.org/Juniper/contrail-packaging/commit/f905c3825c2798a08610ab5111fda8aab41be70d
Submitter: Zuul
Branch: R2.20

commit f905c3825c2798a08610ab5111fda8aab41be70d
Author: arvindvis <email address hidden>
Date: Tue Jun 16 16:33:50 2015 -0700

Horizon package built with floating ip address changes in neutron.py
Source and debian package to build the package are in contrail-third
-party packages
Closes-bug:1454872
Change-Id: Ic6632330359b044d24b4a1698ca60fcb87738eea

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/11874
Submitter: Arvind (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/11952
Submitter: Nagendra Prasath (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/11953
Submitter: Nagendra Prasath (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/11952
Committed: http://github.org/Juniper/contrail-packaging/commit/ba843910980e4d4744af3d6a9f07686d1e77cbf3
Submitter: Zuul
Branch: R2.20

commit ba843910980e4d4744af3d6a9f07686d1e77cbf3
Author: Nagendra Chandran <email address hidden>
Date: Mon Jun 22 17:11:46 2015 -0700

Fix - Not able to associate Floating-IP to a VM from UI
Closes-Bug: 1454872

Change-Id: I01b3c5914bcf3b93567aa9de78c3003e5f0fcfbb

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/11953
Committed: http://github.org/Juniper/contrail-packaging/commit/3c8a4cd559658f4919f223ea540b198bdef7d6df
Submitter: Zuul
Branch: master

commit 3c8a4cd559658f4919f223ea540b198bdef7d6df
Author: Nagendra Chandran <email address hidden>
Date: Mon Jun 22 17:14:01 2015 -0700

Fix - Not able to associate Floating-IP to a VM from UI
Closes-Bug: 1454872

Change-Id: I3737f2a06b25fcabe3a5601a1a732a224a2af358

Rahul (rahuls)
tags: added: releasenote
Rahul (rahuls)
summary: - Juno Horizon: Not able to associate Floating-IP to a VM from UI
+ Juno Horizon: Not able to associate Floating-IP to a VM from Horizon
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/11874
Committed: http://github.org/Juniper/contrail-packaging/commit/f9e7f98cc940bd2a93b20211908b37a828c42c30
Submitter: Zuul
Branch: master

commit f9e7f98cc940bd2a93b20211908b37a828c42c30
Author: arvindvis <email address hidden>
Date: Fri Jun 19 14:27:05 2015 -0700

Horizon package built with floating ip address changes in neutron.py
Source and debian package to build the package are in contrail-third
-party packages
Closes-bug:1454872

Change-Id: I10c6d3422ec057849457b93f4e6491e42db33bd4

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.