Error "Failed kubelet Failed to pull image "<Harbor URL>:443/" observed during Pod failure.
search cancel

Error "Failed kubelet Failed to pull image "<Harbor URL>:443/" observed during Pod failure.

book

Article ID: 437334

calendar_today

Updated On:

Products

VMware Telco Cloud Platform VMware Telco Cloud Automation VMware Tanzu Kubernetes Grid

Issue/Introduction

  • After performing any Day 2 lifecycle operation (e.g., parameter modification, resource update) via VMware Telco Cloud Automation (TCA), Cloud Native Network Function (CNF) pre-upgrade or installation Helm hook pods fail to initialize.
  • The pods stall in an ImagePullBackOff or ErrImagePull state.


Environment

TCA  - 3.3.0.1
TKG  - 2.5.2
TCP 5.0.1

 

Cause

  • The harbor URL used by the pods to pull the image is not correct.
  • The Harbor URL used during Day 0 configuration has been changed directly from the TKG layer and not from TCA. 
  • This does not update the correct harbor URL in the TCA Database. 
  • When a Day 2 operation is initiated, the TCA recalculates the entire Kubernetes workload state utilizing this stale internal cache.
  • It overrides the correct URL displayed in the TCA UI, injecting the legacy URL into the newly rendered Helm release, which forces the workload cluster to dial an unreachable repository.

Resolution

Perform a reconciliation of the CNF with the correct correct harbor URL using the Day 0 file. 

  1. Verify the harbor repository in the helm release and confirm the harbor URL is not correct

    helm ls -n name space
    helm get values <release name> -n namespace 

  2. Identify the failed stale jobs and delete them

    kubectl get jobs -n <namespace>
    kubectl delete job <stale job name> -n <namespace>

  3. Delete Orphaned Pods (If Applicable):

    kubectl delete pod <pod name> -n namespace

  4. Navigate to the VMware Telco Cloud Automation (TCA) UI -> Network Functions -> Inventory.

  5. Select the target CNF.

  6. Under the Parameters tab, extract the current Values File (and Additional Values file if populated) to a local text editor.

  7. Locate the registry URL definition within the extracted YAML file (e.g., global.registry.url).

  8. Replace the legacy Harbor URL with the new target URL.

  9. Save the modified file locally as the new Day 0 instantiation profile.

  10. In the TCA UI, select Operate -> Reconfigure for the target CNF.

  11. When prompted for the input parameters or Day 0 file, upload the modified YAML profile created.

  12. Verify the Default Repository field within the wizard correctly reflects the new URL.

  13. Complete the wizard to initiate the state reconciliation. The TCA orchestrator will render the updated Helm manifests and push them to the Tanzu Kubernetes Grid (TKG) workload cluster, updating its internal database simultaneously.

  14. Monitor the target namespace to confirm the new configuration is actively pulling from the updated registry without timeouts:

    kubectl get pods -n <TARGET_NAMESPACE> -w
    kubectl describe pod <NEW_POD_NAME> -n <TARGET_NAMESPACE> | grep -i "Image:"