Skip to content

Commit

Permalink
Merge pull request #1063 from stackhpc/antelope_trust_docs
Browse files Browse the repository at this point in the history
Add command for adding member role to trusts to the docs
  • Loading branch information
markgoddard authored May 13, 2024
2 parents 178c8b3 + b055171 commit 98cb4f4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/source/operations/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,21 @@ Some things to watch out for:
mysql -u root -p keystone
# Enter the database password when prompted.
SELECT * FROM trust_role WHERE trust_id = '<trust-id>' AND role_id = '<_member_-role-id>';
If you have trusts that need updating, you can add the required role to the trust with the following SQL command:

.. code-block:: sql
UPDATE trust_role
SET role_id = '<MEMBER-ROLE-ID>'
WHERE role_id = '<OLD-ROLE-ID>'
AND NOT EXISTS (
SELECT 1
FROM trust_role
WHERE trust_id = trust_role.trust_id
AND role_id = '<MEMBER-ROLE-ID>'
);
* Policies may require the ``reader`` role rather than the non-standardised
``observer`` role. The following error was observed in Horizon: ``Policy doesn’t allow os_compute_api:os-simple-tenant-usage:show to be performed``,
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``
Expand Down

0 comments on commit 98cb4f4

Please sign in to comment.