Skip to content

Commit 81e33f1

Browse files
authored
Merge pull request #921 from stackhpc/docs/2023.1/observer-role
Mention observer role
2 parents ccc2495 + b6f39db commit 81e33f1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/source/operations/upgrading.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ Some things to watch out for:
127127
mysql -u root -p keystone
128128
# Enter the database password when prompted.
129129
SELECT * FROM trust_role WHERE trust_id = '<trust-id>' AND role_id = '<_member_-role-id>';
130+
* Policies may require the ``reader`` role rather than the non-standardised
131+
``observer`` role. The following error was observed in Horizon: ``Policy doesn’t allow os_compute_api:os-simple-tenant-usage:show to be performed``,
132+
when the user only had the observer role in the project. It is best to keep the observer role until all projects have the ``enforce_new_defaults``
133+
config option set. A one liner is shown below (or update your projects config):
134+
135+
.. code-block:: console
136+
137+
openstack role assignment list --effective --role observer -f value -c User -c Project | while read line; do echo $line | xargs bash -c 'openstack role add --user $1 --project $2 reader' _; done
130138
131139
OVN enabled by default
132140
----------------------

0 commit comments

Comments
 (0)