This topic documents steps for how to run diagnosis in TCA-CP VM via CCLI to do troubleshooting for cluster lifecycle and CNF customization for management cluster itself or workload clusters it managed.
Procedure
- Login to TCA-CP VM
$ ssh admin@<tca-cp-ip>
- Switch to root user
[admin@tca-cp-jlan ~]$ su - Password: [root@tca-cp-jlan ~]#
- Switch to management cluster or workload cluster context and run diagnosis
[root@tca-cp-jlan ~]# ccli **************************** Welcome to VMware Telco Cloud Automation Command Line Tool **************************** ccli>>list mc +-------+------+---------+--------------------------------------+--------------+----------+ | INDEX | NAME | CONTEXT | ID | CONNECTIVITY | SELECTED | +-------+------+---------+--------------------------------------+--------------+----------+ | 0 | mc2 | mc2 | 4e6a4247-99af-4525-9ff2-a2c11c8db802 | true | | | 1 | mc1 | mc1 | 325833b4-484b-47c6-bb1c-fc6c7a6d02b5 | true | | +-------+------+---------+--------------------------------------+--------------+----------+ ccli>>go 0 Active management cluster set to mc2 4e6a4247-99af-4525-9ff2-a2c11c8db802 CCLI@mc2>>show diagnosis ************************************************************************ WARNING: TCA diagnosis is a tech preview tool. The behavior might be changed in the future. ************************************************************************ running diagnosis on management cluster context - mc2 [INFO] Generate TcaTestSuites CR /tmp/all-cluster-diagnosis.yml successfully. [INFO] Start to install/upgrade test controller service... [INFO] Helm command result: Release "test-controller" does not exist. Installing it now. NAME: test-controller LAST DEPLOYED: Tue Nov 23 06:15:06 2021 NAMESPACE: tca-system STATUS: deployed REVISION: 1 TEST SUITE: None [INFO] Start to run test cases... tcatestsuite.testnf.telco.vmware.com/all-cluster-diagnosis created [INFO] TcaTestSuite all-cluster-diagnosis is IN_PROGRESS.... ...