The Fleet lifecycle component is not progressing through the upgrade process - VCF 9.1.0
search cancel

The Fleet lifecycle component is not progressing through the upgrade process - VCF 9.1.0

book

Article ID: 459289

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • An upgrade of the Fleet lifecycle component from 9.1.0 to 9.1.1 has been started, but is not progressing.
  • On the VCF Operations UI > Build >Lifecycle > VCF Management > Upgrade page the upgrade shows as "Upgrade in progress".
  • When clicking on Upgrade details, which opens the Tasks page:
    • The Task Status is show as Pending.
    • The Last updated and Start time are identical.
    • There are no subtasks listed. Subtasks would be expected to be listed if the upgrade was properly in progress.
  • It has been confirmed (using steps 1 to 3 from this article) on the VSP Control plane node that:
    • the vcf-sddc-lcm pods vcf-sddc-upgrade-service-sddcupgrade and vcf-sddc-build-service-sddcbuild are in a CrashLoopBackOff status, when a Running status is expected.
    • the vcf-sddc-lcm pod vcf-sddc-lcm-db is a single one, when three are expected.
  • When run on the VSP Control plane node, the command 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 UTC
YYYY-MM-DD_hh:mm:ss_UTC rc: start ####.history
ERROR: 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 ####.history
ERROR: 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 mode
YYYY-MM-DD_hh:mm:ss_UTC rc: start ####.history
ERROR: 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 record
YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 4PANIC: could not locate a valid checkpoint record
YYYY-MM-DD hh:mm:ss,sss INFO: establishing a new patroni heartbeat connection to postgres
YYYY-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 up
YYYY-MM-DD hh:mm:ss.sss INFO: establishing a new patroni heartbeat connection to postgres
YYYY-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 up
YYYY-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 up
YYYY-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 up
YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 7LOG: startup process (PID ####) was terminated by signal 6: Aborted
YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 8LOG: aborting startup due to startup process failure
YYYY-MM-DD hh:mm:ss.sss UTC ####.#### # #### 9LOG: database system is shut down

Environment

VCF 9.1.0

Cause

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.

Resolution

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