oc mirror fails with error "invalid mirror sequence order"
Issue
-
Mirrored several images to a local directory using the oc mirror command.
$ oc mirror --config=./imageset-config.yaml file://mirror/data [repeat several times..] $ ls mirror/data mirror_seq1_000000.tar mirror_seq2_000000.tar mirror_seq3_000000.tar oc-mirror-workspace -
When mirroring the tar files mirrored locally to the registry using the oc mirror command, the following error is output.
$ oc mirror --from=./mirror/datamirror_seq3_000000.tar docker://mirror.example.com:8443 Checking push permissions for mirror.eample.com:8443 Publishing image set from archive "./mirror_seq3_000000.tar" to registry "mirror.example.com:8443" error: error during publishing, expecting imageset with prefix mirror_seq1: invalid mirror sequence order, want 1, got 3 -
How to mirror the tar files mirrored locally to the registry?
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.11 or later
- oc mirror plugin
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.