Skip to content

Commit 939ee5a

Browse files
authored
Merge pull request #52174 from EricPonvelle/OSDOCS-4411_Cluster-Deletion-Troubleshooting
OSDOCS-4411: Added instructions for troubleshooting a stuck cluster deletion
2 parents 43bcca8 + 5450336 commit 939ee5a

File tree

5 files changed

+50
-1
lines changed

5 files changed

+50
-1
lines changed

modules/rosa-deleting-sts-iam-resources-account-wide.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ If you no longer need to install a ROSA with STS cluster by using {cluster-manag
1414
====
1515
The account-wide IAM roles and policies might be used by other ROSA clusters in the same AWS account. You must only remove the resources if they are not required by other clusters.
1616
17-
The {cluster-manager} and user IAM roles are required if you want to install and manage other ROSA clusters in the same AWS account by using {cluster-manager}. You must only remove the roles if you no longer need to install ROSA clusters in your account by using {cluster-manager}.
17+
The {cluster-manager} and user IAM roles are required if you want to install, manage, and delete other ROSA clusters in the same AWS account by using {cluster-manager}. You must only remove the roles if you no longer need to install ROSA clusters in your account by using {cluster-manager}. See the "Additional resources" section for information on repairing your cluster if these roles are removed prior to deletion.
1818
====
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_support/rosa-troubleshooting-deployments.adoc
4+
:_content-type: PROCEDURE
5+
[id="rosa-troubleshooting-cluster-deletion_{context}"]
6+
= Repairing a cluster that cannot be deleted
7+
8+
In specific cases, the following error appears in {cluster-manager-url} if you attempt to delete your cluster.
9+
10+
[source,terminal]
11+
----
12+
Error deleting cluster
13+
CLUSTERS-MGMT-400: Failed to delete cluster <hash>: sts_user_role is not linked to your account. sts_ocm_role is linked to your organization <org number> which requires sts_user_role to be linked to your Red Hat account <account ID>.Please create a user role and link it to the account: User Account <account ID> is not authorized to perform STS cluster operations
14+
15+
Operation ID: b0572d6e-fe54-499b-8c97-46bf6890011c
16+
----
17+
18+
If you try to delete your cluster from the CLI, the following error appears.
19+
20+
[source,terminal]
21+
----
22+
E: Failed to delete cluster <hash>: sts_user_role is not linked to your account. sts_ocm_role is linked to your organization <org_number> which requires sts_user_role to be linked to your Red Hat account <account_id>.Please create a user role and link it to the account: User Account <account ID> is not authorized to perform STS cluster operations
23+
----
24+
25+
This error occurs when the `user-role` is unlinked or deleted.
26+
27+
.Procedure
28+
29+
. Run the following command to create the `user-role` IAM resource:
30+
+
31+
[source,terminal]
32+
----
33+
$ rosa create user-role
34+
----
35+
+
36+
. After you see that the role has been created, you can delete the cluster. The following confirms that the role was created and linked:
37+
+
38+
[source,terminal]
39+
----
40+
I: Successfully linked role ARN <user role ARN> with account <account ID>
41+
----

rosa_install_access_delete_clusters/rosa-sts-deleting-cluster.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ include::modules/rosa-unlinking-and-deleting-ocm-and-user-iam-roles.adoc[levelof
3535
== Additional resources
3636

3737
* For information about the AWS IAM resources for ROSA clusters that use STS, see xref:../rosa_architecture/rosa-sts-about-iam-resources.adoc#rosa-sts-about-iam-resources[About IAM resources for ROSA clusters that use STS].
38+
* For information on cluster errors that are due to missing IAM roles, see xref:../rosa_support/rosa-troubleshooting-deployments.adoc#rosa-troubleshooting-cluster-deletion_rosa-troubleshooting-cluster-deployments[Repairing a cluster that cannot be deleted].

rosa_planning/rosa-sts-ocm-role.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ include::modules/rosa-sts-about-ocm-role.adoc[leveloffset=+1]
5151
include::modules/rosa-sts-ocm-role-creation.adoc[leveloffset=+2]
5252
include::modules/rosa-sts-about-user-role.adoc[leveloffset=+1]
5353
include::modules/rosa-sts-user-role-creation.adoc[leveloffset=+2]
54+
55+
[IMPORTANT]
56+
====
57+
If you unlink or delete your `user-role` IAM role prior to deleting your cluster, an error prevents you from deleting your cluster. You must create or relink this role to proceed with the deletion process. See xref:../rosa_support/rosa-troubleshooting-deployments.adoc#rosa-troubleshooting-cluster-deletion_rosa-troubleshooting-cluster-deployments[Repairing a cluster that cannot be deleted] for more information.
58+
====
59+
5460
include::modules/rosa-sts-aws-requirements-association-concept.adoc[leveloffset=+1]
5561
include::modules/rosa-sts-aws-requirements-creating-association.adoc[leveloffset=+2]
5662
include::modules/rosa-sts-aws-requirements-creating-multi-association.adoc[leveloffset=+2]

rosa_support/rosa-troubleshooting-deployments.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ This document describes how to troubleshoot cluster deployment errors.
1111
include::modules/rosa-troubleshooting-general-deployment.adoc[leveloffset=+1]
1212
include::modules/rosa-troubleshooting-osdccsadmin-deployment.adoc[leveloffset=+1]
1313
include::modules/rosa-troubleshooting-elb-service-role.adoc[leveloffset=+1]
14+
include::modules/rosa-troubleshooting-cluster-deletion.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)