Skip to content

BackupItemAction plugin timeouts are not reported in backup results file or error count #9377

@priyansh17

Description

@priyansh17

What steps did you take and what happened:
While investigating backup failures involving plugin timeouts, I observed that when a BackupItemAction times out, the backup CR correctly marks the operation as failed and the phase transitions to a partial failure. However, the backup results file (results.json.gz) and the error count field in the backup metadata do not report these timeout errors—they remain unchanged from the initial backup phase. This makes it hard to correlate plugin failures with the content of the backup tarball and results.

What did you expect to happen:
I expected that if any BackupItemAction times out or fails asynchronously, the error would be captured in the backup results file and increment the error count in the backup metadata, so that users can see a summary of all failures (including those that occurred after the initial backup persistence) in the results tarball and error count.

The following information will help us better understand what's going on:

  • The backup CR shows BackupItemOperationsFailed and PartiallyFailed phase as expected.
  • Timeout errors are present in the per-operation status, but not in the results file or error count.
  • The backup tarball uploaded initially is not updated with these errors when the finalizer runs.

Anything else you would like to add:
This behavior may confuse users who expect all errors to be visible in the backup results file and error summary. Please consider updating the finalizer logic to include these errors in results.json.gz and increment the error count accordingly.

Environment:

  • Velero version: latest
  • Kubernetes version: latest
  • Cloud provider: Azure
  • OS: Any

Metadata

Metadata

Assignees

Labels

Area/PluginsIssues related to plugin infra/internal pluginskind/Bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions