feat(running-backups): the backups running on a device right now #102

Merged
christianmanivong merged 1 commits from feature/running-backups-2318 into main 2026-11-11 07:22:54 +00:00
Owner

Summary

  • RunningBackupsMixin.get_running_backups(): the backups running on a device right now, each with its kind (backup, sync, verify, gc, prune, tape), job, task, start and the guests a hypervisor is backing up in it.
  • Declared only, opt-in like VmStopRequestMixin: no role demands it, and a driver without it cannot tell.
  • Release 4.34.0 in the same PR: napalm-proxmox and napalm-linux implement it and need it on PyPI.

Related Issue

NetOrk/netork#2318 (no reboot while a backup is running)

Testing

  • pytest tests (1490 passed), ruff, mypy, napalm-standard check and ratchet locally.
## Summary - `RunningBackupsMixin.get_running_backups()`: the backups running on a device right now, each with its kind (backup, sync, verify, gc, prune, tape), job, task, start and the guests a hypervisor is backing up in it. - Declared only, opt-in like `VmStopRequestMixin`: no role demands it, and a driver without it cannot tell. - Release 4.34.0 in the same PR: napalm-proxmox and napalm-linux implement it and need it on PyPI. ## Related Issue NetOrk/netork#2318 (no reboot while a backup is running) ## Testing - `pytest tests` (1490 passed), `ruff`, `mypy`, `napalm-standard check` and `ratchet` locally.
christianmanivong added 1 commit 2026-11-10 22:39:25 +00:00
feat(running-backups): the backups running on a device right now
driver / lint (pull_request) Successful in 17s
driver / standard (pull_request) Successful in 19s
driver / types (pull_request) Successful in 1m2s
driver / test (3.13) (pull_request) Successful in 1m5s
driver / test (3.12) (pull_request) Successful in 1m15s
driver / lowest (pull_request) Successful in 37s
driver / build (pull_request) Successful in 29s
driver / security (pull_request) Successful in 59s
CI / driver (pull_request) Successful in 2m24s
driver / publish (pull_request) Skipped
56e5e82a59
A restart aborts every backup that runs on the device it restarts, and a
guest's restart breaks the backup its hypervisor is taking of it. netOrk
asks right before it restarts a host after patching (NetOrk/netork#2318),
so the reading belongs in the contract first: RunningBackupsMixin declares
get_running_backups(), opt-in like VmStopRequestMixin, so hasattr tells a
caller whether the driver can tell at all.

Release 4.34.0: the drivers that implement it need it on PyPI.
christianmanivong merged commit 278a707157 into main 2026-11-11 07:22:54 +00:00
christianmanivong deleted branch feature/running-backups-2318 2026-11-11 07:22:54 +00:00
Sign in to join this conversation.