Description of problem:
# Set AWS_PROFILE to invalid profile or remove the ~/.aws/config file $ ls -a ~/.aws . .. $ ./openshift-install create install-config --dir no-aws-cred ? Platform aws FATAL failed to fetch Install Config: failed to fetch dependency of "Install Config": failed to fetch dependency of "Base Domain": failed to generate asset "Platform": failed to get AWS public regions: failed to get aws regions: failed to get all regions: operation error EC2: DescribeRegions, get identity: get credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, http response error StatusCode: 404, request to EC2 IMDS failed
Version-Release number of selected component (if applicable):
4.19.0-rc.3
How reproducible:
always
Steps to Reproduce:
1. Do not set AWS credential, e.g. remove ~/.aws/credentials or export AWS_PROFILE=non_exist_profile 2. create install-config or cluster 3.
Actual results:
Expected results:
Additional info:
- blocks
-
OCPBUGS-58403 Failed to create install-config/cluster in interactivate way if AWS_PROFILE is invalid
-
- Closed
-
- is cloned by
-
OCPBUGS-58403 Failed to create install-config/cluster in interactivate way if AWS_PROFILE is invalid
-
- Closed
-
- is related to
-
OCPBUGS-56658 Failed to create install-config/cluster in interactivate way if AWS credential not set
-
- Verified
-
- links to