-
Bug
-
Resolution: Not a Bug
-
Minor
-
None
-
4.15.z
-
Low
-
No
-
False
-
Description of problem:
On a arm64 SNO environment when I go to patch the internal registry with a default route the route is never created. On x86 the route is created properly. If I manually create the route crd and apply it it does work.
Version-Release number of selected component (if applicable):
4.15.6
How reproducible:
100%
Steps to Reproduce:
$ oc get routes -A NAMESPACE NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD openshift-authentication oauth-openshift oauth-openshift.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com oauth-openshift 6443 passthrough/Redirect None openshift-console console console-openshift-console.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com console https reencrypt/Redirect None openshift-console downloads downloads-openshift-console.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com downloads http edge/Redirect None openshift-ingress-canary canary canary-openshift-ingress-canary.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com ingress-canary 8080 edge/Redirect None openshift-monitoring alertmanager-main alertmanager-main-openshift-monitoring.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com /api alertmanager-main web reencrypt/Redirect None openshift-monitoring prometheus-k8s prometheus-k8s-openshift-monitoring.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com /api prometheus-k8s web reencrypt/Redirect None openshift-monitoring prometheus-k8s-federate prometheus-k8s-federate-openshift-monitoring.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com /federate prometheus-k8s web reencrypt/Redirect None openshift-monitoring thanos-querier thanos-querier-openshift-monitoring.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com /api thanos-querier web reencrypt/Redirect None $ oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"managementState":"Managed"}}' config.imageregistry.operator.openshift.io/cluster patched $ oc get pods -A|grep registry openshift-image-registry cluster-image-registry-operator-7d57c868cc-m74wt 1/1 Running 0 41h openshift-image-registry image-pruner-28546560-trvvr 0/1 Completed 0 37h openshift-image-registry image-pruner-28548000-wwplr 0/1 Completed 0 13h openshift-image-registry node-ca-k97kk 1/1 Running 0 40h $ oc patch configs.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge config.imageregistry.operator.openshift.io/cluster patched $ oc get routes -A NAMESPACE NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD openshift-authentication oauth-openshift oauth-openshift.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com oauth-openshift 6443 passthrough/Redirect None openshift-console console console-openshift-console.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com console https reencrypt/Redirect None openshift-console downloads downloads-openshift-console.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com downloads http edge/Redirect None openshift-ingress-canary canary canary-openshift-ingress-canary.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com ingress-canary 8080 edge/Redirect None openshift-monitoring alertmanager-main alertmanager-main-openshift-monitoring.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com /api alertmanager-main web reencrypt/Redirect None openshift-monitoring prometheus-k8s prometheus-k8s-openshift-monitoring.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com /api prometheus-k8s web reencrypt/Redirect None openshift-monitoring prometheus-k8s-federate prometheus-k8s-federate-openshift-monitoring.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com /federate prometheus-k8s web reencrypt/Redirect None openshift-monitoring thanos-querier thanos-querier-openshift-monitoring.apps.nvd-srv-19.nvidia.eng.rdu2.redhat.com /api thanos-querier web reencrypt/Redirect None $ export REGISTRY=`oc get route default-route -n openshift-image-registry --template='{{ .spec.host }}'` Error from server (NotFound): routes.route.openshift.io "default-route" not found $ oc get nodes -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME nvd-srv-19.nvidia.eng.rdu2.redhat.com Ready control-plane,master,worker 41h v1.28.7+f1b5f6c 10.8.231.38 <none> Red Hat Enterprise Linux CoreOS 415.92.202403270524-0 (Plow) 5.14.0-284.59.1.el9_2.aarch64 cri-o://1.28.4-8.rhaos4.15.git24f50b9.el9
Actual results:
No default route is created
Expected results:
The local image registry should have a default route created that is visible in routes table.
Additional info:
If you create a route yaml CRD and apply it you can work around the issue.