Bug 1955336
| Summary: | Failure to Install OpenShift on GCP due to Cluster Name being similar to / contains "google" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Max Whittingham <mwhittin> | ||||
| Component: | Installer | Assignee: | Aditya Narayanaswamy <anarayan> | ||||
| Installer sub component: | openshift-installer | QA Contact: | To Hung Sze <tsze> | ||||
| Status: | CLOSED ERRATA | Docs Contact: | |||||
| Severity: | low | ||||||
| Priority: | low | CC: | anarayan, mstaeble, todabasi, tsze | ||||
| Version: | 4.7 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | 4.8.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
GCP does not allow resources to be created with names similar to the word google. Adding a check in the installer on the cluster name for all known variations of the word google that are not allowed.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2021-07-27 23:05:13 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Max Whittingham
2021-04-29 21:39:34 UTC
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 |