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

Failed to create install-config/cluster in interactivate way if AWS credential not set

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • Proposed
    • Installer Sprint 271
    • 1
    • Done
    • Known Issue
    • Hide
      * When installing a cluster on {aws-short}, if you do not configure {aws-short} credentials before running any `openshift-install create` command, the installation program fails. (link:https://issues.redhat.com/browse/OCPBUGS-56658[OCPBUGS-56658])
      Show
      * When installing a cluster on {aws-short}, if you do not configure {aws-short} credentials before running any `openshift-install create` command, the installation program fails. (link: https://issues.redhat.com/browse/OCPBUGS-56658 [ OCPBUGS-56658 ])
    • None
    • None
    • None
    • None

      Description of problem:

      
      $ 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:

      see description 
          

      Expected results:

      If no AWS credential was not set, user could input them in installer survey.
          

      Additional info:

      
          

              rh-ee-bbarbach Brent Barbachem
              yunjiang-1 Yunfei Jiang
              None
              None
              Yunfei Jiang Yunfei Jiang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: