VCF Operations upgrade fails during Log Management component upgrade with error: "The backup of component Operations Logs is failing due to API error"
search cancel

VCF Operations upgrade fails during Log Management component upgrade with error: "The backup of component Operations Logs is failing due to API error"

book

Article ID: 462639

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • During a VCF Operations upgrade workflow, the task fails at the Perform Log management upgrade stage.
  • The upgrade workflow displays one or more of the following error messages in the UI.
    Backup workflow failed for component: ops-logs
    The backup of component Operations Logs is failing due to API error. Check all Log Processor nodes are healthy
    Step vmsp_upgrade failed. Reference Code: 01D85155. Check logs for details.


  • On the VCF Services Runtime node, inspect the service log directories under /services-logs/ alongside kubectl pod:
    /services-logs/ops-logs/<VCFMS_Node_Name>/log-processor-0/vcf-ops-logs/console.log

    Verify pod status: /usr/local/bin/kubectl get pods -n ops-logs

Environment

VCF Log Management 9.1.x

Cause

The log-processor-0 pod is not fully healthy (1/2 containers ready), causing the pre-upgrade backup API call for the ops-logs component to fail and halting the upgrade workflow.

Resolution

To resolve the issue, restart the Log Management service to restore pod health, validate the backup pipeline, and retry the upgrade workflow:

Stop and Start the Log Management Service

  1. Log in to VCF Operations and navigate to Build > Lifecycle > VCF Management > Components.

  2. Select Log Management and click Actions > Stop service. 

  3. Once the service has stopped, click Actions > Start service.

  4. Establish an SSH Connection to a VCF Services Runtime Instance

  5. Using the following command, watch the log-processor-N and log-store-N pods are all READY and in a Running STATUS:
    kubectl get pods -n ops-logs -w

Validate Backup Functionality

  1. In VCF Operations, navigate to Build > Lifecycle > VCF Management > Backup & Restore.

  2. Select Log Management and click Backup Now to trigger an on-demand backup and confirm the API error is resolved.

  3. Verify the backup finishes cleanly. (If the backup continues to fail with OpenSearch repository_exception errors on backup-repo, Open a Broadcom support case referencing this KB article 451946 for details of the workaround.)

  4. Navigate back to the failed Log management Upgrade Workflow task in VCF Operations and click RETRY.

Additional Information

Error: "The backup of component Operations Logs is failing due to API error"

Backup job fails with "backup-repo could not read repository data" due to corrupted backup repository (S3 bucket)