Description of problem: When creating an Ingress object if it contains a digit in the TLD, e.g: something.domai2n, then validation fails. OpenShift release version: 4.9.11 Cluster Platform: OpenShift Container Platform (UPI installation) How reproducible: Always Steps to Reproduce (in detail): 1. Create an Ingress object that contains a hostname with a number in the top-level-domain, e.g: something.domai2n: apiVersion: config.openshift.io/v1 kind: Ingress metadata: name: cluster spec: componentRoutes: - hostname: something.domai2n name: test namespace: openshift-console domain: <removed> status: {} 2. oc apply -f <file.yaml> 3. Actual results: The Ingress "cluster" is invalid: spec.componentRoutes.hostname: Invalid value: "something.domai2n": spec.componentRoutes.hostname in body must be of type hostname: "something.domai2n" Expected results: It should succeed as TLD has valid syntax. Impact of the problem: Currently stopping a customer delivery environment.
Setting blocker- as this isn't a regression or upgrade blocker. Candace will check with the API team how we want to handle this. Related: https://stackoverflow.com/questions/9071279/number-in-the-top-level-domain
*** Bug 2049473 has been marked as a duplicate of this bug. ***
Based on C#28, Tested with the latest 4.11.0-0.nightly-2022-04-11-200046 nightly, the error no more occurs with component route containing numeric values in the hostname: ------- oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.11.0-0.nightly-2022-04-11-200046 True False 76m Cluster version is 4.11.0-0.nightly-2022-04-11-200046 # Please edit the object below. Lines beginning with a '#' will be ignored, # and an empty file will abort the edit. If an error occurs while saving this file will be # reopened with the relevant failures. # apiVersion: config.openshift.io/v1 kind: Ingress metadata: creationTimestamp: "2022-04-12T04:02:34Z" generation: 4 name: cluster resourceVersion: "54152" uid: 52fc2920-532a-4839-877a-d3dbb388d75d spec: componentRoutes: - hostname: custom-route-inval3d.doma2n name: downloads namespace: openshift-console -------
With reference to C#29, marking this bug as "verified".
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 (Important: OpenShift Container Platform 4.11.0 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-2022:5069