File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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 ``
You can’t perform that action at this time.
0 commit comments