Created attachment 1777487 [details] Installer logs Version: 4.7 Platform: OSD on GCP Please specify: * IPI What happened? Cluster was created using the name 'google-test', installation failed due to the inability to create a bucket with the name 'google-test-xxxxx-bootstrap-ignition' #For example, # If the installer fails to create resources (https://github.com/openshift/installer/blob/master/docs/user/troubleshooting.md#installer-fails-to-create-resources), attach the relevant portions of your `.openshift_install.log.` # If the installer fails to bootstrap the cluster (https://github.com/openshift/installer/blob/master/docs/user/troubleshootingbootstrap.md), attach the bootstrap log bundle. # If the installer fails to complete installation after bootstrapping completes (https://github.com/openshift/installer/blob/master/docs/user/troubleshooting.md#installer-fails-to-initialize-the-cluster), attach the must-gather log bundle using `oc adm must-gather` # Always at least include the `.openshift_install.log` What did you expect to happen? Bucket creation How to reproduce it (as minimally and precisely as possible)? $ your-commands-here Anything else we need to know? #Enter text here.
Bucket names cannot start with "goog" or contain close spellings to "google". https://cloud.google.com/storage/docs/naming-buckets#:~:text=Bucket%20names%20cannot%20be%20represented,%2C%20such%20as%20%22g00gle%22. We can add some installer validation, but it is unlikely to catch all invalid names.
+1 for adding logic to pattern match invalid names if there are known limitations around that
Installer churns out this (cluster name google-test-tsze): DEBUG module.master.google_compute_instance_group.master[1]: Creation complete after 13s [id=projects/openshift-qe/zones/us-central1-b/instanceGroups/google-test-tsze-mb4cw-master-us-central1-b] ERROR ERROR Error: googleapi: Error 400: Use of this bucket name is restricted: 'google-test-tsze-mb4cw-bootstrap-ignition', invalid ERROR ERROR on ../../../../../tmp/openshift-install-357323199/bootstrap/main.tf line 1, in resource "google_storage_bucket" "ignition": ERROR 1: resource "google_storage_bucket" "ignition" { ERROR ERROR FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply Terraform: failed to complete the change
We may need to update our user facing doc and warn users.
tsze-google-test also doesn't work: ERROR ERROR Error: googleapi: Error 400: Use of this bucket name is restricted: 'tsze-google-test-hc7j5-bootstrap-ignition', invalid ERROR ERROR on ../../../../../tmp/openshift-install-840421988/bootstrap/main.tf line 1, in resource "google_storage_bucket" "ignition": ERROR 1: resource "google_storage_bucket" "ignition" { ERROR ERROR FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply Terraform: failed to complete the change
Tested with google-test / test-google / goog / goog-le Error now: X Sorry, your reply was invalid: cluster name must not start with "goog" or contain variations of "google" Accepts "go-og-le" / "g-oo-gl-e"
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2438