Pods failing to pull images from harbor registry with "HTTP 401 Unauthorized Error"
search cancel

Pods failing to pull images from harbor registry with "HTTP 401 Unauthorized Error"

book

Article ID: 437700

calendar_today

Updated On:

Products

VMware Telco Cloud Automation VMware Telco Cloud Platform

Issue/Introduction

Pods are failing to start and remain in an error state because the system is unable to pull images from the Harbor registry.

The specific error reported is an HTTP 401 Unauthorized response, despite the image path and credentials appearing correct. Pods consistently report an "error 401 unauthorized" during the image pull process.

Environment

TCA build : 2.3, 3.2, 3.3

TCP : 3.0, 4.0, 5.0.1

Cause

A configuration omission exists within the TCA Manager Partner Systems registry configuration. Because Harbor is operating as a private registry, the integration requires explicit port designation for secure communication. The Harbor URL was registered in the partner system without appending port 443 (e.g., configured as https://example.com, causing the cluster to fail secure authentication handshakes.

Resolution

Workaround 1:

  1. Access the TCA Manager interface.

  2. Navigate to the Partner Systems configuration section.

  3. Locate the Harbor registry registration entry.

  4. Update the Harbor URL to explicitly include the :443 port designation at the end of the address (e.g., modify https://example.com to https://example.com:443).

  5. Save the configuration and verify the connection to ensure the cluster can authenticate and execute image pulls.


Note: In case if the harbor url is greyed out in TCA UI and its not possible to edit the harbor url link then follow the steps in Workaround 2 

Workaround 2:

  1. Add another Harbor registry with the same url with port 443  e.g. (https://example.com:443)
  2. Give it different name to what is already set
  3. Add this new harbor to the problematic cluster
  4. Reconfigure the CNF to use this new harbor
  5. Remove the previous harbor from the cluster (optional)

Permanent Resolution:

Upgrade to TCA 3.4.0.1 as the enhancement that automates this port appending is included in TCA 3.4.0.1 release.