Running OpenShift networkcheck Diagnostics with Images from Satellite Results in Error "error: --deployment or OPENSHIFT_DEPLOYMENT_NAME is required"

Solution Verified - Updated -

Issue

Running oc adm diagnostics networkcheck results in the following error if the --test-pod-image parameter points to an on-prem/disconnected container image registry (such as a Satellite):

ERROR: [DNet2005 from diagnostic NetworkCheck@openshift/origin/pkg/oc/admin/diagnostics/diagnostics/cluster/network/run_pod.go:170]
       Setting up test environment for network diagnostics failed: Failed to run network diags test pod and service: Failed to run network diags test pods, failed: 7, total: 12, details: error: --deployment or OPENSHIFT_DEPLOYMENT_NAME is required

However, if --test-pod-image points to registry.access.redhat.com or registry.redhat.io, pods start normally and diagnostics tests are able to run.

Environment

Red Hat OpenShift Container Platform

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