feat(system_baseline): optionally skip the upgrade while a vzdump backup is running #410

Open
Dragonish wants to merge 1 commits from feat/400-skip-upgrade-during-vzdump into main
pull from: feat/400-skip-upgrade-during-vzdump
1 Commits
Author SHA1 Message Date
Dragonish 5519733312 feat(system_baseline): optionally skip the upgrade while a vzdump backup is running
Build / build (pull_request) Successful in 42s
Lint / lint (pull_request) Successful in 2m48s
Molecule / molecule (pull_request) Successful in 15m25s
An apt upgrade of a Proxmox node can restart Proxmox services while a
backup holds a snapshot of a guest, and the role had no way to say
"not now".

system_baseline_skip_upgrade_during_vzdump (bool, default false) makes
the main flow and the update entry point ask the node for its running
tasks (pvesh get /nodes/localhost/tasks --source active) before the
upgrade, on the pve system type only. A vzdump task without an end time
skips the upgrade with a message; autoremove, autoclean and the reboot
check still run. The role does not wait for the backup. A pvesh answer
that is not a JSON list stops the run. With the default no pvesh
command runs.

Closes #400

Assisted-by: Claude Code:claude-sonnet-5-5
2026-11-26 22:49:33 +00:00