oc mirror プラグインを使用したミラーからディスクへのミラーリングの失敗: I/O タイムアウト
Issue
- 完全な非接続環境に OpenShift クラスターをインストールするため、ミラーレジストリーをインストールしました。
- ミラーレジストリーは完全な非接続環境にあるため、ドキュメント に従い、まずはインターネットに接続されたホストで
oc mirrorコマンドプラグインを使用してイメージセットをディスクにミラーリングします。 - しかし、ディスクへのミラーリングの実行は失敗しました。
imageset-config.yamlとログ出力は次のとおりです。
# 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 以降
- oc mirror plugin
- Disconnected cluster
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.