Create project dialog does not display and errors out

Bug #1064433 reported by steve A
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Medium
hanjiabao

Bug Description

I am creating a multi server installation of openstack using 12.04 as the base platform and the required additional repositories listed in the documentation here: http://docs.openstack.org/trunk/openstack-compute/install/apt/content/assumptions.html

I then followed the dashboard install and configure documentation here - http://docs.openstack.org/trunk/openstack-compute/install/apt/content/ch_install-dashboard.html

Steps to reproduce the error -
Log into the dashboard as an administrator
Click on the Projects item in the administration list - the default projects list successfully
Click on the create-project button, the new project dialog does not appear and a pop up error message states:
An error occurred. Please try again

the following entry appears in the /var/log/apache2/error.log:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[Tue Oct 09 14:23:35 2012] [error] Problem instantiating action class.
[Tue Oct 09 14:23:35 2012] [error] Traceback (most recent call last):
[Tue Oct 09 14:23:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/horizon-2012.2-py2.7.egg/horizon/workflows/base.py", line 361, in action
[Tue Oct 09 14:23:35 2012] [error] context)
[Tue Oct 09 14:23:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/horizon-2012.2-py2.7.egg/horizon/dashboards/syspanel/projects/workflows.py", line 110, in __init__
[Tue Oct 09 14:23:35 2012] [error] redirect=reverse(INDEX_URL))
[Tue Oct 09 14:23:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/horizon-2012.2-py2.7.egg/horizon/dashboards/syspanel/projects/workflows.py", line 106, in __init__
[Tue Oct 09 14:23:35 2012] [error] default_role = api.get_default_role(self.request).id
[Tue Oct 09 14:23:35 2012] [error] AttributeError: 'NoneType' object has no attribute 'id'

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Current workaround -
use CLI command set for project and user management

Revision history for this message
Norihisa Nakagawa (n-nakagawa) wrote :

The same error occurs in the following cases.

I have defined in the local_settings.py
If the role of OPENSTACK_KEYSTONE_DEFAULT_ROLE does not exist.

How about you try to reconfirm the OPENSTACK_KEYSTONE_DEFAULT_ROLE.

Revision history for this message
steve A (dafridgie) wrote :

Thank you , that resolves this problem!!

the default entry for this in local_settings.py is :
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
I defined the member role as per the docs which state the role to create is "memberRole"
I then changed this to memberRole in local settings.py as below:
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "memberRole"

That's fixed it, really appreciate it !

Revision history for this message
planetrobbie (sebbraun) wrote :

I confirm it also worked for me on Fedora 17 while installing Folsom Dashboard.

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

Those docs are significantly out-of-date in multiple ways. I'm coordinating with Anne Gentle and the docs team to get them updated. I was going to suggest exactly the same fix but Norihisa beat me to it, good job!

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
importance: Undecided → Medium
milestone: none → grizzly-1
status: New → In Progress
Changed in horizon:
milestone: grizzly-1 → grizzly-2
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

Closing in favor of https://bugs.launchpad.net/horizon/+bug/1064412 which tracks the docs problem more directly.

Changed in horizon:
milestone: grizzly-2 → none
status: In Progress → Invalid
Changed in horizon:
assignee: Gabriel Hurley (gabriel-hurley) → hanjiabao (hanjiabao)
status: Invalid → In Progress
Changed in horizon:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Rob Cresswell (<email address hidden>) on branch: master
Review: https://review.openstack.org/289828
Reason: Abandoning for now, hasn't been updated in 5 months. Feel free to restore and update if you get time to work on the patch. Thanks!

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.