vApp backup operations report as successful despite VM(s) failures in VMware Cloud Director
search cancel

vApp backup operations report as successful despite VM(s) failures in VMware Cloud Director

book

Article ID: 440400

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

In VMware Cloud Director, vApp backup operations performed via the Data Protection Plugin may report a "Successful" task status in the UI, even when backups of individual member VMs fail. You may be looking to implement a custom task status (such as "SuccessWithExceptions") to indicate partial success for these operations.

Environment

  • VMware Cloud Director 10.6

  • Data Protection Plugin

Cause

This is an architectural limitation of the current VMware Cloud Director API and task framework, which does not natively possess a "partial success" or "success with exceptions" state. VMware Cloud Director does not support custom or extensible task status values. The task state machine is strictly restricted to the standard native values: queued, preRunning, running, success, error, canceled, and aborted.

Resolution

To address this limitation using the existing VMware Cloud Director framework, you can implement the following workarounds:

  1. Utilize the details field of the VCD task to populate a descriptive string indicating partial success (for example: "vApp Backup partially successful: 4/5 VMs completed").

  2. Leverage the Result field in the Task object to return structured data regarding the failure for programmatic access. This allows the plugin to parse specific VM-level errors.

  3. Reflect the "Success with Exceptions" logic within the Data Protection Plugin's native dashboard using granular data retrieved from the backend backup service.