TKG cluster deployment from VMware Container Service Extension in an air-gapped environment fails with "scriptexecutionerror"
search cancel

TKG cluster deployment from VMware Container Service Extension in an air-gapped environment fails with "scriptexecutionerror"

book

Article ID: 446625

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Deploying the VMware Cloud Director Container Service Extension (CSE) in an air-gapped environment, fails with "scriptexecutionerror".
In the VMware Cloud Director Events, the failure is accompanied by a "Error" for the task "scriptexecutionerror"




The Ephemeral VM logs located at /var/log/cloud-final.err, the following error is observed indicating a failure to find the required image:

ping next host - response was http.StatusNotFound" host=<Harbor Registry FQDN>
failed to resolve reference "<Harbor Registry FQDN>/vmware-cloud-director/kind-airgapped:v#.##.#": <Harbor Registry FQDN>/vmware-cloud-director/kind-airgapped:v#.##.#:not found

Environment

Container Service Extension 4.2.X
VMware Cloud Director 10.6.X

Cause

The VMware Tanzu Kubernetes Grid (TKG) image uploaded to the local Harbor registry is not compatible with the installed version of Container Service Extension (4.2.x).
Because the required image version is missing, the ephemeral VM cannot pull the necessary files to complete the deployment.

Resolution

  • Review the respective VMware Cloud Director Container Service Extension Release Notes for your specific CSE version to identify the exact compatible TKG versions required.
  • Download the supported TKG Version VM OVAs. 
  • Upload and push the compatible TKG VM OVA files to the respective "Published" Catalog for the Tenant and the Container Images to the Local Harbor registry.
  • Retry the CSE deployment.

    Note: In an air-gapped environment, the local container registry (e.g., Harbor) is deployed and managed directly by the customer.

Additional Information

For more information on setting up local regiary in Air gapped Environment refer document below: 
Set up a Local Container Registry in an Airgapped Environment

Release Notes for CSE 4.2.4(Note: As of version 4.2.4, TKG 2.5.4 is the supported version): 
VMware Cloud Director Container Service Extension 4.2.4 Release Notes