Troubleshooting
Problem
When mirroring IBM Cloud Pak for Data images with the following commands, "Found 0 images to be mirrored" error occurs especially have delta images information.
[root@bastion01 ~]# cloudctl case launch \
> --case ${OFFLINEDIR}/ibm-cp-datacore-2.0.8.tgz \
> --inventory cpdPlatformOperator \
> --action mirror-images \
> --args "--fromRegistry ${PORTABLE_REGISTRY} --registry ${PRIVATE_REGISTRY} --user ${PRIVATE_REGISTRY_USER} --pass ${PRIVATE_REGISTRY_PASSWORD} --inputDir ${OFFLINEDIR}"
Could not parse server version: <nil>. Error: Invalid Semantic Version
launch: caseFile=/home/cp4d-downloads/offline/cpd/ibm-cp-datacore-2.0.8.tgz, namespace=, instance=, inventory=cpdPlatformOperator, action=mirror-images, args=***, log-dir=/tmp/case, tolerance=0, tls-skip-verify=false
Arguments map: map[:instance /home/cp4d-downloads/offline/cpd/ibm-cp-datacore-2.0.8.tgz:case cpdPlatformOperator:inventory mirror-images:action]
Extra args: ***
Welcome to the CASE launcher
Attempting to retrieve and extract the CASE from the specified location
[FINE]: Parsing the --args flag for wildcard tokens and expanding to the fully qualified file path.
[FINE]: - Success
[FINE]: UnpackTGZ: unpacking /home/cp4d-downloads/offline/cpd/ibm-cp-datacore-2.0.8.tgz to /tmp/extractedCASELauncher1833595792
[✓] CASE has been retrieved and extracted
Attempting to validate the CASE
Validating the signature for the ibm-cp-datacore CASE...
[FINE]: [Note]: Signature can be validated independently of this command using your own custom made scripting, but this command provides an out of the box solution for validating the signature when an online connection is available
[FINE]: resp.StatusCode for attempting to verify online connection is: 200
[FINE]: Saving the digests.go yaml file to the system....
[FINE]: Digests written to /tmp/local_digests.yaml416556177
[FINE]: resp.StatusCode for attempting to verify online connection is: 200
[✓] CASE has been successfully validated
Attempting to locate the launch inventory item, script, and action in the specified CASE
[✓] Found the specified launch inventory item, action, and script for the CASE
Attempting to check the cluster and machine for required prerequisites for launching the item
Checking for required prereqs...
Processing /case/prereqs/client/oc...
Processing /case/prereqs/client/skopeo...
Prerequisite Result
Client has oc version 4.3.0 or greater true
Client has skopeo version 1.0.0 or greater true
[FINE]: JSON path resolver logic to evaluate: {"and":["/case/prereqs/client/oc", "/case/prereqs/client/skopeo"]}
Required prereqs result: OK
Checking user permissions...
No user rules specified.
[✓] Cluster and Client Prerequisites have been met for the CASE
Running the CASE cpdPlatformOperator launch script with the following action context: mirrorImages
[FINE]: Unable to load a resource group file for the following reason: Error reading /tmp/extractedCASELauncher1833595792/ibm-cp-datacore/resourceGroups.yaml: open /tmp/extractedCASELauncher1833595792/ibm-cp-datacore/resourceGroups.yaml: no such file or directory
Executing inventory item cpdPlatformOperator, action mirrorImages : launch.sh
-------------Mirroring images-------------
[INFO] Generating auth.json
[INFO] Processing CASE archive directory: /home/cp4d-downloads/offline/cpd
[INFO] Attempting to create delta list of images
[INFO] Create delta images list successful
[INFO] Copying image CSV file at /home/cp4d-downloads/offline/cpd/ibm-cp-datacore-2.0.8-delta-images-2021-12-23T04:25:12-05:00.csv to /tmp/airgap_csv_X1GOmutPX/ibm-cp-datacore-2.0.8-delta-images-2021-12-23T04:25:12-05:00.csv temporarily
[INFO] Processing image CSV file at /tmp/airgap_csv_X1GOmutPX/ibm-cp-datacore-2.0.8-delta-images-2021-12-23T04:25:12-05:00.csv
[INFO] Removing temp /tmp/airgap_csv_X1GOmutPX/ibm-cp-datacore-2.0.8-delta-images-2021-12-23T04:25:12-05:00.csv images.csv file
[INFO] Generating image mapping file /tmp/airgap_image_mapping_dQYV195Ad
[INFO] Start mirroring CASE images ...
[INFO] Found 0 images
[INFO] Deleting mirrored image csv files created during this mirror attempt
[ERROR] Found 0 images to be mirrored. Make sure that the download directory path is correct and that any specified groups are valid.
[FINE]: Error encountered trying to run the launch script with the "--tolerance" flag defined. This could happen either if the launch script failed or if the launch script does not support the "--tolerance" flag. Retrying launch script with no "--tolerance" flag specified.
[FINE]: Failed to launch script using the "--tolerance" flag Error: [Launch script failed due to: exit status 11
] Return Code: [-1]
Executing inventory item cpdPlatformOperator, action mirrorImages : launch.sh
-------------Mirroring images-------------
[INFO] Generating auth.json
[INFO] Processing CASE archive directory: /home/cp4d-downloads/offline/cpd
[INFO] Attempting to create delta list of images
[INFO] Create delta images list successful
[INFO] Copying image CSV file at /home/cp4d-downloads/offline/cpd/ibm-cp-datacore-2.0.8-delta-images-2021-12-23T04:25:13-05:00.csv to /tmp/airgap_csv_TnXH74xhh/ibm-cp-datacore-2.0.8-delta-images-2021-12-23T04:25:13-05:00.csv temporarily
[INFO] Processing image CSV file at /tmp/airgap_csv_TnXH74xhh/ibm-cp-datacore-2.0.8-delta-images-2021-12-23T04:25:13-05:00.csv
[INFO] Removing temp /tmp/airgap_csv_TnXH74xhh/ibm-cp-datacore-2.0.8-delta-images-2021-12-23T04:25:13-05:00.csv images.csv file
[INFO] Generating image mapping file /tmp/airgap_image_mapping_FZUF5oBN7
[INFO] Start mirroring CASE images ...
[INFO] Found 0 images
[INFO] Deleting mirrored image csv files created during this mirror attempt
[ERROR] Found 0 images to be mirrored. Make sure that the download directory path is correct and that any specified groups are valid.
error: Launch script failed due to: exit status 11
Symptom
[INFO] Attempting to create delta list of images
[INFO] Create delta images list successful
[INFO] Create delta images list successful
[INFO] Start mirroring CASE images ... [INFO] Found 0 images [INFO] Deleting mirrored image csv files created during this mirror attempt [ERROR] Found 0 images to be mirrored. Make sure that the download directory path is correct and that any specified groups are valid. error: Launch script failed due to: exit status 11
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSHGYS","label":"IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m3p000000UoRtAAK","label":"Image Registry-\u003EImage"},{"code":"a8m3p000000UoSAAA0","label":"Installation-\u003EAir-gap"}],"ARM Case Number":"","Platform":[{"code":"PF040","label":"Red Hat OpenShift"}],"Version":"4.0.2"}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
10 July 2023
UID
ibm16537208