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

[gcp][CORS-1774] with "platform.gcp.publicDNSZone" specified, the installer has issue creating dns record-sets for api_external

XMLWordPrintable

    • None
    • 2
    • Sprint 226
    • 1
    • Proposed
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      with "platform.gcp.publicDNSZone" specified, the installer has issue creating dns record-sets for api_external

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

      $ openshift-install version
      openshift-install 4.12.0-0.nightly-2022-10-05-053337
      built from commit 84aa8222b622dee71185a45f1e0ba038232b114a
      release image registry.ci.openshift.org/ocp/release@sha256:41fe173061b00caebb16e2fd11bac19980d569cd933fdb4fab8351cdda14d58e
      release architecture amd64
      

      How reproducible:

      Always

      Steps to Reproduce:

      Scenario A: Use baseDomain of the service project, try IPI installation.
      Scenario B: Use baseDomain of the host project, try IPI installation. 

      Actual results:

      Both scenarios failed.
      
      Scenario A: 
      ERROR Error: Error creating DNS RecordSet: googleapi: Error 400: Invalid value for 'entity.change.additions[0].name': 'api.jiwei-1014-04.qe.gcp.devcluster.openshift.com.', invalid
      
      Scenario B: 
      FATAL failed to fetch Terraform Variables: failed to fetch dependency of "Terraform Variables": failed to generate asset "Platform Provisioning Check": baseDomain: Internal error: no matching public DNS Zone found

      Expected results:

      Either Scenario A or Scenario B should succeed. 

      Additional info:

      $ gcloud dns managed-zones list --filter='name=qe'
      NAME  DNS_NAME                          DESCRIPTION                  VISIBILITY
      qe    qe.gcp.devcluster.openshift.com.  Base Domain for QE clusters  public
      $ gcloud --project openshift-qe-shared-vpc dns managed-zones list --filter='name=qe-shared-vpc'
      NAME           DNS_NAME                                        DESCRIPTION  VISIBILITY
      qe-shared-vpc  qe-shared-vpc.qe.gcp.devcluster.openshift.com.               public
      $ 
      
      $ yq-3.3.0 r work04/install-config.yaml platform
      gcp:
        projectID: openshift-qe  
        region: us-central1
        computeSubnet: installer-shared-vpc-subnet-2
        controlPlaneSubnet: installer-shared-vpc-subnet-1
        createFirewallRules: Disabled
        publicDNSZone:
          id: qe-shared-vpc
          project: openshift-qe-shared-vpc
        network: installer-shared-vpc
        networkProjectID: openshift-qe-shared-vpc
      $ yq-3.3.0 r work04/install-config.yaml baseDomain
      qe.gcp.devcluster.openshift.com
      $ 
      $ openshift-install create cluster --dir work04
      INFO Credentials loaded from file "/home/fedora/.gcp/osServiceAccount.json"
      INFO Consuming Install Config from target directory
      INFO Creating infrastructure resources...
      ERROR
      ERROR Error: Error creating DNS RecordSet: googleapi: Error 400: Invalid value for 'entity.change.additions[0].name': 'api.jiwei-1014-04.qe.gcp.devcluster.openshift.com.', invalid
      ERROR
      ERROR   with module.dns.google_dns_record_set.api_external[0],
      ERROR   on dns/base.tf line 22, in resource "google_dns_record_set" "api_external":
      ERROR   22: resource "google_dns_record_set" "api_external" {
      ERROR
      ERROR failed to fetch Cluster: failed to generate asset "Cluster": failure applying terraform for "cluster" stage: failed to create cluster: failed to apply Terraform: exit status 1
      ERROR
      ERROR Error: Error creating DNS RecordSet: googleapi: Error 400: Invalid value for 'entity.change.additions[0].name': 'api.jiwei-1014-04.qe.gcp.devcluster.openshift.com.', invalid
      ERROR
      ERROR   with module.dns.google_dns_record_set.api_external[0],
      ERROR   on dns/base.tf line 22, in resource "google_dns_record_set" "api_external":
      ERROR   22: resource "google_dns_record_set" "api_external" {
      ERROR
      ERROR
      $ 
      $ gcloud --project openshift-qe-shared-vpc dns record-sets list --zone qe-shared-vpc --filter='name~jiwei-1014-04'
      Listed 0 items.
      $ 
      
      $ yq-3.3.0 r work05/install-config.yaml platform
      gcp:
        projectID: openshift-qe
        region: us-central1
        computeSubnet: installer-shared-vpc-subnet-2
        controlPlaneSubnet: installer-shared-vpc-subnet-1
        createFirewallRules: Disabled
        publicDNSZone:
          id: qe-shared-vpc
          project: openshift-qe-shared-vpc
        network: installer-shared-vpc
        networkProjectID: openshift-qe-shared-vpc
      $ yq-3.3.0 r work05/install-config.yaml baseDomain
      qe-shared-vpc.qe.gcp.devcluster.openshift.com
      $ 
      $ yq-3.3.0 r work05/install-config.yaml platform
      gcp:
        projectID: openshift-qe
        region: us-central1
        computeSubnet: installer-shared-vpc-subnet-2
        controlPlaneSubnet: installer-shared-vpc-subnet-1
        createFirewallRules: Disabled
        publicDNSZone:
          id: qe-shared-vpc
          project: openshift-qe-shared-vpc
        network: installer-shared-vpc
        networkProjectID: openshift-qe-shared-vpc
      $ yq-3.3.0 r work05/install-config.yaml baseDomain
      qe-shared-vpc.qe.gcp.devcluster.openshift.com
      $ openshift-install create cluster --dir work05
      INFO Credentials loaded from file "/home/fedora/.gcp/osServiceAccount.json" 
      INFO Consuming Install Config from target directory 
      FATAL failed to fetch Terraform Variables: failed to fetch dependency of "Terraform Variables": failed to generate asset "Platform Provisioning Check": baseDomain: Internal error: no matching public DNS Zone found 
      $ 

       

       

       

              rh-ee-bbarbach Brent Barbachem
              rhn-support-jiwei Jianli Wei
              Jianli Wei Jianli Wei
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: