-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
-
None
-
False
-
None
-
False
-
-
---
-
SDN Sprint 224
-
0
-
0
In HyperShift, the CNO creates a route for the OVNSdb endpoint. However, if the name of the Hosted Control Plane namespace is long, creation of the route fails with an error like:
Error while updating operator configuration: could not apply (route.openshift.io/v1, Kind=Route) ocm-sbarouti-1udb1sokmb7u85e8re10m8jfvrq09o12-sbarouti402/ovnkube-sbdb: failed to apply / update (route.openshift.io/v1, Kind=Route) ocm-sbarouti-1udb1sokmb7u85e8re10m8jfvrq09o12-sbarouti402/ovnkube-sbdb: Route.route.openshift.io "ovnkube-sbdb" is invalid: spec.host: Invalid value: "ovnkube-sbdb-ocm-sbarouti-1udb1sokmb7u85e8re10m8jfvrq09o12-sbarouti402.apps.hshifti01ue1.z3pt.p1.openshiftapps.com": must be no more than 63 characters
In the rest of the HyperShift control plane, we apply shortening of the host name to any routes we create to avoid this issue. See https://github.com/openshift/hypershift/blob/b242dee02b25905f1892ca83cd2293194f19d150/control-plane-operator/controllers/hostedcontrolplane/ignitionserver/ignitionserver.go#L73
- is cloned by
-
SDN-3493 [release-4.11] A long HCP namespace results in a broken CNO for a HostedCluster
- Closed
- links to