In Cross vCenter HCI Mesh feature, we introduce a tool '/usr/lib/vmware-vpx/vsan-health/bin/CleanStaleInfoFromServer.sh' on vCenter. It can help clean up the stale client information on the vCenter when it is used as a server vCenter, which has server datastores mounted by some client clusters on client vCenters. when the client vCenter fades unexpectedly and is implacable.
Symptoms:
The server vCenter's stale information clean tool '/usr/lib/vmware-vpx/vsan-health/bin/CleanStaleInfoFromServer.sh' which bundled in the 80u1 product, provides the function list cluster, list vCenter, delete cluster and delete vCenter. But this tool bundled in the 80u1 product, the function of listing cluster and listing vCenter works well. But for the function delete cluster and delete vCenter, it will throw some certificate issues.
The failed logs are as following:
Exceptions:
2023-01-09T11:50:41.216Z [ERROR vsanXvcLib.py::RunCreateDatastoreSource::167::MainThread] CreateDatastoreSource for ##.##.##.##: Got SSL verify fault: -----BEGIN CERTIFICATE-----
....
....
?-----END CERTIFICATE-----
Traceback (most recent call last):
File "/tmp/test-vpx_20230109-2534-1rerzmp/test-vpx-code/bora/vpx/tests/vsan/xvchcimesh/vsanXvcLib.py", line 163, in RunCreateDatastoreSource
vcInfo=tmpVcInfo))
File "/tmp/tmpwukg8ksc.test-vpx/pyVpx/pyVmomi/VmomiSupport.py", line 598, in <lambda>
self.f(*(self.args + (obj,) + args), **kwargs)
File "/tmp/tmpwukg8ksc.test-vpx/pyVpx/pyVmomi/VmomiSupport.py", line 388, in _InvokeMethod
return self._stub.InvokeMethod(self, info, args)
File "/tmp/tmpwukg8ksc.test-vpx/pyVpx/pyVmomi/SoapAdapter.py", line 1575, in InvokeMethod
raise obj # pylint: disable-msg=E0702
pyVmomi.VmomiSupport.vim.fault.VsanSslVerifyCertFault: (vim.fault.VsanSslVerifyCertFault) {...}
As this is a tool the user use directly, so when the user run this tool, this error message will show in the screen directly.