Error: Cluster Creation Failed (OR) No Error, the task doesn't complete
+ echo 'Waiting for kubeconfig to be available...'
Waiting for kubeconfig to be available...
Error: "ClusterName-kubeconfig" not found in namespace "NamespaceName": secrets "<cluster_name>-kubeconfig" not found
Connecting to [VMware_Cloud_Director_URL]
failed to authenticate using refresh token
panic: error logging into VCD: [unable to get swagger client from secrets: [unable to get bearer token from secrets: [failed to set authorization header: [Post "<VMware_Cloud_Director_URL>": dial tcp xx.xx.xx.xx:xxx: connect: connection timed out]
[error occurred during the execution of cluster creation script for [<cluster-name>(urn:vcloud:entity:vmware:capvcdCluster:########-####-####-####-############)]: [error while bootstrapping the machine [<cluster-name>/EPHEMERAL-TEMP-VM]; timeout for post customization phase [guestinfo.cloudinit.target.cluster.get.kubeconfig.status]; this usually means that the Avi Load-Balancer is not getting created; check if virtual service for the cluster is created, if not, please check your Avi configuration]]
VMware Cloud Director Container Service Extension 4.x
VMware Cloud Director 10.5.x
This issue may be caused because of network connectivity problem between VMware Cloud Director(VCD) and CSE Server or even if there is network connectivity issue between Ephemeral VM, CSE Server and VCD.
Here is the sequence of steps to diagnose a network issue between VMware Cloud Director and the CSE Server:
Network > Edge gateway > Load Balancer > Virtual Services.curl -k -v https://<VCD_URL>/oauth/provider/tokencurl -k -v https://<VCD_URL>/oauth/providercurl -k -v https://<VCD_URL>curl -k -v https://<VCD_URL>/api/versionscurl -k -v https://<VCD_URL>/cloudapi/1.0.0/sessions