mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
//installing/installing_bare_metal/ipi/ipi-install-troubleshooting.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="ipi-install-troubleshooting-registry-issues_{context}"]
|
|
|
|
= Issues with creating the registry
|
|
|
|
When creating a disconnected registry, you might encounter a "User Not Authorized" error when attempting to mirror the registry. This error might occur if you fail to append the new authentication to the existing `pull-secret.txt` file.
|
|
|
|
.Procedure
|
|
|
|
. Check to ensure authentication is successful:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ /usr/local/bin/oc adm release mirror \
|
|
-a pull-secret-update.json
|
|
--from=$UPSTREAM_REPO \
|
|
--to-release-image=$LOCAL_REG/$LOCAL_REPO:${VERSION} \
|
|
--to=$LOCAL_REG/$LOCAL_REPO
|
|
----
|
|
+
|
|
[NOTE]
|
|
====
|
|
Example output of the variables used to mirror the install images:
|
|
|
|
[source,terminal]
|
|
----
|
|
UPSTREAM_REPO=${RELEASE_IMAGE}
|
|
LOCAL_REG=<registry_FQDN>:<registry_port>
|
|
LOCAL_REPO='ocp4/openshift4'
|
|
----
|
|
|
|
The values of `RELEASE_IMAGE` and `VERSION` were set during the **Retrieving OpenShift Installer** step of the **Setting up the environment for an OpenShift installation** section.
|
|
====
|
|
|
|
. After mirroring the registry, confirm that you can access it in your
|
|
disconnected environment:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ curl -k -u <user>:<password> https://registry.example.com:<registry_port>/v2/_catalog
|
|
{"repositories":["<Repo_Name>"]}
|
|
----
|