error when python-neutron-lbaas-dashboard installed

Bug #1720119 reported by Željko Jagušt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openstack-dashboard (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm using Ubuntu 16.04.3 LTS. I have installed openstack-dashboard package version 11.0.3. My OpenStack (Ocata) is running LBaaS v2 and I wanted to enable support inside Horizon UI.

I followed this guide: https://docs.openstack.org/ocata/networking-guide/config-lbaas.html

Upon installation and configuration of LBaaS v2 service I have tested the operations over CLI and confirmed everything is working as expected.

Then I installed python-neutron-lbaas-dashboard version 2.0.0 package from same repository as openstack-dashboard. When accessing "Load Balancers" Tab in Horizon UI a following error occured: Unable to retrieve load balancers.

Further, the tab where load balancers should be listed shows the following message: An error occurred. Please try again later.

Upon inspecting horizon error log, the following is discovered:

error invoking apiclient
[wsgi:error] [pid 4051] Traceback (most recent call last):
[wsgi:error] [pid 4051] File "/usr/share/openstack-dashboard/openstack_dashboard/api/rest/utils.py", line 126, in _wrapped
[wsgi:error] [pid 4051] data = function(self, request, *args, **kw)
[wsgi:error] [pid 4051] File "/usr/local/lib/python2.7/dist-packages/neutron_lbaas_dashboard/api/rest/lbaasv2.py", line 417, in get
[wsgi:error] [pid 4051] if request.GET.get('full') and neutron.floating_ip_supported(request):
[wsgi:error] [pid 4051] AttributeError: 'module' object has no attribute 'floating_ip_supported'

I checked /usr/local/lib/python2.7/dist-packages/neutron_lbaas_dashboard/api/rest/lbaasv2.py and discoverd "neutron" is imported in the following line:

from openstack_dashboard.api import neutron

So following this I discovered the file in question is located at /usr/share/openstack-dashboard/openstack_dashboard/api/neutron.py

Inspecting the file I discovered that attribute in question "floating_ip_supported" is not defined at all, which is the cause of the error in horizon error log.

I checked the source of openstack_dashboard on GitHub and discovered that neutron.py file contains the attribute in question. I also noticed a considerable difference in the amount of code between the neutron.py file on GitHub and the file that comes with openstack-dashboard package I installed form Ubuntu Cloud repository. The one on GitHub has 318 lines of code more.

Can you please update openstack-dashboard package in Ubuntu Cloud repository so that it works with python-neutron-lbaas-dashboard supplied in the same repo.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openstack-dashboard (Ubuntu):
status: New → Confirmed
Revision history for this message
Željko Jagušt (zeljko-jagust) wrote :

Looks like fixed with latest update of both openstack-dashboard and python-neutron-lbaas-dashboard. This can be closed.

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.