Bug 1786268
Summary: | Move GCP cluster name validation ahead of subdomain name validation | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Yang Yang <yanyang> |
Component: | Installer | Assignee: | Aditya Narayanaswamy <anarayan> |
Installer sub component: | openshift-installer | QA Contact: | Yang Yang <yanyang> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | jiajliu, padillon |
Version: | 4.3.0 | ||
Target Milestone: | --- | ||
Target Release: | 4.4.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
The validation for cluster names is done by openshift installer first and after which GCP validation is done, causing the error message to be thrown first by instead of the GCP error.
Consequence:
The error message suggests the installer does not allow symbols at the end of the names but GCP's validation error message would be preferred as GCP does not allow it and the user should know before creating a cluster.
Fix:
Changed the order of checking where now the GCP validation is done first.
Result:
If such a scenario occurs now, the error message printed will be that of a GCP origin.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-04 11:21:22 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: |
Description
Yang Yang
2019-12-24 07:04:21 UTC
Verified with openshift-install-linux-4.4.0-0.nightly-2020-02-03-021633 Steps of verification are as below: # openshift-install create install-config --dir=bz ? SSH Public Key /root/.ssh/id_rsa.pub ? Platform gcp INFO Credentials loaded from file "/root/.gcp/osServiceAccount.json" ? Project ID openshift-qe ? Region us-central1 ? Base Domain qe.gcp.devcluster.openshift.com ? Cluster Name [? for help] a123- X Sorry, your reply was invalid: GCP requires cluster name to match regular expression (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?) The test results are as expected, so move it to verified status 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, 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/RHBA-2020:0581 |