Bug 1917550

Summary: oc adm catalog mirror command attempts to pull from registry.redhat.io when using --from-dir option
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Bruno Andrade <bandrade>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, dageoffr, erich, jcall, jhultz, jiazha, jokerman, jrickard, kmorgan, kodonnel, krizza, ljenkin, marobrie, maszulik, mfojtik, nhale
Version: 4.4   
Target Milestone: ---   
Target Release: 4.6.z   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-08 13:51:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1841885    
Bug Blocks:    

Comment 3 Bruno Andrade 2021-02-01 03:02:27 UTC
Worked as expected, marking as VERIFIED.

./oc version                                       
Client Version: 4.6.0-0.nightly-2021-01-30-211400

./oc adm catalog mirror quay.io/olmtest/busybox-dependencies-index:2.0.0-with-ListBundles-method file:///local/index                                                                                                                  1 ↵
src image has index label for database path: /database/index.db
using database path mapping: /database/index.db:/tmp/750413472
wrote database to /tmp/750413472
using database at: /tmp/750413472/index.db
<dir>
  local/index/library/busybox
    blobs:
      docker.io/library/busybox sha256:90db9b24cd1a9d1dcfabcaa72e38105470afe30cb540bbecaf53bd4f242b0d34 1.421KiB
      docker.io/library/busybox sha256:9c25d794e58673c711364f2d87a46ed4eadd8a8338c514eb307b993c70b015c6 1.421KiB
      docker.io/library/busybox sha256:d2a6457ad35eb2f6754c956fbfd1b8ff7cf769a601f0fcedc5a8b6a0a68ab32f 1.421KiB
      docker.io/library/busybox sha256:fcaff7ec9f5398d428c521bf3555d0b9380bedc11636abc4e4ff9f3cb69dbbb8 1.421KiB
      docker.io/library/busybox sha256:9521f11f5fd99c979506f0707866e28a7488d00797d68e546e4b28590973af4a 1.422KiB
      docker.io/library/busybox sha256:b97242f89c8a29d13aea12843a08441a4bbfc33528f55b60366c1d8f6923d0d4 1.423KiB
      docker.io/library/busybox sha256:bffe63f0059eb501c7705ef086bb4fed44620c9a6ac80e1bf25a6d831c8a1cdb 1.423KiB
      docker.io/library/busybox sha256:ebf04042467c61053b293920da039c51382e1b5ef8313b3e35993559c98e17f9 1.425KiB
      docker.io/library/busybox sha256:f1094863cf458c4c79a9d9f04a609758b5a2840038d737039368c9c0e6234cdb 1.426KiB
      docker.io/library/busybox sha256:79361631f01d00051984a8e86ff88faa5c5dc04afed0653caadacda5ccc6d5d3 700.4KiB
      docker.io/library/busybox sha256:c33a749cb3b697183c843a0d067a5607f6feb49c0301e02d9aff341aa40b8fe1 708.5KiB
      docker.io/library/busybox sha256:0aab3a5f7d90c28121492b19638556fd9d58812025a210c14526ac91b5853f68 731.2KiB
      docker.io/library/busybox sha256:e5d9363303ddee1686b203170d78283404e46a742d4c62ac251aae5acbda8df8 746.7KiB
      docker.io/library/busybox sha256:c2cf70554e629dd6e8f87b344b3797526b1ba7ed49fd40d82ef41a61fd4b2051 797.8KiB
      docker.io/library/busybox sha256:43ad10103886b263876df536758aea185186835591ef9eb283ac066fb7b45d01 920.8KiB
      docker.io/library/busybox sha256:babe3270bb3250154e9888f2b50029364fced1bbc2e1ad46a984849a5452999d 926.6KiB
      docker.io/library/busybox sha256:9312e6d8739021a133803b536aac280a99a828c91d3ea8980d7dd0beca728422 2.04MiB
      docker.io/library/busybox sha256:47d9462a9510da4e7bed0ccc456a6b6f7c1a0b9431077a5f36e61b8c7dea3180 2.504MiB
    manifests:
      sha256:0415f56ccc05526f2af5a7ae8654baec97d4a614f24736e8eef41a4591f08019
      sha256:16a47375542a993a78368ac80f729382277853523c2baf237c0ae27e41e40fd3
      sha256:19ea09c75445a0949e1a39fb100233eded8d3a0b9f6bc0f3e6f237b6c74f0930
      sha256:2c3ded2309184bedf27a03dd99e8f6b1bd28febd7fc9b64dc76a862e3a221214
      sha256:43c54eaff5af90941cc9895821dfa09448e1c8889de6815aadd4cb9d7e1fb5d7
      sha256:9bae0ce4b604680683a3f8d538c8f86ffab8b982577eee240e0accf369b3ac78
      sha256:a1dc9b439291e609fc80847b5c7954e117af4b74b7b60506a07b200e9c08d272
      sha256:bf920ca7f146b802e1c9a8aab1fba3a3fe601c56b075ecef90834c13b90bb5bb
      sha256:c5439d7db88ab5423999530349d327b04279ad3161d7596d2126dfb5b02bfd1f
      sha256:de2179c139422b80990c400ef4021aadb61f1fa6113c8ed0a214f981059ebaa8
      sha256:c5439d7db88ab5423999530349d327b04279ad3161d7596d2126dfb5b02bfd1f -> latest
  local/index/olmtest/busybox-bundle
    manifests:
      sha256:44e261c8eac2835027b11896a961c03d9d9e0bef6d79f9a9b4268a525013acc8 -> 2.0.0
      sha256:909ea461c8d033b14667b273ba7b6dd188a293c92bf076824836c03627982f2d -> 1.0.0
  local/index/olmtest/busybox-dependencies-index
    manifests:
      sha256:1cae286a91e6e2c6974589a893d222215c7b17377beef059dc3ab76a6836f907 -> 2.0.0-with-ListBundles-method
  local/index/olmtest/busybox-dependency-bundle
    manifests:
      sha256:6ea4735cc75a86d2a837a71e548cda9d21fcd9fc55e456e994b08f4b051f9ac3 -> 1.0.0
      sha256:eb4b13cba7a85a99055c9e177f5116066951e9ad7cde8dd8a7287ce79cc037f0 -> 2.0.0
  stats: shared=0 unique=18 size=9.959MiB ratio=1.00

