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

GCP XPN Installs fail when authenticating with CLI

XMLWordPrintable

    • Important
    • No
    • 0
    • Sprint 240, Sprint 241, Sprint 242
    • 3
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, shared VPC installations on GCP using passthrough credentials mode could fail because the installation program used credentials from the default service account. With this update, you can specify another service account to use for node creation instead of the default. (link:https://issues.redhat.com/browse/OCPBUGS-15421[*OCPBUGS-15421*])
      Show
      Previously, shared VPC installations on GCP using passthrough credentials mode could fail because the installation program used credentials from the default service account. With this update, you can specify another service account to use for node creation instead of the default. (link: https://issues.redhat.com/browse/OCPBUGS-15421 [* OCPBUGS-15421 *])
    • Bug Fix
    • Done

      Description of problem:

      When authenticating openshift-install with the gcloud cli, rather than using a service account key file, the installer will throw an error because https://github.com/openshift/installer/blob/master/pkg/asset/machines/gcp/machines.go#L170-L178 ALWAYS expects to extract a service account to passthrough to nodes in XPN installs. 
      
      An alternative approach would be to handle the lack of service account without error, and allow the required service accounts to passed in through another mechanism.

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

       

      How reproducible:

       

      Steps to Reproduce:

      1. Create install config for gcp xpn install
      2. Authenticate installer without service account key file (either gcloud cli auth or through a VM).
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              rh-ee-bbarbach Brent Barbachem
              padillon Patrick Dillon
              Jianli Wei Jianli Wei
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: