VCF operations log management installation fails due to database cluster state corruption
search cancel

VCF operations log management installation fails due to database cluster state corruption

book

Article ID: 461779

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

Symptoms:

  1. The Log Management component installation fails with the error: "Cannot read properties of null (reading 'message')"



  2. Database clusters (e.g., VIDB or vcf-fleet-lcm) operate in a Read-Only mode.

  3. Checking database health (using patronictl list) shows only one active leader node, with no running replicas.

Environment

VCF Operations: 9.1.1.0

Cause

The database cluster enters an inconsistent state, causing it to lock in read-only mode.

The cluster utilizes the default Kubernetes OrderedReady pod management policy. This forces replicas to start in a specific sequence (e.g., Pod-0 must initialize before Pod-1). Because the cluster is corrupt, Pod-0 cannot reach a ready state, which prevents the replicas (Pod-1, etc.) from starting.

Persistent Volumes (PVs) remain attached to nodes that are scheduled for removal but are stuck in a "deleting" state, which prevents proper resource cleanup and cluster re-initialization.

Resolution

Steps:

 

  1. Identify nodes that are scheduled for removal but are stuck in a deleting state.

  2. Force the deletion of these nodes using kubectl delete node <node-name> --grace-period=0 --force

  3. Update the database deployment's pod management policy from OrderedReady to Parallel. This bypasses the sequential startup dependency and prevents the deadlock.

    (Note: This configuration is included in the latest product releases).

  4. Execute the following command to reinitialize the Patroni cluster: patronictl reinit <cluster-name>

  5. Monitor the cluster using patronictl list to ensure all replicas transition to a healthy status.

  6. Confirm the database nodes are no longer in read-only mode.

  7. Verify that the VCF Operations UI loads correctly and that the Log Management installation completes without errors.