phase 0:
   local/index/olmtest/busybox-dependencies-index blobs=0  mounts=0 manifests=1  shared=0
   local/index/library/busybox                    blobs=18 mounts=0 manifests=11 shared=0
   local/index/olmtest/busybox-bundle             blobs=0  mounts=0 manifests=2  shared=0
   local/index/olmtest/busybox-dependency-bundle  blobs=0  mounts=0 manifests=2  shared=0

info: Planning completed in 4.86s
uploading: file://local/index/library/busybox sha256:9312e6d8739021a133803b536aac280a99a828c91d3ea8980d7dd0beca728422 2.04MiB
uploading: file://local/index/library/busybox sha256:47d9462a9510da4e7bed0ccc456a6b6f7c1a0b9431077a5f36e61b8c7dea3180 2.504MiB
uploading: file://local/index/library/busybox sha256:babe3270bb3250154e9888f2b50029364fced1bbc2e1ad46a984849a5452999d 926.6KiB
uploading: file://local/index/library/busybox sha256:79361631f01d00051984a8e86ff88faa5c5dc04afed0653caadacda5ccc6d5d3 700.4KiB
uploading: file://local/index/library/busybox sha256:c2cf70554e629dd6e8f87b344b3797526b1ba7ed49fd40d82ef41a61fd4b2051 797.8KiB
uploading: file://local/index/library/busybox sha256:e5d9363303ddee1686b203170d78283404e46a742d4c62ac251aae5acbda8df8 746.7KiB
uploading: file://local/index/library/busybox sha256:43ad10103886b263876df536758aea185186835591ef9eb283ac066fb7b45d01 920.8KiB
sha256:1cae286a91e6e2c6974589a893d222215c7b17377beef059dc3ab76a6836f907 file://local/index/olmtest/busybox-dependencies-index:2.0.0-with-ListBundles-method
sha256:909ea461c8d033b14667b273ba7b6dd188a293c92bf076824836c03627982f2d file://local/index/olmtest/busybox-bundle:1.0.0
sha256:44e261c8eac2835027b11896a961c03d9d9e0bef6d79f9a9b4268a525013acc8 file://local/index/olmtest/busybox-bundle:2.0.0
sha256:6ea4735cc75a86d2a837a71e548cda9d21fcd9fc55e456e994b08f4b051f9ac3 file://local/index/olmtest/busybox-dependency-bundle:1.0.0
sha256:eb4b13cba7a85a99055c9e177f5116066951e9ad7cde8dd8a7287ce79cc037f0 file://local/index/olmtest/busybox-dependency-bundle:2.0.0
uploading: file://local/index/library/busybox sha256:0aab3a5f7d90c28121492b19638556fd9d58812025a210c14526ac91b5853f68 731.2KiB
uploading: file://local/index/library/busybox sha256:c33a749cb3b697183c843a0d067a5607f6feb49c0301e02d9aff341aa40b8fe1 708.5KiB
sha256:2c3ded2309184bedf27a03dd99e8f6b1bd28febd7fc9b64dc76a862e3a221214 file://local/index/library/busybox
sha256:43c54eaff5af90941cc9895821dfa09448e1c8889de6815aadd4cb9d7e1fb5d7 file://local/index/library/busybox
sha256:19ea09c75445a0949e1a39fb100233eded8d3a0b9f6bc0f3e6f237b6c74f0930 file://local/index/library/busybox
sha256:de2179c139422b80990c400ef4021aadb61f1fa6113c8ed0a214f981059ebaa8 file://local/index/library/busybox
sha256:16a47375542a993a78368ac80f729382277853523c2baf237c0ae27e41e40fd3 file://local/index/library/busybox
sha256:a1dc9b439291e609fc80847b5c7954e117af4b74b7b60506a07b200e9c08d272 file://local/index/library/busybox
sha256:bf920ca7f146b802e1c9a8aab1fba3a3fe601c56b075ecef90834c13b90bb5bb file://local/index/library/busybox
sha256:0415f56ccc05526f2af5a7ae8654baec97d4a614f24736e8eef41a4591f08019 file://local/index/library/busybox
sha256:9bae0ce4b604680683a3f8d538c8f86ffab8b982577eee240e0accf369b3ac78 file://local/index/library/busybox
sha256:c5439d7db88ab5423999530349d327b04279ad3161d7596d2126dfb5b02bfd1f file://local/index/library/busybox:latest
info: Mirroring completed in 6.07s (1.718MB/s)
wrote mirroring manifests to manifests-busybox-dependencies-index-1612148415

To upload local images to a registry, run:

	oc adm catalog mirror file://local/index/olmtest/busybox-dependencies-index:2.0.0-with-ListBundles-method REGISTRY/REPOSITORY

Comment 6 errata-xmlrpc 2021-02-08 13:51:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.6.16 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:0308