Obtaining the olm-utils-v3 image before running
IBM Software Hub installation commands in a
restricted network
If your cluster is in a restricted network, you
must ensure that a supported version of the olm-utils-v3
image is on the client workstation from which you will run the installation commands. The latest
version of the image is recommended.
- Installation phase
-
Setting up a client workstation
Setting up a cluster
Collecting required information
Preparing to run installs in a restricted network
Preparing to run installs from a private container registry
Preparing the cluster for IBM Software Hub
Preparing to install an instance of IBM Software Hub
Installing an instance of IBM Software Hub
Setting up the control plane
Installing solutions and services
- Who needs to complete this task?
-
All administrators Cluster administrators, registry administrators, and instance administrators must complete this task.
- When do you need to complete this task?
-
In a restricted network, you must ensure that you have the
olm-utils-v3image on your client workstation.You have the following choices for completing this task:
- One-time setup If you plan to mirror the IBM Software Hub software images to a private container registry, the registry administrator can complete this task before they mirror the images. Then, other users can pull the image from the private container registry.
- Repeat as needed If you plan to pull the images from the IBM Entitled Registry, complete this task on each workstation that will be used to perform installation tasks.
Procedure
The steps that you complete depend on whether you plan to use the same workstation in the cluster network:
You plan to use the same workstation inside the cluster network
- When the workstation is connected to the internet, run the following command to update the
olm-utils-v3image on the workstation:cpd-cli manage restart-containerWait for the
cpd-clito return the following messages:[SUCCESS] ... Successfully pulled the container image icr.io/cpopen/cpd/olm-utils-v3:latest [SUCCESS] ... Successfully started the container olm-utils-play [SUCCESS] ... Container olm-utils-play has been re-created
You plan to use a different workstation inside the cluster network
- Before you begin
-
You must have the
cpd-cliinstalled on a workstation in the cluster network
- From a workstation that can connect to the internet:
- Ensure that Docker or Podman is running on the workstation.
- Run the following command to save the
olm-utils-v3image to the client workstation:- x86-64 clusters
-
cpd-cli manage save-image \ --from=icr.io/cpopen/cpd/olm-utils-v3:${VERSION}.amd64This command saves the image as a compressed TAR file named
icr.io_cpd_olm-utils-v3_${VERSION}.amd64.tar.gzin thecpd-cli-workspace/olm-utils-workspace/work/offlinedirectory. - ppc64le clusters
-
cpd-cli manage save-image \ --from=icr.io/cpopen/cpd/olm-utils-v3:${VERSION}.ppc64leThis command saves the image as a compressed TAR file named
icr.io_cpopen_cpd_olm-utils-v3_${VERSION}.ppc64le.tar.gzin thecpd-cli-workspace/olm-utils-workspace/work/offlinedirectory. - s390x clusters
-
cpd-cli manage save-image \ --from=icr.io/cpopen/cpd/olm-utils-v3:${VERSION}.s390xThis command saves the image as a compressed TAR file named
icr.io_cpopen_cpd_olm-utils-v3_${VERSION}.s390x.tar.gzin thecpd-cli-workspace/olm-utils-workspace/work/offlinedirectory.
- Transfer the compressed file to a client workstation that can connect to the cluster.
Ensure that you place the TAR file in the
work/offlinedirectory:- x86-64 clusters
icr.io_cpd_olm-utils-v3_${VERSION}.amd64.tar.gz- ppc64le clusters
icr.io_cpopen_cpd_olm-utils-v3_${VERSION}.ppc64le.tar.gz- s390x clusters
icr.io_cpopen_cpd_olm-utils-v3_${VERSION}.s390x.tar.gz
- From the workstation that can connect to the cluster:
- Ensure that Docker or Podman is running on the workstation.
- Run the following command to load the
olm-utils-v3image on the client workstation:- x86-64 clusters
-
cpd-cli manage load-image \ --source-image=icr.io/cpopen/cpd/olm-utils-v3:${VERSION}.amd64The command returns the following message when the image is loaded:
Loaded image: icr.io/cpopen/cpd/olm-utils:latest - ppc64le clusters
-
cpd-cli manage load-image \ --source-image=icr.io/cpopen/cpd/olm-utils-v3:${VERSION}.ppc64leThe command returns the following message when the image is loaded:
Loaded image: icr.io/cpopen/cpd/olm-utils:latest.ppc64le - s390x clusters
-
cpd-cli manage load-image \ --source-image=icr.io/cpopen/cpd/olm-utils-v3:${VERSION}.s390xThe command returns the following message when the image is loaded:
Loaded image: icr.io/cpopen/cpd/olm-utils:latest.s390x
- Set the
OLM_UTILS_IMAGEenvironment variable to ensure that thecpd-cliuses the version of the image on the client workstation:- x86-64 clusters
-
export OLM_UTILS_IMAGE=icr.io/cpopen/cpd/olm-utils-v3:${VERSION}.amd64 - ppc64le clusters
-
export OLM_UTILS_IMAGE=icr.io/cpopen/cpd/olm-utils-v3:${VERSION}.ppc64le - s390x clusters
-
export OLM_UTILS_IMAGE=icr.io/cpopen/cpd/olm-utils-v3:${VERSION}.s390x
What to do next
Now that you've made the olm-utils-v3 image available on
the client workstation, you're ready to complete Downloading CASE packages before running IBM Software Hub installation commands in a restricted network.