Importing a VM image from the internal Openshift registry fails with "unauthorized: authentication required"

Solution Verified - Updated -

Issue

  • We have created a DataVolume to import a VM image from the internal Openshift image registry.
  • The secret is available in the same namespace as specified by the documentation.
  • The import fails with the error:
I0620 13:53:41.688336       1 transport.go:173] Downloading image from 'docker://image-registry.openshift-image-registry.svc.cluster.local:5000/library/fedora36:latest', copying file from 'disk' to '/scratch'
E0620 13:53:41.721552       1 transport.go:75] Could not create image reference: Error reading manifest latest in image-registry.openshift-image-registry.svc.cluster.local:5000/library/fedora36: unauthorized: authentication required
E0620 13:53:41.721577       1 data-processor.go:228] unauthorized: authentication required

Environment

  • OpenShift Container Platform (OCP) 4.9.37
  • OpenShift Virtualization 4.9.4
  • OpenShift image registry

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