Unable to remove htpasswd identity provider via the Hybrid Cloud Console or ROSA cli
Environment
- Red Hat OpenShift Service on AWS (ROSA) 4.x
Issue
- An attempt to remove the htpasswd identity provider via the
Hybrid Cloud ConsoleorROSAcli fails with:
CLUSTERS-MGMT-404: Failed to delete identity provider `<ID>` from cluster `<CLUSTER ID>`: User 'cluster-admin' does not exist on group 'cluster-admins' for cluster '<CLUSTER ID>'
Operation ID: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Resolution
- Add the
cluster-adminuser to thecluster-adminsgroup:
$ echo '{"id": "cluster-admin"}' | ocm post /api/clusters_mgmt/v1/clusters/<cluster id>/groups/cluster-admins/users
Diagnostic Steps
- Run the following command to confirm the
cluster-adminuser does not belong to thecluster-adminsgroup:
$ oc get groups
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments