Skip to content

Commit 4aaa5c1

Browse files
author
Bob Furu
authored
Merge pull request #37155 from stevsmit/BZ1903142
2 parents 92ad151 + 14a7c67 commit 4aaa5c1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

modules/olm-mirroring-catalog.adoc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ wrote database to /tmp/153048078 <1>
8686
wrote mirroring manifests to manifests-{index-image}-1614211642 <2>
8787
----
8888
<1> Directory for the temporary `index.db` database generated by the command.
89-
<2> Record the manifests directory name that is generated. This directory name is used in a later step.
89+
<2> Be sure to record the manifests directory name that is generated. This directory name is used in a later step.
90+
+
91+
[NOTE]
92+
====
93+
Red Hat Quay does not support nested repositories. As a result, running the `oc adm catalog mirror` command will fail with a `401` unauthorized error. As a workaround, you can use the `--max-components=2` option when running the `oc adm catalog mirror` command to disable the creation of nested repositories. For more information on this workaround, see the link:https://access.redhat.com/solutions/5440741[Unauthorized error thrown while using catalog mirror command with Quay registry] Knowledgebase Solution article.
94+
====
9095

9196
** *Option B: If your mirror registry is on a disconnected host,* take the following actions.
9297

@@ -115,7 +120,7 @@ To upload local images to a registry, run:
115120
116121
oc adm catalog mirror file://local/index/myrepo/my-index:v1 REGISTRY/REPOSITORY <2>
117122
----
118-
<1> Record the manifests directory name that is generated. This directory name is used in a later step.
123+
<1> Be sure to record the manifests directory name that is generated. This directory name is used in a later step.
119124
<2> Record the expanded `file://` path that based on your provided index image. This path is used in a later step.
120125

121126
.. Copy the `v2/` directory that is generated in your current directory to removable media.
@@ -142,6 +147,11 @@ $ oc adm catalog mirror \
142147
----
143148
<1> Specify the `file://` path from the previous command output.
144149
<2> Specify the target registry and namespace to mirror the Operator content to, where `<namespace>` is any existing namespace on the registry. For example, you might create an `olm-mirror` namespace to push all mirrored content to.
150+
+
151+
[NOTE]
152+
====
153+
Red Hat Quay does not support nested repositories. As a result, running the `oc adm catalog mirror` command will fail with a `401` unauthorized error. As a workaround, you can use the `--max-components=2` option when running the `oc adm catalog mirror` command to disable the creation of nested repositories. For more information on this workaround, see the link:https://access.redhat.com/solutions/5440741[Unauthorized error thrown while using catalog mirror command with Quay registry] Knowledgebase Solution article.
154+
====
145155

146156
. After mirroring the content to your registry, inspect the manifests directory that is generated in your current directory.
147157
+

0 commit comments

Comments
 (0)