Mirroring Fusion Data Foundation images
Mirror the Fusion Data Foundation images deployed on
Red Hat® OpenShift® Container Platform to your enterprise registry by using
ImageDigestMirrorSet.
Before you begin
- Use this procedure to mirror Fusion Data Foundation images to enable the Fusion Data Foundation service in IBM Fusion.
-
To enable the Global Data Platform service in IBM Fusion on Red Hat OpenShift Container Platform 4.21:
- Use this procedure to mirror the Fusion Data Foundation images.
- Mirror the IBM Storage Scale 6.0.1.0 images as described in Mirroring IBM Storage Scale 6.0.1.0 images.
- Before you mirror, go through the prerequisites. See Mirroring prerequisites.
- Use either podman or docker commands to login to the registries. The examples in the procedure
used docker; if you are using podman, substitute
podmanfordockerin the commands. - For more information about the version support, see IBM Fusion support matrix.
About this task
The Fusion Data Foundation 4.16 with Red Hat OpenShift Container Platform 4.16 is used in the procedure as an example. Replace it with your appropriate supported version.
Procedure
- Run the following command to login to Docker registry with your Red
Hat® enterprise credentials:
docker login registry.redhat.io -u <Red Hat enterprise registry username> -p <Red Hat enterprise registry password> -
Log in to the IBM Entitled Container Registry by using the IBM entitlement key:
docker login cp.icr.io -u cp -p <your entitlement key>Note: Ensure that your entitlement key for IBM Fusion contains the correct entitlement.Set the following environment variables:export LOCAL_ISF_REGISTRY="<Your enterprise registry host>:<port>" export LOCAL_ISF_REPOSITORY="<Your image path>" export TARGET_PATH="$LOCAL_ISF_REGISTRY/$LOCAL_ISF_REPOSITORY" export OCP_VERSION="<Your ocp version, eg 4.16>"Note: Port is a non-mandatory value when you set theLOCAL_ISF_REGISTRYvariable. If your enterprise registry is accessible and has a secure connection, then you can ignore it.Sample value for without port:export LOCAL_ISF_REGISTRY="registryhost.com"See the following sample values:export LOCAL_ISF_REGISTRY="registryhost.com:443" export LOCAL_ISF_REPOSITORY="fusion-mirror"LOCAL_ISF_REGISTRYis your entitlement registry.LOCAL_ISF_REPOSITORYis the image path in which you want to mirror the images. You can choose your own repository paths. For example, in 2.13.0, the name can be imagessds-images/isf or sds-images. - Run the command to login to the Docker registry with your enterprise registry
credentials:
docker login $LOCAL_ISF_REGISTRY -u <your enterprise registry username> -p <your enterprise registry password> - Create the image set configuration for Fusion Data Foundation.
If you are using Fusion Data Foundation 4.21, then use the following image set configuration:
imageset-config-fdf.yamlcat << EOF > imageset-config-fdf.yaml kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: operators: - catalog: icr.io/cpopen/isf-data-foundation-catalog:v$OCP_VERSION packages: - name: "cephcsi-operator" - name: "mcg-operator" - name: "ocs-operator" - name: "odf-csi-addons-operator" - name: "odf-multicluster-orchestrator" - name: "odf-operator" - name: "odr-cluster-operator" - name: "odr-hub-operator" - name: "ocs-client-operator" - name: "odf-prometheus-operator" - name: "recipe" - name: "rook-ceph-operator" - name: "odf-dependencies" - name: "odf-external-snapshotter-operator" - name: "ibm-spectrum-scale-operator" - name: "cnsa-dependencies" EOFIf you are using Fusion Data Foundation 4.20, then use the following image set configuration:
imageset-config-fdf.yamlcat << EOF > imageset-config-fdf.yaml kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: operators: - catalog: icr.io/cpopen/isf-data-foundation-catalog:v$OCP_VERSION packages: - name: "cephcsi-operator" - name: "mcg-operator" - name: "ocs-operator" - name: "odf-csi-addons-operator" - name: "odf-multicluster-orchestrator" - name: "odf-operator" - name: "odr-cluster-operator" - name: "odr-hub-operator" - name: "ocs-client-operator" - name: "odf-prometheus-operator" - name: "recipe" - name: "rook-ceph-operator" - name: "odf-dependencies" - name: "odf-external-snapshotter-operator" EOFIf you are using Fusion Data Foundation 4.18 and 4.19, then use the following image set configuration:
imageset-config-fdf.yamlcat << EOF > imageset-config-fdf.yaml kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: operators: - catalog: icr.io/cpopen/isf-data-foundation-catalog:v$OCP_VERSION packages: - name: "cephcsi-operator" - name: "mcg-operator" - name: "ocs-operator" - name: "odf-csi-addons-operator" - name: "odf-multicluster-orchestrator" - name: "odf-operator" - name: "odr-cluster-operator" - name: "odr-hub-operator" - name: "ocs-client-operator" - name: "odf-prometheus-operator" - name: "recipe" - name: "rook-ceph-operator" - name: "odf-dependencies" EOF - Run the following oc command to mirror the images.
oc mirror --v2 --config imageset-config-fdf.yaml --workspace file://./ docker://${TARGET_PATH} --dest-tls-verify=false - Run the following command to check whether the image got successfully mirrored to the
registry: Note: If you are using a self signed registry, then export the
SSL_CERT_DIR=/root/quay-install/quay-rootCAbefore running this command.The
/root/quay-install/quay-rootCApath is where certificates are placed. For more information, see Red Hat solution.
Sample output:oc mirror list operators --catalog $TARGET_PATH/cpopen/isf-data-foundation-catalog:v$OCP_VERSIONWARN[0033] DEPRECATION NOTICE: Sqlite-based catalogs and their related subcommands are deprecated. Support for them will be removed in a future release. Please migrate your catalog workflows to the new file-based catalog format. NAME DISPLAY NAME DEFAULT CHANNEL mcg-operator NooBaa Operator stable-4.16 ocs-client-operator OpenShift Data Foundation Client stable-4.16 ocs-operator Container Storage stable-4.16 odf-csi-addons-operator CSI Addons stable-4.16 odf-multicluster-orchestrator Multicluster Orchestrator stable-4.16 odf-operator IBM Storage Fusion Data Foundation stable-4.16 odr-cluster-operator DR Cluster Operator stable-4.16 odr-hub-operator DR Hub Operator stable-4.16
- Ensure that the local-storage-operator and
lvms-operator operator packages are present in your cluster. Note: If you have not mirrored local-storage-operator and lvms-operator from the Red Hat packages previously, then follow the steps that are provided in the Mirroring Red Hat operator images to enterprise registry.
- Note: You can run steps 8, 9, and 10 only when the cluster is up for a freshly installed rack.Create an
ImageDigestMirrorSetcustom resource for Fusion Data Foundation. Apply the configuration by running the command:
See the followingoc apply -f isf-fdf-idms.yamlImageDigestMirrorSet:Note: Replace the variable$TARGET_PATHwith your registry details where images are mirrored.apiVersion: config.openshift.io/v1 kind: ImageDigestMirrorSet metadata: labels: operators.openshift.org/catalog: "true" name: isf-fdf-idms spec: imageDigestMirrors: - mirrors: - $TARGET_PATH/openshift4 source: registry.redhat.io/openshift4 - mirrors: - $TARGET_PATH/redhat source: registry.redhat.io/redhat - mirrors: - $TARGET_PATH/rhel9 source: registry.redhat.io/rhel9 - mirrors: - $TARGET_PATH/rhel8 source: registry.redhat.io/rhel8 - mirrors: - $TARGET_PATH/cp/df source: cp.icr.io/cp/df - mirrors: - $TARGET_PATH/cpopen source: cp.icr.io/cpopen - mirrors: - $TARGET_PATH/cpopen source: icr.io/cpopen - mirrors: - $TARGET_PATH/cp/df/ceph source: cp.icr.io/cp/df/ceph - mirrors: - $TARGET_PATH/odf4 source: registry.redhat.io/odf4 - mirrors: - $TARGET_PATH/lvms4 source: registry.redhat.io/lvms4 - mirrors: - $TARGET_PATH/rhceph source: registry.redhat.io/rhceph - Create a
CatalogSourcenamedredhat-operators. Apply theCatalogSourceby running the command:oc apply -f redhat-operators-catalogsource.yamlNote: Do this step when the Fusion Data Foundation uses the local disk.apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: redhat-operators namespace: openshift-marketplace spec: displayName: Red Hat Operators image: $TARGET_PATH/redhat/redhat-operator-index:v$OCP_VERSION publisher: Red Hat sourceType: grpc - Create an
ImageTagMirrorSetfor Fusion Data Foundation. Apply the configuration by running the command:
See the followingoc apply -f isf-fdf-imagetagmirrorset.yamlImageDigestMirrorSet:apiVersion: config.openshift.io/v1 kind: ImageTagMirrorSet metadata: name: isf-fdf spec: imageTagMirrors: - mirrors: - $TARGET_PATH/cpopen/isf-data-foundation-catalog source: icr.io/cpopen/isf-data-foundation-catalog mirrorSourcePolicy: AllowContactingSource
What to do next
To enable the Global Data Platform service in IBM Fusion on Red Hat OpenShift Container Platform 4.21, mirror the IBM Storage Scale 6.0.1.0 images as described in Mirroring IBM Storage Scale 6.0.1.0 images.