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

Fatal error while configuring sts endpoint in install-config

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.10.z
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Install failed if specify sts endpoint in the install-config.yaml file:
      platform:
        aws:
          region: us-east-2
          serviceEndpoints:
          - name: sts
            url: https://sts.us-east-2.amazonaws.com
      

      Errors:

      level=error msg=Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: SignatureDoesNotMatch: Credential should be scoped to a valid region. 
      level=error msg=  status code: 403, request id: f4e877fe-9e90-4cba-a455-2538d489a8d0
      level=error
      level=error msg=  on ../../../../../../../../tmp/openshift-install-cluster-1552617948/main.tf line 11, in provider "aws":
      level=error msg=  11: provider "aws" {
      level=error
      level=error
      level=error msg=Failed to read tfstate: open /tmp/openshift-install-cluster-1552617948/terraform.cluster.tfstate: no such file or directory
      

      Version-Release number of selected component (if applicable):

      4.10.z

      How reproducible:

      * Always

      Steps to Reproduce:

      1. Create an install-config.yaml, and specify sts endpoint 
      2. Create an STS cluster 

      Actual results:

      Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: SignatureDoesNotMatch: Credential should be scoped to a valid region. 

      Expected results:

      No errors, create cluster successfully

      Additional info:

      No such issues on 4.8, 4.9, 4.11, 4.12

            padillon Patrick Dillon
            yunjiang-1 Yunfei Jiang
            Yunfei Jiang Yunfei Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: