Not showing neutron-lbaas-dashboard even after enabled

Bug #1621403 reported by ank
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Neutron LBaaS Dashboard
Incomplete
Critical
Unassigned

Bug Description

I am trying to enable neutron-lbaas-dashboard but unable to view dashboard if I copy _1481_project_ng_loadbalancersv2_panel.py in neutron_lbaas_dashboard/enabled directory to openstack_dashboard/local/enabled, as mentioned in README (https://github.com/openstack/neutron-lbaas-dashboard/tree/stable/mitaka).

Steps followed:

1. Got neutron-lbaas-dashboard Mitaka version

   git+https://github.com/openstack/neutron-lbaas-dashboard.git@stable/mitaka#egg=neutron-lbaas-
   dashboard

2. As per README, copied _1481_project_ng_loadbalancersv2_panel.py in
   neutron_lbaas_dashboard/enabled directory to openstack_dashboard/local/enabled

   # ls .venv/lib/python2.7/site-packages/openstack_dashboard/local/enabled/
     _1481_project_ng_loadbalancersv2_panel.py _50_settings.py.example __init__.py __init__.pyc

3. Restarted Django development server. I don't see dashboard

But if I copy _1480_project_loadbalancersv2_panel.py in neutron_lbaas_dashboard/enabled directory to openstack_dashboard/local/enabled, then I can see neutron-lbaas-dashboard.

neutron_lbaas_dashboard enabled files:
# ls .venv/lib/python2.7/site-packages/neutron_lbaas_dashboard/enabled/
_1480_project_loadbalancersv2_panel.py _1481_project_ng_loadbalancersv2_panel.py __init__.py

Revision history for this message
Özgür Caner (oc-b) wrote :

I'm experiencing the same issue using the stable mitaka version of Horizon.
The 1480 panel file enables the lbaas panel but you can't create a loadbalancer using it.
Creating a LB results in "Error: source_type" and "Unable to launch load balancer ..." .

Same issue is described here: https://bugzilla.redhat.com/show_bug.cgi?id=1368601

Is there any update on this issue currently the lbaas plugin doesn't work at all.

Changed in neutron-lbaas-dashboard:
importance: Undecided → Critical
Revision history for this message
Ankur (ankur-gupta-f) wrote :

Not having this issue with master branch. Re-attempting with Mitaka branch

Revision history for this message
Ankur (ankur-gupta-f) wrote :

Devstack build with:
neutron-lbaas: stable/newton
horizon: stable/newton
octavia: stable/newton

neutron-lbaas-dashboard: stable/mitaka

Build and works properly.

There is an issue with setting up manually where Horizon doesn't load the panel and can be seen in the Horizon logs.

It was reported that panel _1481_ does not work, but panel _1480_ works properly.

Revision history for this message
SFilatov (sergeyfilatov) wrote :

I had the same problem before, In my case it was that I didn't have python-barbicanclient installed. It fails to import it and is not able to load lbaas panel.

If you copied 1481 file and it's not able to load panel you can do the following to determine the cause:
python manage.py shell
>>from neutron_lbaas_dashboard.dashboards.project.ngloadbalancersv2 import panel
It should tell you why it's not able to load

Revision history for this message
Srini (thisismsreddy) wrote :

I had same problem in Newton with Packstack, But It fixed after I was copy the " _1480_project_loadbalancersv2_panel.py /usr/share/openstack-dashboard/openstack_dashboard/local/enabled"

I dont why in the documentaion it's showing us to use this file _1481_project_ng_loadbalancersv2_panel.py ?

Revision history for this message
Saverio Proto (zioproto) wrote :

Hello,

On top of my horizon newton installation I am trying the following:

pip install --upgrade pip
pip install oslo_log
pip install neutron-lbaas-dashboard
cp /usr/local/lib/python2.7/dist-packages/neutron_lbaas_dashboard/enabled/* /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/
/usr/share/openstack-dashboard/manage.py collectstatic --noinput
/usr/share/openstack-dashboard/manage.py compress --force
service apache2 restart

Looks like I have no problem importing the panel:

Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from neutron_lbaas_dashboard.dashboards.project.ngloadbalancersv2 import panel
>>>

I am getting this error when I try to create a new load balancer:

in /var/log/horizon/horizon.log

2017-03-13 12:38:18,591 29 WARNING horizon.exceptions Recoverable error: 'source_type'

The system has already some LBaaSv2 that I can list with the CLI doing
neutron lbaas-loadbalancer-list

(neutron) lbaas-loadbalancer-list
+--------------------------------------+-------+-------------+---------------------+----------+
| id | name | vip_address | provisioning_status | provider |
+--------------------------------------+-------+-------------+---------------------+----------+
| 44c9b3a3-cfc3-4b31-92e0-4eef2fbd353e | vipV1 | 10.0.77.113 | ONLINE | haproxy |
+--------------------------------------+-------+-------------+---------------------+----------+
(neutron)

BUT the Horizon panel is always empty and does not show this load balancer.

Changed in neutron-lbaas-dashboard:
status: New → Incomplete
Revision history for this message
Michael Johnson (johnsom) wrote :

I have loaded up two versions of the dashboard without issue.

1. I used neutron-lbaas-dashboard v2.0.0 with current master OpenStack
2. I used neutron-lbaas-dashboard v1.0.0 with stable/newton OpenStack

Both loaded correctly and were able to create two fully functional load balancers.

It looks like steps are being skipped in the installation instructions. The initial poster did not run the manage.py commands and/or restart apache2.

The latest reporter installed both versions of the panel instead of only the one listed in the instructions.

Steps I used to install:

1. sudo pip install neutron-lbaas-dashboard (use pip install neutron-lbaas-dashboard==1.0.0 if you are installing on stable/mitaka or stable/newton)
2. cp /usr/local/lib/python2.7/dist-packages/neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py /opt/stack/horizon/openstack_dashboard/enabled/
3. /opt/stack/horizon/manage.py collectstatic and answered yes
4. /opt/stack/horizon/manage.py compress
5. sudo service apache2 restart

At which point the Load Balancers section appears under Network.

Screenshot of neutron-lbaas-dashboard v2.0.0 on current master OpenStack (https://usercontent.irccloud-cdn.com/file/4Zgl9SB3/)
Screenshot of neutron-lbaas-dashboard v1.0.0 on stable/newton OpenStack (https://usercontent.irccloud-cdn.com/file/budVWhJs/)

Please confirm that you are following the instructions in the README.rst or on PyPi.

Revision history for this message
Alfredo Moralejo (amoralej) wrote :

In my case, using RDO packages it works as expected but i had to set enable_lb to True in local_settings file:

OPENSTACK_NEUTRON_NETWORK = {
    'enable_lb': True
}

Note this is not in README file, but enable_lb defaults to True upstream.

Revision history for this message
Harsha (harsha1122) wrote :

Hello,
@Michael Johnson,

I'm facing the similar issue. I'm using Newton release, I tried the solution you have posted but after installing neutron-lbaas-dashboard I couldn't find the stack directory in under /opt.

I followed the Openstack documentation for configuring Newton. I tried lbaas according to the Openstack documentation but I'm facing the same issue as they mentioned above.
What may be issue? Can you please help me?

Revision history for this message
carlosedp (carlosedp) wrote :

Here follows my experience and a fix.

I've followed @Michael Johnson guide but had a similar problem where the panel related to the _1480 is shown in the sidebar and when I try to create a LB with it, it fails (same errors reported above).

When I removed the _1480 and only keept _1481, no link was shown in the sidebar but if I manually go into the panel URL (https://public.fuel.local/horizon/project/ngloadbalancersv2), I've been able to use the dashboard.

I found out that I have two local_settings.py files. One on /usr/share/openstack-dashboard/local_settings.py and one in /etc/openstack-dashboard/local_settings.py. I was editing the former to enable_lb: True. When I checked the later, it was false. changing to True showed the panel correctly.

Carlos

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.