feat(hypervisor): resume_vm, and a paused guest is never running (NetOrk/netork#2658)
driver / lint (pull_request) Successful in 12s
driver / standard (pull_request) Successful in 15s
driver / types (pull_request) Successful in 50s
driver / test (3.12) (pull_request) Successful in 1m8s
driver / lowest (pull_request) Successful in 36s
driver / test (3.13) (pull_request) Successful in 1m0s
driver / build (pull_request) Successful in 27s
driver / security (pull_request) Successful in 59s
CI / driver (pull_request) Successful in 2m24s
driver / publish (pull_request) Skipped

The contract could suspend a VM but not bring it back: suspend_vm pointed
at start_vm, which Proxmox refuses for a paused guest because it is still
running. resume_vm is declared beside suspend_vm, optional like every power
action, and get_vms() says a guest that is not executing is paused or
suspended, never running.
This commit is contained in:
christianmanivong committed 2026-11-25 21:26:37 +01:00
1 parent e729b935a4
commit cd47587e80
3 files changed
+63 -2

No files matched your search

+10
View File
@@ -17,6 +17,16 @@ recorded here; their history is the git log.
`noble-security`), once each new suite's `InRelease` or `Release` is fetched with apt's
downloader; nothing is written where the vendor has none.
- `parse_apt_releases`, `rewrite_release`, `suite_release`, `APT_RELEASES_COMMAND`.
- `HypervisorDriver.resume_vm(name)`: bring a paused or suspended VM back where it stopped,
the counterpart of `suspend_vm` (NetOrk/netork#2658). Optional like every power action;
a driver that can resume some guests but not others refuses the others with
`RuntimeError`.
### Changed
- `HypervisorDriver.get_vms()`: a guest that is not executing is never `"running"`. It is
`"paused"` while its process still holds its memory and `"suspended"` once its state was
saved away (NetOrk/netork#2658). `suspend_vm` names `resume_vm`, not `start_vm`, as the
way back.
## [4.41.0] - 2026-11-17