VMware Cloud Foundation (VCF) Fleet Lifecycle 9.1
VCF Network Insight 9.0.2
To resolve this issue, you must log into the VCF Services Runtime appliance to generate a VSP access token, extract the active certificate, and execute an API refresh task to sync the truststores across the Fleet Lifecycle environment.
Log into the command line of the VCF Services Runtime appliance node.
Initialize the Kubernetes environment configuration context:
cat /etc/kubernetes/admin.conf
export KUBECONFIG=/etc/kubernetes/admin.conf
Extract and pull the newly updated certificate chain from your component by executing the following command:
echo | openssl s_client -connect <COMPONENT-FQDN>:443 -showcerts 2>/dev/null | sed -n '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/p' > <COMPONENT-FQDN>.pem
Run the following API call to generate your authenticated VSP access token:
export VSP_TOKEN=$(curl -ks --request POST \
--url "https://${VSP_API_SERVER}/api/v1/identity/token" \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=password \
--data "[email protected]" \
--data "password=${VSP_PASSWORD}" \
| jq -r '.access_token')
Verify that the token string successfully populated and is not empty or null:
echo $VSP_TOKEN
Review the full process context for out-of-band workflows if necessary via the internal technical guide: Update certificate in FLEET SDDC LCM after OOB cert refresh.
Issue the following tracking task request to push the runtime truststore data directly into the SDDC and Lifecycle controllers:
curl -k -X POST --url "https://${INSTANCE_FQDN}/sddc-lcm/v1/components/{componentId}?action=refresh" \
-H "Authorization: Bearer $VSP_TOKEN" \
-H "Content-Type: application/json"
Retrying the upgrade sequence through the Fleet Lifecycle dashboard should now proceed without encountering trust errors.