-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Updated README.md with instructions how to clean conflicting IAM profiles #1124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,3 +53,26 @@ openshift-install destroy cluster | |
| Note that you almost certainly also want to clean up the installer state files too, including `auth/`, `terraform.tfstate`, etc. | ||
| The best thing to do is always pass the `--dir` argument to `install` and `destroy`. | ||
| And if you want to reinstall from scratch, `rm -rf` the asset directory beforehand. | ||
|
|
||
|
|
||
| ### Troubleshouting installation | ||
|
|
||
| ```Cleanup``` step *should* tear down everything created during the previous installation, however sometimes the installer may report error messages like the ones below: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you provide steps to reproduce? I'd much rather fix this bug (if it still exists) than document workarounds.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @wking either
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There are lots of ways this could go wrong. The most reliable approach to cleaning it up should be to re-launch
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. q: Can you post logs showing that a fresh destroy call failed to delete the profile or other resource? |
||
|
|
||
| ``` | ||
| ERROR Error: Error applying plan: | ||
| ERROR | ||
| ERROR 3 errors occurred: | ||
| ERROR * module.bootstrap.aws_iam_instance_profile.bootstrap: 1 error occurred: | ||
| ERROR * aws_iam_instance_profile.bootstrap: Error creating IAM instance profile test-bootstrap-profile: | ||
|
|
||
| FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply using Terraform | ||
| ``` | ||
| This happens when the installer tries to create an IAM instance profile with a name that matches an existing instance profile. This usually means that IAM instance profiles from a previous installation by the user didn't get deleted during an earlier cluster teardown. | ||
|
|
||
| To fix this problem it is necessary to delete conflicting IAM profiles and retry. | ||
| To delete problematic IAM profiles follow [list-instance-profiles](https://docs.aws.amazon.com/cli/latest/reference/iam/list-instance-profiles.html) and [delete-instance-profile](https://docs.aws.amazon.com/cli/latest/reference/iam/delete-instance-profile.html) which can be summarized to | ||
| ``` | ||
| $ aws iam list-instance-profiles | grep USER | ||
| $ aws iam delete-instance-profile --instance-profile-name PROFILE_NAME | ||
| ``` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't belong in the project README. We have a platform-agnostic troubleshooting doc in
docs/user/troubleshooting.md(already linked from the project README), and AWS-specific troubleshooting docs should go in a newdocs/user/aws/troubleshooting.md(like our existingdocs/user/openstack/troubleshooting.md).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can send it there if this is not best place ... ?