TKGI 1.9+
If you have a TKGI cluster where the certificate rotation has failed (tkgi rotate-certificates), you should finish the certificate rotation on this specific TKGI cluster by re-running tkgi rotate-certificates command until it successfully completes.
export BOSH_CLIENT=ops_manager BOSH_CLIENT_SECRET=<secret>
export BOSH_CA_CERT=/var/tempest/workspaces/default/root_ca_certificate BOSH_ENVIRONMENT=<IP>
export CREDHUB_SERVER="$BOSH_ENVIRONMENT:8844" CREDHUB_CLIENT="$BOSH_CLIENT"
export CREDHUB_SECRET="$BOSH_CLIENT_SECRET" CREDHUB_CA_CERT="$BOSH_CA_CERT"
credhub api https://$BOSH_ENVIRONMENT:8844 --ca-cert=/var/tempest/workspaces/default/root_ca_certificate
credhub login
maestro --json topology --name /p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert | jq '.topology[].signs[] | "\(.name) \(.versions[].deployment_names)"' | grep monitoring-metric-cert
"/p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert [\"service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf\"]"
maestro --json topology --name /p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert | jq '.topology[].signs[] | "\(.name) \(.versions[].valid_until)"' | grep monitoring-metric-cert
"/p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert 2028-07-24T17:50:25Z"
/p-bosh/service-instance_<CLUSTER_ID>/monitoring-metric-cert
for all clusters for use in later commands# maestro regenerate leaf --name /p-bosh/service-instance_<CLUSTER_ID>/monitoring-metric-cert
tkgi upgrade-cluster <CLUSTER_NAME>
Note: You will now see a second certificate in both commands
maestro --json topology --name /p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert | jq '.topology[].signs[] | "\(.name) \(.versions[].deployment_names)"' | grep monitoring-metric-cert
"/p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert [\"service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf\"]"
"/p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert []"
maestro --json topology --name /p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert | jq '.topology[].signs[] | "\(.name) \(.versions[].valid_until)"' | grep monitoring-metric-cert
"/p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert 2028-08-06T20:23:28Z"
"/p-bosh/service-instance_925546b2-fc8a-983n-gok9-3051d99eefcf/monitoring-metric-cert 2028-07-24T17:50:25Z"