-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MGMT-19545: Replace seed cluster mirror registries in IBI preparation step #727
MGMT-19545: Replace seed cluster mirror registries in IBI preparation step #727
Conversation
@mresvanis: This pull request references MGMT-19545 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Skipping CI for Draft Pull Request. |
8108a74
to
55525ef
Compare
55525ef
to
3d0c994
Compare
be72473
to
85de2e5
Compare
Signed-off-by: Michail Resvanis <[email protected]>
@mresvanis: This pull request references MGMT-19545 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/retest |
85de2e5
to
07b2fb7
Compare
5b7cffa
to
18f4052
Compare
Signed-off-by: Michail Resvanis <[email protected]>
/test ibu-e2e-flow |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tsorya The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test integration |
Background / Context
During the installation step of IBI, after setting up the new stateroot we precache the seed cluster's container images. Although there is support for mirror registries when creating the installation ISO, we currently don't account for the seed image containing pull-specs from mirror registries (e.g. the seed image was generated in a cluster with an OCP release image from a private registry). This results in the IBI preparation/installation step to fail when trying to pull images from the mirror registries of the seed cluster, instead of the target cluster's release mirror registries (or the original release registries if no mirror registries are configured on the target cluster).
Issue / Requirement / Reason for change
We want to support different mirror registry configuration between the seed and the target cluster, in order to enable IBI with seed images generated from disconnected SNO clusters.
Solution / Feature Overview
During the IBI preparation step before precaching the seed cluster's images, we can replace the seed release mirror registry with the target release (mirror) registry. That's exactly what we do in IBU here.
Implementation Details
In order to replace the seed release mirror registry with the target release (mirror) registry, we need the seed's release registry and the target's release registry. We can read the first one from the
manifest.json
that's included in the seed image.We can read the second one from the new IBI preparation configuration fieldReleaseRegistry
, which we will add during the creation of the installation ISO.Other Information