all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH guest-common/manager 0/3] fix #6464: backup: add backup retry strategies
@ 2026-11-02 11:58 Jakob Klocker
  2026-11-02 11:58 ` [PATCH pve-guest-common 1/3] vzdump: add error-behavior and max-retries options Jakob Klocker
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jakob Klocker @ 2026-11-02 11:58 UTC (permalink / raw)
  To: pve-devel

This series introduces automatic backup retries for guest backups in
vzdump to better handle transient failures.

As suggested by @Thomas [0], three strategies were added:
- `retry-immediately`: Immediately retries failed guests up to a
  configurable maximum retry count.
- `retry`: Defers failed guests and retries them at the end of the job
  up to the configurable maximum retry count.
- `ignore`: Retains the existing behavior by ignoring failures.

The number of retries is set with the new `max-retries` option (1-10,
default 5). Between attempts, a backoff delay is applied that starts at
30 seconds, doubles with each retry and is capped at 30 minutes. For
`retry`, the delay is measured from the last failure of that guest. The
interval and cap are intentionally not configurable for now.

If a guest succeeds on a retry, it is reported as successful in the
notification and no error is counted. If it still fails after the last
retry, the job finishes with errors as before. Task logging has been
switched to append mode so the log contains the complete transcript of
all attempts.

I kept the retry options in the advanced tab of the backup job window,
but I'm not sure whether they should be moved to the general tab. 
Opinions on this are appreciated.

Testing info:
When testing I'd suggest to fail the backup by locking and
unlocking the guest with following commands:
`qm set <VMID> -lock backup`
`qm unlock <VMID>`

[0] https://bugzilla.proxmox.com/show_bug.cgi?id=6464#c5
Link: https://bugzilla.proxmox.com/show_bug.cgi?id=6464


pve-guest-common:

Jakob Klocker (1):
  vzdump: add error-behavior and max-retries options

 src/PVE/VZDump/Common.pm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)


pve-manager:

Jakob Klocker (2):
  fix #6464: vzdump: add retry strategies for failed guest backups
  ui: backup: add error behavior and retry options

 PVE/VZDump.pm                               | 131 +++++++++++++++++++-
 www/manager6/dc/Backup.js                   |   2 +-
 www/manager6/panel/BackupAdvancedOptions.js |  52 ++++++++
 www/manager6/window/Backup.js               |  47 ++++++-
 4 files changed, 228 insertions(+), 4 deletions(-)


Summary over all repositories:
  5 files changed, 243 insertions(+), 4 deletions(-)

-- 
Generated by murpp 0.12.0




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-02 12:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-02 11:58 [PATCH guest-common/manager 0/3] fix #6464: backup: add backup retry strategies Jakob Klocker
2026-11-02 11:58 ` [PATCH pve-guest-common 1/3] vzdump: add error-behavior and max-retries options Jakob Klocker
2026-11-02 11:58 ` [PATCH pve-manager 2/3] fix #6464: vzdump: add retry strategies for failed guest backups Jakob Klocker
2026-11-02 11:58 ` [PATCH pve-manager 3/3] ui: backup: add error behavior and retry options Jakob Klocker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal