Bug 1960378
Summary: | icsp allows mirroring of registry root - install-config imageContentSources does not | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Chad Crum <ccrum> |
Component: | Installer | Assignee: | Kiran Thyagaraja <kiran> |
Installer sub component: | openshift-installer | QA Contact: | Gaoyun Pei <gpei> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | bjacot, bleanhar, ccrum, kiran, mcornea, mstaeble, sdasu |
Version: | 4.8 | ||
Target Milestone: | --- | ||
Target Release: | 4.10.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: The Openshift installer exited with an error when asked to mirror the contents of base registry. e.g mirror.example.com:5000 would result in a validation error.
Consequence: The Openshift installer exits with a validation error citing incorrect install-config values for imageContentSources
Fix: The Openshift installer now allows imageContentSources values to specify base registry names
Result: The Openshift installer no longer exits when specifying a base registry name
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-10 16:03:38 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: |
Comment 1
sdasu
2021-05-18 16:16:22 UTC
*** Bug 1959982 has been marked as a duplicate of this bug. *** Needs priortized. Will review again for a future sprint. Tested on latest 4.10 nightly build 4.10.0-0.nightly-2021-10-29-032150, still failed. ./openshift-install version ./openshift-install 4.10.0-0.nightly-2021-10-29-032150 built from commit c3e9ffde71714b9004c5eedd506a01340f43295e release image registry.ci.openshift.org/ocp/release@sha256:ecedc7e8d60ad682bf0d171d6c4eaa720860e7b9f3cc14fd2427867b5d6dc4af release architecture amd64 cat install-config.yaml ... imageContentSources: - mirrors: - registry.example.com:5000 source: registry.redhat.io - mirrors: - registry.example.com:5000 source: registry-proxy.engineering.redhat.com ./openshift-install create manifests FATAL failed to fetch Master Machines: failed to load asset "Install Config": invalid "install-config.yaml" file: [imageContentSources[0].source: Invalid value: "registry.redhat.io": the repository provided is invalid, imageContentSources[1].source: Invalid value: "registry-proxy.engineering.redhat.com": the repository provided is invalid] Verified this issue on nightly 4.10.0-0.nightly-2021-11-19-022019. With the following imageContentSources configured in install-config.yaml, could create the cluster successfully. imageContentSources: - mirrors: - registry.example.com source: registry.redhat.io - mirrors: - registry.example.com source: registry-proxy.engineering.redhat.com Check the ICSP created in cluster after installation # oc get ImageContentSourcePolicy -o yaml apiVersion: v1 items: - apiVersion: operator.openshift.io/v1alpha1 kind: ImageContentSourcePolicy metadata: creationTimestamp: "2021-11-19T06:41:18Z" generation: 1 name: image-policy-0 resourceVersion: "1395" uid: 94fa2dbe-1b54-4cdf-84da-63b7b69c8804 spec: repositoryDigestMirrors: - mirrors: - registry.example.com source: registry.redhat.io - apiVersion: operator.openshift.io/v1alpha1 kind: ImageContentSourcePolicy metadata: creationTimestamp: "2021-11-19T06:41:18Z" generation: 1 name: image-policy-1 resourceVersion: "1409" uid: 008dd16c-9e1a-4563-bb15-d8c17fdc07c4 spec: repositoryDigestMirrors: - mirrors: - registry.example.com source: registry-proxy.engineering.redhat.com kind: List metadata: resourceVersion: "" selfLink: "" Container registry configuration on the worker: sh-4.4# cat /etc/containers/registries.conf unqualified-search-registries = ["registry.access.redhat.com", "docker.io"] short-name-mode = "" [[registry]] prefix = "" location = "registry-proxy.engineering.redhat.com" mirror-by-digest-only = true [[registry.mirror]] location = "registry.example.com" [[registry]] prefix = "" location = "registry.redhat.io" mirror-by-digest-only = true [[registry.mirror]] location = "registry.example.com" 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 (Moderate: OpenShift Container Platform 4.10.3 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:0056 |