Skip to content

Commit f2ba3cc

Browse files
committed
Add command for adding member role to trusts
1 parent 9d85426 commit f2ba3cc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/source/operations/upgrading.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,20 @@ 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+
131+
If you have trusts that need updating, you can add the required role to the trust with the following SQL command:
132+
133+
.. code-block:: sql
134+
135+
UPDATE trust_role
136+
SET role_id = '<MEMBER-ROLE-ID>'
137+
WHERE role_id = '<OLD-ROLE-ID>'
138+
AND NOT EXISTS (
139+
SELECT 1
140+
FROM trust_role
141+
WHERE trust_id = trust_role.trust_id
142+
AND role_id = '<MEMBER-ROLE-ID>'
143+
);
130144
* Policies may require the ``reader`` role rather than the non-standardised
131145
``observer`` role. The following error was observed in Horizon: ``Policy doesn’t allow os_compute_api:os-simple-tenant-usage:show to be performed``,
132146
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``

0 commit comments

Comments
 (0)