Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1077245

Summary: Horizon create new project fails - Error: An error occurred. Please try again later.
Product: Red Hat OpenStack Reporter: Tzach Shefi <tshefi>
Component: python-django-horizonAssignee: Julie Pichon <jpichon>
Status: CLOSED NOTABUG QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: aortega, athomas, jpichon, mrunge, yeylon
Target Milestone: ---   
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-01 08:36:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
horizon.log none

Description Tzach Shefi 2014-03-17 14:59:29 UTC
Created attachment 875519 [details]
horizon.log

Description of problem:
Can't create new project from Horizon, admin user, Identity panel, projects page, create project -> Error: An error occurred. Please try again later.

Create project from keystone cli works fine,
#keystone --debug tenant-create --name test

Version-Release number of selected component (if applicable):
RHEL 6.5

python-django-openstack-auth-1.1.2-2.el6ost.noarch
openstack-dashboard-2013.2.2-1.el6ost.noarch
openstack-keystone-2013.2.2-1.el6ost.noarch


How reproducible:
Every time, happened on two separate deployments. 

Steps to Reproduce:
1. Install setup
2. Go to admin, identity panel, projects, click on "Create project" button
3. 

Actual results:
New project not created with -> Error: An error occurred. Please try again later. 

cat /var/log/horizon/horizon.log

  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/projects/workflows.py", line 163, in __init__
    raise exceptions.NotFound(msg)
NotFound: Could not find default role "Member" in Keystone

Expected results:
A new project should be created successfully, without errors.

Additional info:

Comment 2 Tzach Shefi 2014-03-19 07:33:36 UTC
Same error happens, under "More" button:  Edit project, Modify quota. 
View usage, Delete project both work OK. 

Same popup error on Horizon:  Error: An error occurred. Please try again later.

And on Horizon.log:  
raise exceptions.NotFound(msg)
NotFound: Could not find default role "Member" in Keystone

Comment 3 Tzach Shefi 2014-03-27 07:32:23 UTC
Same issue on RDO icehouse M3 test day

RHEL 7
openstack-keystone-2014.1-0.4.b3.el7.noarch
openstack-dashboard-2014.1-0.5.b3.el7.noarch
python-django-openstack-auth-1.1.4-1.el7.noarch

Suggestion on LP, change below setting, didn't fix.
settings.py -> OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"

Comment 4 Julie Pichon 2014-03-27 11:34:45 UTC
Can you make sure the role in /etc/openstack-dashboard/local_settings matches a role that exists in Keystone (seen in `keystone role-list`), and restart httpd if you need to update the Horizon configuration file? You can also create a new "Member" role in Keystone if you prefer, with `keystone role-create --name Member`.

Comment 5 Tzach Shefi 2014-04-01 08:33:33 UTC
Update 
changing settings.py -> OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
Did reslove, forgot to restart httpd..  

After restarting issue resloved, got httpd restart tip on LP.

Comment 6 Julie Pichon 2014-04-01 08:36:39 UTC
Thank you for the update.