This article provides the steps to work around this issue in TCA 2.0The workaround is to address the incorrect cluster status within the stretched cluster, by removing and remediating the cluster status, before importing the cluster and/or associated nodepools to TCA . Symptoms:
When a cluster custom resource (CR) reports a status of "WaitingForRemidiation", the cluster and/or all associated node pools cannot be imported to Telco Cloud Automation (TCA) using tcactl.See below sample CR:
status:
conditions:
- lastTransitionTime: "2022-05-07T18:58:28Z"
reason: WaitingForRemediation @ Machine/<node_name>
severity: Warning
status: "False"
type: Ready
Operations to instantiate CNF’s using TCA will fail when the cluster is in this state.
Check cluster CR status:1) SSH to the control plane node of the management cluster corresponding to the stretched cluster where problem is observed.2) Verify the cluster CR status: kubectl get tcakubernetesclusters -n <cluster_name> <cluster_name> -o yaml
The status of ready condition for a problematic cluster will be as shown below:
status:
conditions:
- lastTransitionTime: "2022-05-07T18:58:28Z"
reason: WaitingForRemediation @ Machine/<cluster_node_name>
severity: Warning
status: "False"
type: Ready
- lastTransitionTime: "2022-05-07T18:58:28Z"
reason: WaitingForRemediation @ Machine/<cluster_node_name>
severity: Warning
status: "False"
type: ControlPlaneReady
3) Verify the kcp status:kubectl get kcp -n <cluster_name> <cluster_node_name> -o yaml.
status:
conditions:
- lastTransitionTime: "2022-05-07T18:58:28Z"
reason: WaitingForRemediation @ Machine/<cluster_node_name>
severity: Warning
status: "False"
type: Ready
- lastTransitionTime: "2022-05-07T18:58:28Z"
reason: WaitingForRemediation @ Machine/<cluster_node_name>
severity: Warning
status: "False"
type: MachinesReady
4) Verify machine status:kubectl get machines -n <cluster_name> <cluster_node_name> -o yaml
conditions:
- lastTransitionTime: "2022-05-07T18:58:26Z"
reason: WaitingForRemediation
severity: Warning
status: "False"
type: Ready
- lastTransitionTime: "2022-05-07T18:57:59Z"
reason: WaitingForRemediation
severity: Warning
status: "False"
type: OwnerRemediated
Do not proceed with the work around steps if these conditions are not present as shown above.