Skip to content

Commit 98cb4f4

Browse files
authored
Merge pull request #1063 from stackhpc/antelope_trust_docs
Add command for adding member role to trusts to the docs
2 parents 178c8b3 + b055171 commit 98cb4f4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/source/operations/upgrading.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,21 @@ 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+
);
144+
130145
* Policies may require the ``reader`` role rather than the non-standardised
131146
``observer`` role. The following error was observed in Horizon: ``Policy doesn’t allow os_compute_api:os-simple-tenant-usage:show to be performed``,
132147
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)