Bug 1670685
Summary: | Openshift installation fails if .aws/credentials file is not set | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Jaspreet Kaur <jkaur> |
Component: | Installer | Assignee: | W. Trevor King <wking> |
Installer sub component: | openshift-installer | QA Contact: | liujia <jiajliu> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | unspecified | ||
Priority: | unspecified | CC: | aos-bugs, jokerman, mmccomas, wking |
Version: | 4.1.0 | ||
Target Milestone: | --- | ||
Target Release: | 4.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: |
undefined
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-06-04 10:42:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1664187 |
Description
Jaspreet Kaur
2019-01-30 07:33:45 UTC
#1173 landed, but not early enough for 0.12.0 [1]. It will go out with the next installer release. I'm setting "No Doc Update", because I don't think we need external docs for these pre-release installer issues. But I'll mention the fix in the 0.13.0 change log (or whatever the next installer release happens to be). [1]: https://github.com/openshift/installer/pull/1173#event-2117606593 This should be a negative scenario which do not comply with the instructions in document[1] which require users to configure aws credentials first. If aws credentials file is not available, installer will generate it according to the input, but if the file exists but the item is unset, then will hit the issue. [1] https://cloud.openshift.com/clusters/install Step 2: Configure Your AWS Credentials Reproduced on v0.12.0 Steps: 1. Create an aws credentials file first without aws_access_key_id/aws_secret_access_key set in the config file. [default] aws_access_key_id= aws_secret_access_key= 2. Run "./openshift-install create cluster" [root@preserve-jliu-worker bug]# ./openshift-install create cluster ? SSH Public Key /root/.ssh/ssh.pub ? Platform aws ? AWS Access Key ID AKIAI7WIWXMG2MRNTXJQ ? AWS Secret Access Key [? for help] **************************************** INFO Writing AWS credentials to "/root/.aws/credentials" (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) FATAL failed to fetch Terraform Variables: failed to fetch dependency of "Terraform Variables": failed to fetch dependency of "Install Config": failed to fetch dependency of "Base Domain": failed to generate asset "Platform": open /root/.aws/credentials: file exists And here is another scenario which QE ever hit about aws_profile. This is also considered as a configure issue about aws profile which should be completed in step2 following doc[1]. Reproduced on v0.12.0 Steps: 1. Create aws credentials # cat /root/.aws/credentials [default] aws_access_key_id=sss aws_secret_access_key=xxx 2. Set aws profile # env|grep AWS AWS_PROFILE=jliu 3. Run "./openshift-install create cluster" [root@preserve-jliu-worker bug]# ./openshift-install create cluster ? SSH Public Key /root/.ssh/ssh.pub ? Platform aws ? AWS Access Key ID AKIAI2FIMJDS7GBXMOYQ ? AWS Secret Access Key [? for help] **************************************** INFO Writing AWS credentials to "/root/.aws/credentials" (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) FATAL failed to fetch Terraform Variables: failed to fetch dependency of "Terraform Variables": failed to fetch dependency of "Install Config": failed to fetch dependency of "Base Domain": failed to generate asset "Platform": open /root/.aws/credentials: file exists Will combine these two scenarios into one case to track it. Verified on v4.0.0-0.176.0.0-dirty. registry.svc.ci.openshift.org/ocp/release:4.0.0-0.nightly-2019-02-18-223936 And 0.13.0 is out with the fix [1]. [1]: https://github.com/openshift/installer/releases/tag/v0.13.0 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0758 |