After upgrade from TMC SM 1.4.2.1 to 1.4.3 images are not pushed to the Supervisor and Workload clusters which leads to auto attach issues.
search cancel

After upgrade from TMC SM 1.4.2.1 to 1.4.3 images are not pushed to the Supervisor and Workload clusters which leads to auto attach issues.

book

Article ID: 435318

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

On TMC SM version 1.4.3, Pods in the Supervisor's TMC SM namespace show with ImagePullBackOff.

kubectl get pods -n svc-tmc-c####

## output example 

NAME                                         READY   STATUS             RESTARTS       AGE
agent-updater-##########-#####               0/1     ImagePullBackOff   0              41h
agent-updater-##########-#####               1/1     Running            1 (42h ago)    55d
agentupdater-workload-########-#####         0/1     Completed          0              51s
cluster-health-extension-##########-#####    0/1     ImagePullBackOff   0              41h
cluster-health-extension-#########-#####     1/1     Running            0              42h
domain-local-ds-5fzmn                        1/1     Running            1 (183d ago)   187d
domain-local-ds-grw4c                        1/1     Running            1 (51d ago)    187d
domain-local-ds-zsbl7                        1/1     Running            0              187d
extension-manager-##########-#####           0/1     ImagePullBackOff   0              41h
extension-manager-##########-#####           1/1     Running            1 (42h ago)    162d
extension-updater-##########-#####           0/1     ImagePullBackOff   0              41h
extension-updater-##########-#####           1/1     Running            0              42h
intent-agent-##########-#####                1/1     Running            0              42h
intent-agent-##########-#####                0/1     ImagePullBackOff   0              41h
sync-agent-##########-#####                  0/1     ImagePullBackOff   0              41h
tmc-agent-installer-########-#####           0/1     Completed          0              51s
tmc-auto-attach-##########-#####             0/1     ImagePullBackOff   0              41h
tmc-auto-attach-##########-#####             1/1     Running            9 (21m ago)    2d14h
vsphere-resource-retriever-#########-#####   1/1     Running            0              42h
vsphere-resource-retriever-#########-#####    0/1     ImagePullBackOff   0              41h


When checking the pod's yaml in the Supervisor for the TMC SM and using grep for the word 'harbor' showed images on harbor FQDN for differing versions of tmc

kubectl get pods -n svc-tmc-c#### -o yaml | grep harbor

## output example

image: harbor.fqdn.domain.com/tmc-1-4-2-x/tap-tmc-docker-virtual.usw1.packages.broadcom.com/extensions/agent-updater/agent-updater@sha256:################################################################
    - image: harbor.fqdn.domain.com/tmc-1-4-2-x/tap-tmc-docker-virtual.usw1.packages.broadcom.com/extensions/agent-updater/agent-updater@sha256:################################################################

 

Environment

TMC Self Managed 1.4.3

Cause

When checking TMC namespace's pod yamls for harbor using below command:

kubectl get pods -n vmware-system-tmc -o yaml | grep harbor


The output will show differing harbor instance versions.

This leads to checking the TMC SM databases, which showed version miss matches for TMC SM images.



The TMC SM databases extension_definition and lcp_extension tables had image_registry configured to incorrect habor FQDN ie 'harbor.fqdn.domain.com/tmc-1-4-2-x/tap-tmc-docker-virtual.usw1.packages.broadcom.com' and 'harbor.fqdn.domain.com/tmc-1-4-2-1/tap-tmc-docker-virtual.usw1.packages.broadcom.com'.

## SQL commands to check lcp_extension and extension_definition tables

select desired_version,lcp_name,image_registry from lcp_extension; 

select name,git_revision,image_name,image_registry from extension_definition;


Note the version TMC SM where should be tmc-1-4-3 you may see tmc-1-4-2-x and/or tmc-1-4-2-1 for example.


This issue was apparent in multiple regions in the environment where observed and had to be corrected via the TMC SM database as below using an UPDATE SQL commands in the TMC SM database for example as per below:

UPDATE lcp_extension SET image_registry= 'harbor.fqdn.domain.com/tac-1-4-3/tap-tac-docker-virtual.uskl.packages.broadcom.com'; 

UPDATE extension_definition SET image_registry='harbor.fqdn.domain.com/tmc-1-4-3/tap-tmc-docker-virtual.usw1.packages.broadcom.com' WHERE image_registry='harbor.fqdn.domain.com/tmc-1-4-2-x/tap-tmc-docker-virtual.usw1.packages.broadcom.com' OR image_registry='harbor.fqdn.domain.com/tmc-1-4-2-1/tap-tmc-docker-virtual.usw1.packages.broadcom.com';


Note: You must confirm the desired_version/git_revision of the agents, and only update the agents with expected version but incorrect image registry.

Use the below command to check the expected version in the configmap on the TMC SM cluster, e.g get the desired version of agent-updater

kubectl -n tmc-local get cm olympus-dyncfg -o yaml  | grep agent-updater

## output example

        olympus.eng.vmware.com/extensions/agent-updater: extensions/agent-updater/manifest:#################-########################################
        tmc.eng.vmware.com/extensions/mandatory/mgmt-tkgm/agent-updater: extensions/agent-updater/management/manifest:#################-########################################
        tmc.eng.vmware.com/mandatory-extensions/tkgs-supervisor-cluster/agent-updater: extensions/agent-updater/supervisor/manifest:#################-########################################

 

Resolution

Please log a case with Broadcom support.

For help creating a case, see How to open a case with Broadcom Support.