The following pods are in 'CrashLoopBackoff' status: ccs-avi-eas-app , ccs-nsx-eas-app , tango-uber-service-aap with errors about PostgreSQL DB certificates:
kubectl -n prelude logs ccs-avi-eas-app-6875d56d89-h5rrb --previous --tail=60E1110 <timestamp> 1 relational_database.go:56] [vcfapostgres.prelude.svc.cluster.local] Failed to ping DB. Error: tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time <timestamp> is after <timestamp>E1110 <timestamp> 1 run.go:72] "command failed" err="failed to ping DB"
kubectl -n prelude logs ccs-nsx-eas-app-7df7f6f694-j9xfvI1111 <timestamp> 1 app.go:197] "Database persistence is enabled"E1111 <timestamp> 1 run.go:74] "command failed" err="tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time <timestamp> is after <timestamp>"
kubectl -n prelude logs resource-manager-server-7689c575c8-lkvb5
time="<timestamp>" level=error msg="failed to call EBS API to create runnable type: Post \"https://ebs-service.prelude.svc.cluster.local:4242/event-broker/api/runnable/types\": dial tcp #.#.#.#:4242: connect: connection refused" operation=CreateRunnableTypetime="<timestamp>" level=warning msg="[core] Channel #1 SubChannel #2 grpc: addrConn.createTransport failed to connect to {Addr: \"resource-manager-grpc:443\", ServerName: \"resource-manager-grpc:443\", }. Err: connection error: desc = \"transport: Error while dialing: dial tcp #.#.#.#:443: connect: connection refused\"" subcomponent=grpc-runtime
kubectl -n prelude get certificaterequest -l velero.io/restore-name=vcfa-restore-phase6
READY = False meaning the certs are expired:kubectl -n prelude get certificatesVCF Automation 9.0.x
VCF Automation 9.1.0.x before EP 2
Due to an issue affecting versions earlier than 9.1.0.0200, backups restored from these earlier versions contain certificate requests from "velero.io" in contrast to the standard certificate requests from "cert-manager".
When cert-manager attempts to renew the certificates, it encounters these unexpected certificate requests and fails.
The issue is resolved in VCFA 9.1.0.0200 or greater.
Do not restore SFTP backups from versions older than VCFA 9.1.0.0200, or you will need to run the resolution below.
To resolve the issue, we remove all of the velero.io certificates:
kubectl delete certificaterequest -n prelude -l velero.io/restore-name=vcfa-restore-phase6
This is safe to run in all cases, as we don't want these cert requests to exist.