VCF Operations UI > Build >Lifecycle > VCF Management > Upgrade page the upgrade shows as "Upgrade in progress".Upgrade details, which opens the Tasks page:Task Status is show as Pending.Last updated and Start time are identical.kubectl logs -n vcf-sddc-lcm vcf-sddc-lcm-db-0 returns logging including the error below:YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 1LOG: database system was shut down in recovery at YYYY-MM-DD hh:mm:ss UTCYYYY-MM-DD_hh:mm:ss_UTC rc: start ####.historyERROR: YYYY/MM/DD hh:mm:ss.ssssss Archive '####.history' does not exist.YYYY-MM-DD_hh:mm:ss_UTC rc: fetch-fail ####.history rc=?YYYY-MM-DD_hh:mm:ss_UTC rc: start ####.historyERROR: YYYY/MM/DD hh:mm:ss.ssssss Archive '####.history' does not exist.YYYY-MM-DD_hh:mm:ss_UTC rc: fetch-fail ####.history rc=?YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 2LOG: entering standby modeYYYY-MM-DD_hh:mm:ss_UTC rc: start ####.historyERROR: YYYY/MM/DD hh:mm:ss.ssssss Archive '####.history' does not exist.YYYY-MM-DD_hh:mm:ss_UTC rc: fetch-fail ####.history rc=?YYYY-MM-DD_hh:mm:ss_UTC rc: start ####ERROR: YYYY/MM/DD hh:mm:ss.ssssss Archive '####' does not exist.YYYY-MM-DD_hh:mm:ss_UTC rc: fetch-fail #### rc=?YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 3LOG: invalid resource manager ID in checkpoint recordYYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 4PANIC: could not locate a valid checkpoint recordYYYY-MM-DD hh:mm:ss,sss INFO: establishing a new patroni heartbeat connection to postgresYYYY-MM-DD hh:mm:ss.sss UTC ####.#### # [unknown] [unknown] [local] #### 1LOG: connection received: host=[local]YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # postgres postgres [local] #### 2FATAL: the database system is starting upYYYY-MM-DD hh:mm:ss.sss INFO: establishing a new patroni heartbeat connection to postgresYYYY-MM-DD hh:mm:ss.sss UTC ####.#### # [unknown] [unknown] [local] #### 1LOG: connection received: host=[local]YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # postgres postgres [local] #### 2FATAL: the database system is starting upYYYY-MM-DD hh:mm:ss.sss UTC ####.#### # [unknown] [unknown] ::1(####) #### 1LOG: connection received: host=::1 port=(####)YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # postgres postgres ::1(####) #### 2FATAL: the database system is starting upYYYY-MM-DD hh:mm:ss.sss UTC ####.#### # [unknown] [unknown] ::1(####) #### 1LOG: connection received: host=::1 port=(####)YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # postgres postgres ::1(####) #### 2FATAL: the database system is starting upYYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 7LOG: startup process (PID ####) was terminated by signal 6: AbortedYYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 8LOG: aborting startup due to startup process failureYYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 9LOG: database system is shut down
VCF 9.1.0
The pod management policy of Postgres had changed from OrderedReady to Parallel, potentially as a result of an ungraceful shutdown of components in the environment.
Implement these steps to resolve the issue:
1. Open an SSH session to the VSP Control plane node and log in as vmware-system-user. Elevate user permission : sudo su
2. Export the KUBECONFIG:
export KUBECONFIG=/etc/kubernetes/admin.conf
3. Confirm PostgreSQL services are reported as 2/3 healthy, but no primary node is elected:
kubectl exec -it -n vcf-sddc-lcm vcf-sddc-lcm-db-0 – patronictl list
4. Modify the Pod management policy and save the updated configuration file, changing OrderedReady to Parallel allows the database pods to spin up or restart faster without getting blocked by an ordered startup lock:
kubectl get sts -n vcf-sddc-lcm vcf-sddc-lcm-db -oyaml | sed 's/OrderedReady/Parallel/' > updated-sts.yaml
5. Forcibly delete and recreate the vcf-sddc-lcm-db StatefulSet using the updated YAML configuration, without shutting down or deleting the running database pods:
kubectl replace --force --cascade=orphan -n vcf-sddc-lcm -f updated-sts.yaml
6. Trigger a zero-downtime rolling restart of the SDDC Manager upgrade service:
kubectl rollout restart deployment -n vcf-sddc-lcm vcf-sddc-upgrade-service-sddcupgrade
7. List and monitor Argo Workflows across every namespace in the Kubernetes cluster in continuous watch mode:
kubectl get workflows -Aw
8. Confirm in the VCF Operations UI > Build > Lifecycle > VCF Management > Tasks page that now there are subtasks where there were none before.
9. If the workflow fails subsequently with the error below, restart the task and on the subsequent run the workflow is expected to complete successfully and the Fleet lifecycle component will be upgraded from 9.1.0 to 9.1.1