Docs missing step on lbaas dashboard panel installation

Bug #1697245 reported by Leandro Reox
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Neutron LBaaS Dashboard
New
Undecided
Unassigned

Bug Description

If you are running your dashboard for example on docker container like me, or in an standalone box, and youre trying to get the lbaas panel work, but not showing up on the dashboard maybe youre missing some dependencies of the panel.

Followed the dashboard panel installation from the guide but, i was having on the apache logs the error:

Could not load panel: neutron_lbaas_dashboard.dashboards.project.ngloadbalancersv2.panel

In order to see whats going on i run on the dashboard directory:

- python manage.py shell

And then tried to import the dashboard exactly as horizon is trying to do it:

rom neutron_lbaas_dashboard.dashboards.project.ngloadbalancersv2 import panel
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/neutron_lbaas_dashboard/dashboards/project/ngloadbalancersv2/__init__.py", line 16, in <module>
    from neutron_lbaas_dashboard.api import rest # noqa
  File "/usr/local/lib/python2.7/dist-packages/neutron_lbaas_dashboard/api/rest/__init__.py", line 25, in <module>
    from neutron_lbaas_dashboard.api.rest import barbican # noqa
  File "/usr/local/lib/python2.7/dist-packages/neutron_lbaas_dashboard/api/rest/barbican.py", line 17, in <module>
    from barbicanclient import client as barbican_client
ImportError: No module named barbicanclient

So, on the docs, if youre not doing sudo pip install neutron-lbaas-dashboard (use pip install neutron-lbaas-dashboard==1.0.0 and youre running the python setup.py install only as the documentation says, youre going to run into missing dependencies, cause youre not running pip install -r requirements.txt on your neutron-lbaas-dashboard folder.

So, in order that the users doesnt fail deploying this we have two options

- update the git clone, checkout, and python setup.py install and replace it for the pip install neutron-lbaas-dashboard
- add another step on the guide, to force the user to run the pip install -r requirements.txt before running the python setup.py install

Best

Revision history for this message
Erik Olof Gunnar Andersson (eandersson) wrote :

Which guide is this referring to?
https://pypi.python.org/pypi/neutron-lbaas-dashboard
https://docs.openstack.org/developer/neutron-lbaas-dashboard/installation.html

Either of these have working solutions for the above issue, but maybe the one based on the README could be improved a little.

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.