Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-57923

Failed to create install-config/cluster in interactivate way if AWS_PROFILE is invalid

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • Yes
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:

          

              Unassigned Unassigned
              rh-ee-bbarbach Brent Barbachem
              None
              None
              Yunfei Jiang Yunfei Jiang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: