rajini_saini
Contributor
Contributor

Telco Cloud Automation - CaaS Infrastructure - Management K8s cluster deployment Failing at 20%

First Try: I checked ping between TCA and vCenter it is running ok.
I am trying to deploy Management K8s cluster from TCA, but it fails with the below error:

[cluster control plane is still being initialized: WaitingForControlPlane, cluster infrastructure is still being provisioned: WaitingForControlPlane], retrying
cluster state is unchanged 4
[cluster control plane is still being initialized: WaitingForControlPlane, cluster infrastructure is still being provisioned: WaitingForControlPlane], retrying
cluster creation failed, reason:'VCenterUnreachable', message:'Post "https://vCenterIP/sdk": context deadline exceeded'

Failure while deploying management cluster, Here are some steps to investigate the cause:
Debug:
kubectl get po,deploy,cluster,kubeadmcontrolplane,machine,machinedeployment -A --kubeconfig /root/.kube-tkg/tmp/config_5ymkJdrG
kubectl logs deployment.apps/<deployment-name> -n <deployment-namespace> manager --kubeconfig /root/.kube-tkg/tmp/config_5ymkJdrG

To clean up the resources created by the management cluster:
tanzu management-cluster delete
Error: unable to set up management cluster: unable to wait for cluster and get the cluster kubeconfig: error waiting for cluster to be provisioned (this may take a few minutes): cluster creation failed, reason:'VCenterUnreachable', message:'Post "https://vCenterIP/sdk": context deadline exceeded'

Second Try:
Bootstrapper created. Kubeconfig: /root/.kube-tkg/tmp/config_u075DfI0
Installing providers on bootstrapper...
Fetching providers
Installing cert-manager Version="v1.5.3"
Waiting for cert-manager to be available...
Deleting kind cluster: tkg-kind-ccg60bhk2rlutklfqrg0
Error: unable to set up management cluster: unable to initialize providers: timed out waiting for the condition, this can be possible because of the outbound connectivity issue. Please check deployed nodes for outbound connectivity.
Usage:
tanzu management-cluster create [flags]

Please share if you came across the same issue or any solution to this, Thank you.


Tags (1)
0 Kudos
4 Replies
vsaravanan1
VMware Employee
VMware Employee

Hi Rajini,

Can you please check if the assigned cluster VIP is allowed to reach from outside, also check the "port_group" configuration that you used for this deployment. The log looks like it is related to network issue specific to VIP.

0 Kudos
rakeshr2
VMware Employee
VMware Employee

Hi Rajini, Can you please provide TCA & Vsphere version that you are using.

0 Kudos
rajini_saini
Contributor
Contributor

Thank you for your response.
TCA version: 2.1.0-20268301
vCenter version: 7.0 20150588
TKG: 1.5.4

@rakeshr2

0 Kudos
rajini_saini
Contributor
Contributor

@vsaravanan1  Thank you for your response.
I'm using a non-DHCP IP, using the management vDS port group and during the mgmt cluster deployment also provided the HTTP and HTTPS proxy, but it still fails to deploy saying - 

Error: unable to set up management cluster: unable to initialize providers: timed out waiting for the condition, this can be possible because of the outbound connectivity issue. Please check deployed nodes for outbound connectivity.

0 Kudos