Agent-Based Installer succeeds in connected environments but fails in disconnected environments

Solution Verified - Updated -

Issue

  • The installation fails when using the Agent-Based Installer in a disconnected environment.

  • The command openshift-install agent wait-for install-complete returns the following error:

    INFO Unable to retrieve cluster metadata from Agent Rest API: no clusterID known for the cluster
    
  • The journal logs show the following error messages:

    Mar 10 11:39:14 master0 agent-register-cluster[8804]: time="2025-03-10T11:39:14Z" level=warning msg="command 'oc adm release info -o template --template '{{.metadata.version}}' --insecure=true --icsp-file=/tmp/icsp-file1210812486 mirror.example.com:8443/openshift/release-images@sha256:5b71d2917773c2fddcd0415fbc96457188df2ba87d71680330aa4cb96f4501b5 --registry-config=/tmp/registry-config782683582' exited with non-zero exit code 1: \nFlag --icsp-file has been deprecated, support for it will be removed in a future release. Use --idms-file instead.\nerror: image \"mirror.example.com:8443/openshift/release-images@sha256:5b71d2917773c2fddcd0415fbc96457188df2ba87d71680330aa4cb96f4501b5\" not found: manifest unknown: manifest unknown\n"
    Mar 10 11:39:14 master0 agent-register-cluster[8804]: time="2025-03-10T11:39:14Z" level=error msg="failed to get image openshift version from mirror release image mirror.example.com:8443/openshift/release-images@sha256:5b71d2917773c2fddcd0415fbc96457188df2ba87d71680330aa4cb96f4501b5" error="command 'oc adm release info -o template --template '{{.metadata.version}}' --insecure=true --icsp-file=/tmp/icsp-file1210812486 mirror.example.com:8443/openshift/release-images@sha256:5b71d2917773c2fddcd0415fbc96457188df2ba87d71680330aa4cb96f4501b5 --registry-config=/tmp/registry-config782683582' exited with non-zero exit code 1: \nFlag --icsp-file has been deprecated, support for it will be removed in a future release. Use --idms-file instead.\nerror: image \"mirror.example.com:8443/openshift/release-images@sha256:5b71d2917773c2fddcd0415fbc96457188df2ba87d71680330aa4cb96f4501b5\" not found: manifest unknown: manifest unknown\n"
    Mar 10 11:39:14 master0 agent-register-cluster[8804]: time="2025-03-10T11:39:14Z" level=fatal msg="Failed to register cluster with assisted-service: command 'oc adm release info -o template --template '{{.metadata.version}}' --insecure=true --icsp-file=/tmp/icsp-file1210812486 mirror.example.com:8443/openshift/release-images@sha256:5b71d2917773c2fddcd0415fbc96457188df2ba87d71680330aa4cb96f4501b5 --registry-config=/tmp/registry-config782683582' exited with non-zero exit code 1: \nFlag --icsp-file has been deprecated, support for it will be removed in a future release. Use --idms-file instead.\nerror: image \"mirror.example.com:8443/openshift/release-images@sha256:5b71d2917773c2fddcd0415fbc96457188df2ba87d71680330aa4cb96f4501b5\" not found: manifest unknown: manifest unknown\n"
    
  • The required configuration values for disconnected installation, such as pullSecret, additionalTrustBundle, and imageDigestSources, are correctly set in install-config.yaml.

  • The installation succeeds when these settings are removed and a connected environment is used.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Agent-Based Installer (ABI)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content