VCF Automation 9.1 to 9.1.1 Upgrade failed during step "Perform Component Upgrade"
search cancel

VCF Automation 9.1 to 9.1.1 Upgrade failed during step "Perform Component Upgrade"

book

Article ID: 456307

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

  • Reviewing the previous Subtask "Perform Component Upgrade" shows "Database backup failed for component vcfa. Please retry the operation or contact support if the issue persists."

  • reviewing running pods on VCF Automation appliance on prelude namespace 'kubectl -n prelude get pods' shows a failed pod called "vcfa-upgrade-91-patch-pre-postgres-cert-clientauth-#####-execute-script-#########" reviewing the logs ('kubectl -n prelude logs vcfa-upgrade-91-patch-pre-postgres-cert-clientauth-#####-execute-script-#########') shows: 

    Waiting for cert-manager to regenerate secret vcfapostgres-postgres-cert-secret after adding 'client auth' to vcfapostgres-postgres-cert (resourceVersion=########, expecting it to change from ########)
  •  describing the certificate, command: kubectl -n prelude describe certificate vcfapostgres-postgres-cert shows the following Event:

    Type Reason Age From Message
    ---- ------ ---- ---- -------
    Warning RequestFailed 3m8s (x2605 over 21h) cert-manager-certificates-request-manager Failed to create CertificateRequest: certificaterequests.cert-manager.io "vcfapostgres-postgres-cert-2" already exists

Environment

VCF Automation 9.1.1

Cause

The upgrade was blocked because the required PostgreSQL (PG) backup failed due to a certificate validation error, which is a known issue stemming from pending certificates in previous releases.

Resolution

The issue is resolved in the future release. Subscribe to the KB for updates.

Workaround:

  1. Export certificate request using command:
    kubectl -n prelude get certificaterequests/vcfapostgres-postgres-cert-2 -o yaml > vcfapostgres-postgres-cert-2.yaml
  2. Delete certificate request, using command: 
    kubectl -n prelude delete certificaterequests/vcfapostgres-postgres-cert-2
  3. Retry the Upgrade