Bug 2106051
| Summary: | Unable to deploy acm-ice using latest SRO 4.11 build | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Bonnie Block <bblock> | |
| Component: | Special Resource Operator | Assignee: | Pablo Acevedo <pacevedo> | |
| Status: | CLOSED ERRATA | QA Contact: | Udi Kalifon <ukalifon> | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | urgent | |||
| Version: | 4.11 | CC: | bthurber, ukalifon | |
| Target Milestone: | --- | |||
| Target Release: | 4.11.z | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | No Doc Update | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2107620 (view as bug list) | Environment: | ||
| Last Closed: | 2022-08-10 11:20:54 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: | ||||
| Bug Depends On: | 2107620 | |||
| Bug Blocks: | ||||
|
Description
Bonnie Block
2022-07-11 15:42:28 UTC
@Udi, can you verify this? Looking at the error we can see this at the end:
loading registries configuration \"/mnt/host/registries.conf\": open /mnt/host/registries.conf: no such file or directory
This file is mounted from a host dir:
containers:
- [...]
name: manager
[...]
volumeMounts:
- name: cache-volume
mountPath: /home/nonroot/.cache
- name: host-registries-conf
mountPath: /mnt/host/registries.conf
readOnly: true
volumes:
- name: cache-volume
emptyDir: {}
- name: host-registries-conf
hostPath:
path: /etc/containers/registries.conf
type: File
And from a freshly created 4.11 cluster, in one of the worker nodes:
[root@ip-10-0-150-205 /]# chroot /host
sh-4.4# cat /etc/containers/registries.conf
unqualified-search-registries = ['registry.access.redhat.com', 'docker.io']
Can you check if the file is there in any worker node?
(In reply to Pablo Acevedo from comment #2) > Looking at the error we can see this at the end: > loading registries configuration \"/mnt/host/registries.conf\": open > /mnt/host/registries.conf: no such file or directory > > This file is mounted from a host dir: > containers: > - [...] > name: manager > [...] > volumeMounts: > - name: cache-volume > mountPath: /home/nonroot/.cache > - name: host-registries-conf > mountPath: /mnt/host/registries.conf > readOnly: true > volumes: > - name: cache-volume > emptyDir: {} > - name: host-registries-conf > hostPath: > path: /etc/containers/registries.conf > type: File > > And from a freshly created 4.11 cluster, in one of the worker nodes: > [root@ip-10-0-150-205 /]# chroot /host > sh-4.4# cat /etc/containers/registries.conf > unqualified-search-registries = ['registry.access.redhat.com', 'docker.io'] > > Can you check if the file is there in any worker node? /etc/containers/registries.conf is present on each of the nodes: [kni@registry example]$ oc get nodes NAME STATUS ROLES AGE VERSION openshift-master-0 Ready master,worker 4d14h v1.23.5+3afdacb openshift-master-1 Ready master,worker 4d14h v1.23.5+3afdacb openshift-master-2 Ready master,worker 4d14h v1.23.5+3afdacb [kni@registry example]$ ssh core@openshift-master-0 Red Hat Enterprise Linux CoreOS 410.84.202207051718-0 Part of OpenShift 4.10, RHCOS is a Kubernetes native operating system managed by the Machine Config Operator (`clusteroperator/machine-config`). WARNING: Direct SSH access to machines is not recommended; instead, make configuration changes via `machineconfig` objects: https://docs.openshift.com/container-platform/4.10/architecture/architecture-rhcos.html --- Last login: Tue Jul 12 11:35:56 2022 from 10.46.62.1 [core@openshift-master-0 ~]$ cat /etc/containers/registries.conf unqualified-search-registries = ["registry.access.redhat.com", "docker.io"] short-name-mode = "" [[registry]] prefix = "" location = "brew.registry.redhat.io" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5005" [[registry]] prefix = "" location = "quay.io/acm-d" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000/acm-d" [[registry]] prefix = "" location = "quay.io/openshift-release-dev" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5005/openshift-release-dev" [[registry]] prefix = "" location = "quay.io/openshifttest" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5005/openshifttest" [[registry]] prefix = "" location = "quay.io/rh-nfv-int" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5005/rh-nfv-int" [[registry]] prefix = "" location = "registry-proxy.engineering.redhat.com" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000" [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5005" [[registry]] prefix = "" location = "registry.access.redhat.com/openshift4/ose-oauth-proxy" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000/openshift4/ose-oauth-proxy" [[registry]] prefix = "" location = "registry.ci.openshift.org/ocp" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5005/ocp" [[registry]] prefix = "" location = "registry.connect.redhat.com" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000" [[registry]] prefix = "" location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5005" [[registry]] prefix = "" location = "registry.redhat.io" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000" [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5005" [[registry]] prefix = "" location = "registry.redhat.io/multicluster-engine" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000/multicluster-engine" [[registry]] prefix = "" location = "registry.redhat.io/openshift4/ose-kube-rbac-proxy" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000/openshift4/ose-kube-rbac-proxy" [[registry]] prefix = "" location = "registry.redhat.io/rhacm2" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000/rhacm2" [[registry]] prefix = "" location = "registry.stage.redhat.io" mirror-by-digest-only = true [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5000" [[registry.mirror]] location = "registry.kni-qe-10.lab.eng.tlv2.redhat.com:5005" [core@openshift-master-0 ~]$ Verified on 4.11-rc.5 I had to adapt the steps and change the name of the watched cluster, and once there was a match the build started running. 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 |