Bug 1814495 - oc adm release extract --from is not obeyed
Summary: oc adm release extract --from is not obeyed
Keywords:
Status: CLOSED DUPLICATE of bug 1823143
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.3.z
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-18 03:08 UTC by nate stephany
Modified: 2020-05-11 15:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-11 15:57:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description nate stephany 2020-03-18 03:08:49 UTC
Description of problem:
When trying to extract openshift-install from content in a mirrored local registry, it still tries to go to quay.io.

This is the case even when adding --from=<mirror>, which the docs do not currently specify.


Version-Release number of selected component (if applicable):
4.3.3


How reproducible:
100%


Steps to Reproduce:
1. Mirror all content per restricted network install docs
2. Run something like `oc adm release extract -a $HOME/merged_pullsecret.json --command=openshift-install --from="utilityvm.example.com:5000/ocp4/openshift4:4.3.3-x86_64" --loglevel=3`
3.

Actual results:
I0317 23:00:09.816174   17887 extract_tools.go:323] Will extract usr/bin/openshift-install from quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:acce9b9a378b03e7e2130f65067a7c3a45a90e18653be8665e1534e9e5b63fcb


Expected results:
should be extracted from the mirror


Additional info:
[nstephan@bastion ~]$ oc adm release extract -a $HOME/merged_pullsecret.json --command=openshift-install --from="utilityvm.example.com:5000/ocp4/openshift4:4.3.3-x86_64" --loglevel=3
I0316 12:31:06.659751   13546 extract_tools.go:315] Skipping openshift-install-mac-%s.tar.gz, does not match current OS darwin
I0316 12:31:06.659829   13546 extract_tools.go:323] Will extract usr/bin/openshift-install from quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:acce9b9a378b03e7e2130f65067a7c3a45a90e18653be8665e1534e9e5b63fcb
I0316 12:31:10.259132   13546 extract_tools.go:681] Found match for release version at 3026 (len=4096, offset=327, n=3769)
I0316 12:31:10.264032   13546 extract_tools.go:681] Found match for release image at 2216 (len=4096, offset=327, n=3769)



The image is there, though:

[nstephan@bastion ~]$ podman pull utilityvm.example.com:5000/ocp4/openshift4@sha256:acce9b9a378b03e7e2130f65067a7c3a45a90e18653be8665e1534e9e5b63fcb
Trying to pull utilityvm.example.com:5000/ocp4/openshift4@sha256:acce9b9a378b03e7e2130f65067a7c3a45a90e18653be8665e1534e9e5b63fcb...Getting image source signatures
Copying blob 455ea8ab0621 skipped: already exists
Copying blob bb13d92caffa skipped: already exists
Copying blob 13be0effd90b skipped: already exists
Copying blob edf561fefe18 skipped: already exists
Copying blob 801c9fc3ed45 done
Copying config 9ab59172b7 done
Writing manifest to image destination
Storing signatures
9ab59172b71673bd8bf414d7d9b2d9338ad2189dfab5d11fc95d6390f01d7290



Same with both 4.2 and 4.3 clients, but this test was:

[nstephan@bastion ~]$ oc version
Client Version: 4.3.3
Server Version: 4.3.3
Kubernetes Version: v1.16.2

Comment 1 Maciej Szulik 2020-05-11 15:57:03 UTC

*** This bug has been marked as a duplicate of bug 1823143 ***


Note You need to log in before you can comment on or make changes to this bug.