The DisableLoadBalancer BatchAction class must have both action_past and action_present methods

Bug #1712654 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Neutron LBaaS Dashboard
Incomplete
Undecided
Unassigned

Bug Description

I'm seeing the following failures when running tests for neutron-lbaas-dashboard 3.0.0.0rc1 for Pike: http://paste.ubuntu.com/25378209/

The failures revolve around this error message, which possibly prevents the dashboard from working for Pike, though I've not yet tested: "NotImplementedError: The DisableLoadBalancer BatchAction class must have both action_past and action_present methods."

In Ubuntu, when we build dashboard packages, we set DJANGO_SETTINGS_MODULE when running tests. For example, for neutron-lbaas-dashboard we set it to DJANGO_SETTINGS_MODULE=neutron_lbaas_dashboard.tests.settings.

To test this you can apply the following patch and then run py27 tests with tox (tox -e py27):
http://paste.ubuntu.com/25378201/

description: updated
Revision history for this message
Corey Bryant (corey.bryant) wrote :

It's possible this is similar to https://review.openstack.org/#/c/463563/

summary: - test failures if
- DJANGO_SETTINGS_MODULE=neutron_lbaas_dashboard.tests.settings
+ The DisableLoadBalancer BatchAction class must have both action_past and
+ action_present methods
Revision history for this message
Corey Bryant (corey.bryant) wrote :

I'm also hitting this when deployed with 12.0.0.0rc2 of horizon and 3.0.0.0b1 of neutron-lbaas-dashboard for pike. I'll test with rc1 of n-l-d shortly but I assume the results will be the same.

From the apache error log: http://paste.ubuntu.com/25389189/

Revision history for this message
Michael Johnson (johnsom) wrote :

Can you make sure that you did not install the _1480_project_loadbalancersv2_panel.py enable script into openstack_dashboard/local/enabled directory?

Per the instructions, this file should not be installed.

I think you are getting this error because you are using the _1480_project_loadbalancersv2_panel.py file when you should only install the _1481_project_ng_loadbalancersv2_panel.py file.

Please confirm that you did not use the 1480 file on this bug.

Changed in neutron-lbaas-dashboard:
status: New → Incomplete
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Thanks Michael, I think you're correct for the install time issue. This PR https://review.openstack.org/#/c/495122/ fixes the problem I was hitting while running unit tests. I posted https://review.openstack.org/#/c/498003/1 for this as well, however I've not tested it and the prior review fixed my issue, but figured I'd post the code since I had it locally.

Revision history for this message
Akihiro Motoki (amotoki) wrote :

According to Michael's comment, _1480_project_loadbalancerv2_panel (i.e., Django version) looks **unmaintained**.
Is this bug 'Won't Fix'?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas-dashboard 4.0.0.0b1

This issue was fixed in the openstack/neutron-lbaas-dashboard 4.0.0.0b1 development milestone.

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.