Skip to content

Add a new oc adm release mirror command#20977

Merged
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
smarterclayton:mirror
Sep 15, 2018
Merged

Add a new oc adm release mirror command#20977
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
smarterclayton:mirror

Conversation

@smarterclayton
Copy link
Contributor

@smarterclayton smarterclayton commented Sep 14, 2018

This will enable an administrator to mirror an online release payload
to a local registry in preparation for running offline. It gathers the
images referenced by a release payload, mirrors them to the destination
registry, and then prints out the target payload image reference and
the prefix the CVO will use for offline.

$ oc adm release mirror --from=registry.svc.ci.openshift.org/openshift/origin-release:v4.0 --to registry.svc.ci.openshift.org/clayton-test-2/test
...
info: Mirroring completed in 44.96s (5.687kB/s)

Success
Update image:  registry.svc.ci.openshift.org/clayton-test-2/test:release
Mirror prefix: registry.svc.ci.openshift.org/clayton-test-2/test

@crawford will continue to iterate on this, but this should be all we need
for 4.0 offline

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 14, 2018
Mirroring was not mounting correctly in all cases, and manifest upload
was not parallelized. Fix both issues.
This will enable an administrator to mirror an online release payload
to a local registry in preparation for running offline. It gathers the
images referenced by a release payload, mirrors them to the destination
registry, and then prints out the target payload image reference and
the prefix the CVO will use for offline.

    $ oc adm release mirror --from=registry.svc.ci.openshift.org/openshift/origin-release:v4.0 \
         --to registry.svc.ci.openshift.org/clayton-test-2/test
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: smarterclayton

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 14, 2018
@smarterclayton
Copy link
Contributor Author

/retest

@smarterclayton smarterclayton added the lgtm Indicates that a PR is ready to be merged. label Sep 15, 2018
@smarterclayton
Copy link
Contributor Author

smarterclayton commented Sep 15, 2018 via email

@smarterclayton
Copy link
Contributor Author

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 4c7572f into openshift:master Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants