feat(vm): resume a paused VM, and list it as paused (NetOrk/netork#2658)
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 52s
driver / test (3.12) (pull_request) Successful in 1m1s
driver / test (3.13) (pull_request) Successful in 56s
driver / lowest (pull_request) Successful in 32s
driver / build (pull_request) Successful in 33s
driver / security (pull_request) Successful in 1m13s
CI / driver (pull_request) Successful in 2m43s
driver / publish (pull_request) Skipped

suspend_vm paused a QEMU guest that nothing could bring back: start is
refused because PVE still says the guest is running. resume_vm posts
status/resume for a paused VM and refuses a container or a guest that is
not paused. get_vms() asks for the full status and reports a guest whose
qmpstatus is paused or suspended as paused, not running.
This commit is contained in:
Christian Manivong committed 2026-11-25 21:28:46 +01:00
1 parent 449230c624
commit 93c974b8f0
4 files changed
+109 -4

No files matched your search

+10
View File
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- `resume_vm(name)` (napalm-device-types' `HypervisorDriver`, NetOrk/netork#2658): a paused
VM continues where `suspend_vm` stopped it, through `status/resume`, and the driver waits
for its task. A VM that is not paused is refused (PVE answers a running one with success
and does nothing), and so is a container: the driver does not suspend one, PVE's
container suspend is experimental, and its listing does not tell a suspended container
from another.
- A native Zabbix agent on both drivers (napalm-device-types `ZabbixAgentMixin`,
NetOrk/netork#2571): a node runs no container engine. `configure_zabbix_agent(settings)`
installs Debian's `zabbix-agent`, and where Debian has none and the caller names the
@@ -53,6 +59,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
in its own daemons; `get_clusters()` and `get_backup_jobs()` keep them.
### Changed
- `get_vms()` reports a paused VM as `"paused"`, no longer as `"running"` (NetOrk/netork#2658).
PVE says `status: running` for a guest that `status/suspend` paused, or that sleeps in
S3; only the full listing (`GET /nodes/{node}/qemu?full=1`) has its `qmpstatus`, so the
driver asks for it.
- Needs napalm-device-types 4.40.0 or later (`ZabbixAgentMixin`).
- The SNMP agent's ufw step is the shared `_allow_sources(allowed, port, proto)`; the rule
it writes for udp/161 is the same.