Skip to content

Commit bbc8195

Browse files
committed
Document cleanup procedure for Magnum
1 parent 1122b73 commit bbc8195

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

source/operations_and_monitoring.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,3 +654,23 @@ To boot an instance on a specific hypervisor, for example on
654654
:substitutions:
655655
656656
admin# openstack server create --flavor |flavor_name| --network |network_name| --key-name <key> --image CentOS8.2 --availability-zone nova::|hypervisor_hostname| vm-name
657+
658+
Cleanup Procedures
659+
==================
660+
661+
OpenStack services can sometimes fail to remove all resources correctly. This
662+
is the case with Magnum, which fails to clean up users in its domain after
663+
clusters are deleted. `A patch has been submitted to stable branches
664+
<https://review.opendev.org/#/q/Ibadd5b57fe175bb0b100266e2dbcc2e1ea4efcf9>`__.
665+
Until this fix becomes available, if Magnum is in use, administrators can
666+
perform the following cleanup procedure regularly:
667+
668+
.. code-block:: console
669+
670+
admin# for user in $(openstack user list --domain magnum -f value -c Name | grep -v magnum_trustee_domain_admin); do
671+
if openstack coe cluster list -c uuid -f value | grep -q $(echo $user | sed 's/_[0-9a-f]*$//'); then
672+
echo "$user still in use, not deleting"
673+
else
674+
openstack user delete --domain magnum $user
675+
fi
676+
done

0 commit comments

Comments
 (0)