Bug 1823143: Implement enhancement for "Add ImageContentSource awareness to oc" - #439
Bug 1823143: Implement enhancement for "Add ImageContentSource awareness to oc"#439sallyom wants to merge 6 commits into
Conversation
c962d12 to
fbde626
Compare
|
/hold until enhancement openshift/enhancements#334 merges |
6dba197 to
9ac6924
Compare
f426984 to
8891770
Compare
soltysh
left a comment
There was a problem hiding this comment.
The ISCP retrieval is good, but we still need to flesh out the details how to apply it properly to release flow.
soltysh
left a comment
There was a problem hiding this comment.
One nit, I must have missed before.
|
/retest |
1 similar comment
|
/retest |
|
/test e2e-agnostic-cmd |
|
@sallyom: This pull request references Bugzilla bug 1823143, which is valid. 3 validation(s) were run on this bug
DetailsIn 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 kubernetes/test-infra repository. |
|
@sallyom: This pull request references Bugzilla bug 1823143, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn 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 kubernetes/test-infra repository. |
|
@smarterclayton most of the changes from the old approach #790 are not required, without the requirement of pulling the original imageReference from a mirrored location using ICSP lookup/replace (with tags or digests). Therefor, the changes here are minimal (still have to do the replace when extracting mirrored releases, since there's no other way for oc to know that the internal referenced images (like tools, installer, oc) should be pulled from the same registry as the release imageRef (fetched from the alternative repo w/ lib-go blobMirrored client) see the readReleaseImageReference fn in release/image_mapper.go, the parsed user-passed imageRef (the o.From usually) must be known to apply the imageRef.ID of a component image to the desired registry. Note that |
|
@smarterclayton @sallyom how do we make a progress on this one? We're blocked with the central host management for 4.8 without it |
|
@smarterclayton another issue I see w/ hiding the replacement imageRef from oc is you cannot do something like (you can run it, but user will be confused from the output) UPDATE: I believe this is the desired output. |
I think this is the correct behavior. If someone wants to view that image (with |
With this PR, oc can now access the mirrored location rather than only the original. No ICSP is necessary for this, as the user-provided location is simply added to the alternates list (ICSP would be necessary if you needed to This PR solves the above, and with latest commits here is the output of gathering info from a mirrored location: |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sallyom, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@smarterclayton @soltysh with the added *WithLocation fns in registryclient.client_mirrored, I added the ICSP function back, it is working. See the test cmds for examples: #439 (comment) |
|
I've tried using the oc from this PR to extract the baremetal-installer from a nightly image (edge-01.edge.lab.eng.rdu2.redhat.com:5000/ocp:nightly-2021-03-16-221720) Seems that without the changes from this PR, But when I use the |
|
cc: @soltysh |
When working with mirrored release payloads, a release from a mirrored registry, mylocalregistry/ocp/release:4.5.0-0.nightly-2020-04-18-093630 mirrored from registry.svc.ci.openshift.org/ocp/release:4.5.0-0.nightly-2020-04-18-093630 - both reference 'quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:2eb0a51...'. In case of disconnected, oc will now use 'mylocalregistry/ocp/release' if passed, instead of 'quay.io/openshift-release-dev/ocp-v4.0-art-dev'
|
@sallyom: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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 kubernetes/test-infra repository. I understand the commands that are listed here. |
|
This will be split into several PRs, first is #829 |
|
@soltysh: Closed this PR. DetailsIn 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 kubernetes/test-infra repository. |
|
@sallyom: This pull request references Bugzilla bug 1823143. The bug has been updated to no longer refer to the pull request using the external bug tracker. DetailsIn 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 kubernetes/test-infra repository. |
This PR implements openshift/enhancements#334:
oc adm release mirrorto either:To Test - See these test commands: #439 (comment)
set up a secure local registry with this script.
For previous discussions and closed/related PRs:
#427
#395
Includes cherry-picks of commits in #745
Includes fake bump with library-go change: openshift/library-go#939