← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1722499] [NEW] error neutron_lbaas_dashboard "Unable to retrieve load balancers."

 

Public bug reported:

After update ocata to pike.

[root@mgmt2 ~]# rpm -qa | grep openstack-neutron-lbaas
openstack-neutron-lbaas-11.0.1-1.el7.noarch
[root@mgmt2 ~]# rpm -qa | grep openstack-dashboard
openstack-dashboard-12.0.0-2.el7.noarch


When accessing "Load Balancers" Tab in Horizon UI a following error occured: Unable to retrieve load balancers.


horizon error log

[Tue Oct 10 11:45:05.726886 2017] [:error] [pid 10723] error invoking apiclient
[Tue Oct 10 11:45:05.726903 2017] [:error] [pid 10723] Traceback (most recent call last):
[Tue Oct 10 11:45:05.726906 2017] [:error] [pid 10723]   File "/usr/share/openstack-dashboard/openstack_dashboard/api/rest/utils.py", line 128, in _wrapped
[Tue Oct 10 11:45:05.726908 2017] [:error] [pid 10723]     data = function(self, request, *args, **kw)
[Tue Oct 10 11:45:05.726910 2017] [:error] [pid 10723]   File "/usr/lib/python2.7/site-packages/neutron_lbaas_dashboard/api/rest/lbaasv2.py", line 418, in get
[Tue Oct 10 11:45:05.726926 2017] [:error] [pid 10723]     if request.GET.get('full') and network.floating_ip_supported(request):
[Tue Oct 10 11:45:05.726928 2017] [:error] [pid 10723] AttributeError: 'module' object has no attribute 'floating_ip_supported'

old version dashboard "loating_ip_supported" in the /usr/share
/openstack-dashboard/openstack_dashboard/api/network.py

def floating_ip_supported(request):
    nwc = NetworkClient(request)
    return nwc.enabled and nwc.floating_ips.is_supported()

This problem was solved only by copying the old file
openstack_dashboard/api/network.py in the new dashboard

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1722499

Title:
  error neutron_lbaas_dashboard "Unable to retrieve load balancers."

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  After update ocata to pike.

  [root@mgmt2 ~]# rpm -qa | grep openstack-neutron-lbaas
  openstack-neutron-lbaas-11.0.1-1.el7.noarch
  [root@mgmt2 ~]# rpm -qa | grep openstack-dashboard
  openstack-dashboard-12.0.0-2.el7.noarch

  
  When accessing "Load Balancers" Tab in Horizon UI a following error occured: Unable to retrieve load balancers.

  
  horizon error log

  [Tue Oct 10 11:45:05.726886 2017] [:error] [pid 10723] error invoking apiclient
  [Tue Oct 10 11:45:05.726903 2017] [:error] [pid 10723] Traceback (most recent call last):
  [Tue Oct 10 11:45:05.726906 2017] [:error] [pid 10723]   File "/usr/share/openstack-dashboard/openstack_dashboard/api/rest/utils.py", line 128, in _wrapped
  [Tue Oct 10 11:45:05.726908 2017] [:error] [pid 10723]     data = function(self, request, *args, **kw)
  [Tue Oct 10 11:45:05.726910 2017] [:error] [pid 10723]   File "/usr/lib/python2.7/site-packages/neutron_lbaas_dashboard/api/rest/lbaasv2.py", line 418, in get
  [Tue Oct 10 11:45:05.726926 2017] [:error] [pid 10723]     if request.GET.get('full') and network.floating_ip_supported(request):
  [Tue Oct 10 11:45:05.726928 2017] [:error] [pid 10723] AttributeError: 'module' object has no attribute 'floating_ip_supported'

  old version dashboard "loating_ip_supported" in the /usr/share
  /openstack-dashboard/openstack_dashboard/api/network.py

  def floating_ip_supported(request):
      nwc = NetworkClient(request)
      return nwc.enabled and nwc.floating_ips.is_supported()

  This problem was solved only by copying the old file
  openstack_dashboard/api/network.py in the new dashboard

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1722499/+subscriptions


Follow ups