Editing projects in horizon broken

Bug #1167483 reported by Chris Ricker
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Incomplete
High
Chris Ricker
Folsom
Incomplete
High
Chris Ricker

Bug Description

log in as admin, go to projects, select openstack project, select modify quotas

See the standard Horizon "Error: An error occurred. Please try again." red bubble of death on the screen, and the following in apache logs:

[Wed Apr 10 12:49:31 2013] [error] Problem instantiating action class.
[Wed Apr 10 12:49:31 2013] [error] Traceback (most recent call last):
[Wed Apr 10 12:49:31 2013] [error] File "/usr/lib/python2.7/dist-packages/horizon/workflows/base.py", line 361, in action
[Wed Apr 10 12:49:31 2013] [error] context)
[Wed Apr 10 12:49:31 2013] [error] File "/usr/lib/python2.7/dist-packages/horizon/dashboards/syspanel/projects/workflows.py", line 120, in __init__
[Wed Apr 10 12:49:31 2013] [error] redirect=reverse(INDEX_URL))
[Wed Apr 10 12:49:31 2013] [error] File "/usr/lib/python2.7/dist-packages/horizon/dashboards/syspanel/projects/workflows.py", line 116, in __init__
[Wed Apr 10 12:49:31 2013] [error] raise exceptions.NotFound(msg)
[Wed Apr 10 12:49:31 2013] [error] NotFound: <django.utils.functional.__proxy__ object at 0x7fa9b0041110>
[Wed Apr 10 12:49:37 2013] [error] Problem instantiating action class.
[Wed Apr 10 12:49:37 2013] [error] Traceback (most recent call last):
[Wed Apr 10 12:49:37 2013] [error] File "/usr/lib/python2.7/dist-packages/horizon/workflows/base.py", line 361, in action
[Wed Apr 10 12:49:37 2013] [error] context)
[Wed Apr 10 12:49:37 2013] [error] File "/usr/lib/python2.7/dist-packages/horizon/dashboards/syspanel/projects/workflows.py", line 120, in __init__
[Wed Apr 10 12:49:37 2013] [error] redirect=reverse(INDEX_URL))
[Wed Apr 10 12:49:37 2013] [error] File "/usr/lib/python2.7/dist-packages/horizon/dashboards/syspanel/projects/workflows.py", line 116, in __init__
[Wed Apr 10 12:49:37 2013] [error] raise exceptions.NotFound(msg)
[Wed Apr 10 12:49:37 2013] [error] NotFound: <django.utils.functional.__proxy__ object at 0x7fa96c08e0d0>

Revision history for this message
Chris Ricker (chris-ricker) wrote :

"Modify Users" and "Edit Project" functions similarly fail

So does "Create Project"

summary: - Changing quotas in horizon broken
+ Editing projects in horizon broken
Changed in openstack-cisco:
importance: Undecided → High
Revision history for this message
Chris Ricker (chris-ricker) wrote :

This is caused by the Member role being used by dashboard

(from /etc/openstack-dashboard/local_settings.py)

OPENSTACK_HOST = "127.0.0.1"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"

but the Member role not being created:

 keystone role-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+----------------------------------+--------+
| id | name |
+----------------------------------+--------+
| 2a796c0922f04f17b13e9a952df4e048 | admin |
+----------------------------------+--------+

Revision history for this message
Chris Ricker (chris-ricker) wrote :

So far not reproducible

Revision history for this message
Chris Ricker (chris-ricker) wrote :

Bug #1172453 may be related

Revision history for this message
Chris Ricker (chris-ricker) wrote :

De-targeting from 2012.2.4 release since we can't reliably reproduce yet

Will keep the bug open for a bit to see if it reappears / if others also hit it

Revision history for this message
Robert Brown (rjbrown99) (rjbrown99) wrote :

Happens to me with Grizzly on Fedora 18, RPM package openstack-dashboard-2013.1-0.6.g3.fc19.noarch. Here are details -

1) Horizon -> Admin -> Projects -> More -> Edit Project fails.

HTTP log messages:
[Mon Jun 03 01:56:19.934769 2013] [:error] [pid 2641] Problem instantiating action class.
[Mon Jun 03 01:56:19.934819 2013] [:error] [pid 2641] Traceback (most recent call last):
[Mon Jun 03 01:56:19.934826 2013] [:error] [pid 2641] File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 360, in action
[Mon Jun 03 01:56:19.934833 2013] [:error] [pid 2641] context)
[Mon Jun 03 01:56:19.934840 2013] [:error] [pid 2641] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/projects/workflows.py", line 125, in __init__
[Mon Jun 03 01:56:19.934846 2013] [:error] [pid 2641] redirect=reverse(INDEX_URL))
[Mon Jun 03 01:56:19.934851 2013] [:error] [pid 2641] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/projects/workflows.py", line 121, in __init__
[Mon Jun 03 01:56:19.934881 2013] [:error] [pid 2641] raise exceptions.NotFound(msg)
[Mon Jun 03 01:56:19.934888 2013] [:error] [pid 2641] NotFound: <django.utils.functional.__proxy__ object at 0x7f685dea3b10>

# keystone role-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+----------------------------------+----------+
| id | name |
+----------------------------------+----------+
| 1231231312312312312312312312312 | _member_ |
| 1231231312312312312312312312312 | admin |
+----------------------------------+----------+

What additional details would be helpful in isolating the source of this issue? Not a huge deal for me as I can move back to the cli but I imagine it's worth identifying the source and fixing or documenting this.

Revision history for this message
defermat (defermat) wrote :

I can confirm seeing this bug - installed Grizzly on Ubuntu 13.04. After adding the Member role:

keystone role-create --name Member

keystone role-list

+----------------------------------+----------+
| id | name |
+----------------------------------+----------+
| babd212b9a924569b37251f263fd3d4b | Member |
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| c637a674006e437bb7b62ac6a0f40d51 | admin |
+----------------------------------+----------+

then was able to create/modify projects and users through Horizon.

Revision history for this message
Samir Shah (samishah) wrote :

I also seem to be seeing this bug with Ubuntu 13.04. I can't add users, Projects, or Groups through Horizon. Manually, using the keystone commands, I can add them just fine.

+----------------------------------+---------------+
| id | name |
+----------------------------------+---------------+
| 123123123123123123123123123123123 | Member |
| 123123123123123123123123123123124 | ResellerAdmin |
| 123123123123123123123123123123125 | _member_ |
| 123123123123123123123123123123126 | admin |
| 123123123123123123123123123123127 | anotherrole |
| 123123123123123123123123123123128 | service |
+----------------------------------+---------------+

Revision history for this message
RaviTeja (ravi-teja) wrote :

[root@terminator1 nova]# keystone role-list
+----------------------------------+----------+
| id | name |
+----------------------------------+----------+
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| 89565a753eee41ad9bb41a001c91ceb6 | admin |
+----------------------------------+----------+

I followed the openstack docs and i have a role named "_member_" created.
So, i updated the /etc/openstack-dashboard/local_settings.py with "_member_"

[root@terminator1 nova]# cat /etc/openstack-dashboard/local_settings | grep -i member
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"

& It is working!

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.