oc-mirror: missing blobs

Version

$ oc-mirror version
Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.2.0-alpha.1-41-gf93ddac", GitCommit:"f93ddac", GitTreeState:"clean", BuildDate:"2022-05-20T15:57:49Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"linux/amd64"}

What happened?

Attempted to mirror 4.10.15 with:

rm -rf archive
rm -rf publish
oc-mirror --config config.yaml file://archive -v 9

and config.yaml:

kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v1alpha2
storageConfig:
  local:
    path: ./
mirror:
  platform:
    channels:
    - name: stable-4.10
      type: ocp
      minVersion: 4.10.15
      maxVersion: 4.10.15

oc-mirror completed without error, but several files were skipped:

Blob sha256:237bfbffb5f297018ef21e92b8fede75d3ca63e2154236331ef2b2a9dd818a02 exists in imageset, skipping...
Blob sha256:39382676eb30fabb7a0616b064e142f6ef58d45216a9124e9358d14b12dedd65 exists in imageset, skipping...
Blob sha256:804449b22e26cc93ec79fad318d5af873434fe344ccaf377c2487df2ad851776 exists in imageset, skipping...
Adding blob sha256:98f1d706f38e267926dddf47c4aa39a048999baaf3a455e35c5b0dfdaaf677fe
Blob sha256:a7635174fc67fd997681528eb831bf1c492bbb6b30ffd430aca98a9a89975bab exists in imageset, skipping...
Blob sha256:c692ab5b8175b380a4fffc7e41f537219c90207fdfedf5ab337525b1f69024e1 exists in imageset, skipping...
...
File v2/openshift/release-images/blobs/sha256:237bfbffb5f297018ef21e92b8fede75d3ca63e2154236331ef2b2a9dd818a02 will not be archived, skipping...
File v2/openshift/release-images/blobs/sha256:39382676eb30fabb7a0616b064e142f6ef58d45216a9124e9358d14b12dedd65 will not be archived, skipping...
File v2/openshift/release-images/blobs/sha256:804449b22e26cc93ec79fad318d5af873434fe344ccaf377c2487df2ad851776 will not be archived, skipping...
File v2/openshift/release-images/blobs/sha256:98f1d706f38e267926dddf47c4aa39a048999baaf3a455e35c5b0dfdaaf677fe added to archive
File v2/openshift/release-images/blobs/sha256:a7635174fc67fd997681528eb831bf1c492bbb6b30ffd430aca98a9a89975bab will not be archived, skipping...
File v2/openshift/release-images/blobs/sha256:c692ab5b8175b380a4fffc7e41f537219c90207fdfedf5ab337525b1f69024e1 will not be archived, skipping...
File v2/openshift/release-images/blobs/sha256:ddcb70ce04a01ce487c0f4ad769e9e36a10c8c832a34307c1b1eb8e03a5b7ddb added to archive

Then I mirrored some operators. So I had 2 tar files.

On the disconnected network, the first tar applied, but the 2nd tar complained about not having the blobs that were skipped in the first run above.

What did you expect to happen?

Be able to apply tar files in sequence on the disconnected network.

How to reproduce it (as minimally and precisely as possible)?

$ oc-mirror --config config.yaml file://archive -v 9 # with config.yaml above

Anything else we need to know?

References

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (7 by maintainers)

Commits related to this issue

Most upvoted comments