Failure of Mirroring from mirror to disk using oc mirror plugin : i/o timeout
Issue
- To install OpenShift cluster in a fully disconnected environment, we installed a mirror registry.
- Since the mirror registry is in a fully disconnected environment, we first mirror the imageset to disk using the
oc mirror
command plugin on the Internet-connected host, according to the documentation. - However, running the mirror to disk failed.
imageset-config.yaml
and the log output are as follows:
# imageset-config.yaml
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v1alpha2
storageConfig:
registry:
imageURL: mirror.hogehoge.com:8443/mirror/oc-mirror-metadata
skipTLS: true
mirror:
platform:
channels:
- name: stable-4.11
operators:
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.11
packages:
- name: elasticsearch-operator
channels:
- name: stable
- name: loki-operator
channels:
- name: stable
- name: cluster-logging
channels:
- name: stable
- name: local-storage-operator
channels:
- name: stable
# executed oc mirror command plugin and output log
$ oc mirror --config=./imageset-config.yaml file:///home/dev/data
Found: /home/dev/data/oc-mirror-workspace/src/publish
Found: /home/dev/data/oc-mirror-workspace/src/v2
Found: /home/dev/data/oc-mirror-workspace/src/charts
Found: /home/dev/data/oc-mirror-workspace/src/release-signatures
error: Get "https://mirror.hogehoge.com:8443/v2/": dial tcp 192.168.XXX.YYY:8443: connect: i/o timeout; Get "http://mirror.hogehoge.com:8443/v2/": dial tcp 192.168.XXX.YYY:8443: connect: i/o timeout
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.11 or later
- oc mirror plugin
- Disconnected cluster
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.