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

Bug 1628656

Summary: No "create role" button in Horizon dashboard.
Product: Red Hat OpenStack Reporter: Andrey Fiodorov <afiodoro>
Component: puppet-horizonAssignee: Radomir Dopieralski <rdopiera>
Status: CLOSED ERRATA QA Contact: Andrey Fiodorov <afiodoro>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: afiodoro, athomas, beth.white, jjoyce, jrist, jschluet, mrunge, rdopiera, slinaber, tvignaud, ukalifon
Target Milestone: betaKeywords: Regression, Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-horizon-13.3.1-0.20181013114958.c02fb6f.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:53:06 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:

Description Andrey Fiodorov 2018-09-13 16:05:10 UTC
Description of problem:
In Horizon dashboard there's no "create role" button in "Roles" page.

Version-Release number of selected component (if applicable):
python-django-horizon-14.0.1-0.20180903221923.e975afd.el7ost.2.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install OSP14-passed-phase1(containerized)
2. deploy overcloud
3. Login to Horizon dashboard with admin user
4. Go to Identify->Roles

Actual results:
Here is no "create role" button.

Expected results:
"Create role" button should be in this page.

Additional info:
puddle from: 2018.09.06

Link to test run in polation:
https://polarion.engineering.redhat.com/polarion/#/project/RHELOpenStackPlatform/workitem?id=RHELOSP-12048

Comment 3 Radomir Dopieralski 2018-09-20 14:04:08 UTC
I can reproduce this with osp14, but not with the upstream master, so there must be a patch that fixes it that we missed. I will try to find it and backport it.

Comment 5 Radomir Dopieralski 2018-09-21 10:12:14 UTC
Can you please check if the OPENSTACK_KEYSTONE_BACKEND setting in /etc/openstack-dashboard/local_settings contains the setting "'can_edit_role': True,"?

Can you also check /etc/openstack-dashboard/keystone_policy.json and see what is the policy for "create_role"?

Comment 6 Radomir Dopieralski 2018-09-21 10:41:26 UTC
I found the problem. The REST_API_REQUIRED_SETTINGS setting needs to contain 'OPENSTACK_KEYSTONE_BACKEND' as per https://review.openstack.org/#/c/579085/

That needs to be added to the template for local_settings file for Horizon.

Comment 16 Udi Kalifon 2018-11-23 17:29:08 UTC
Verified: python-django-horizon-14.0.1-0.20181006183341.19865ee.el7ost.noarch

Comment 18 errata-xmlrpc 2019-01-11 11:53:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045