Merge origin/main (0.14.0) into feature/services-need-restart
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 14s
driver / types (pull_request) Failing after 25s
driver / test (3.12) (pull_request) Failing after 17s
driver / test (3.13) (pull_request) Failing after 17s
driver / lowest (pull_request) Failing after 18s
driver / security (pull_request) Failing after 37s
driver / build (pull_request) Successful in 32s
CI / driver (pull_request) Failing after 1m32s
driver / publish (pull_request) Skipped

Needs napalm-device-types 4.46.0: ServicesRestartMixin with an LXC
container's processes left out, and 0.14.0's CredentialExpiryMixin.
This commit is contained in:
Christian Manivong committed 2026-11-26 19:26:58 +01:00
commit b37672a269
17 files changed
+724 -17

No files matched your search

+35
View File
@@ -20,6 +20,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
(`id -u` is 0): another login gets no report and the read raises, rather than read as
clean what it cannot see. No stdin.
### Changed
- Needs napalm-device-types 4.46.0 or later (`ServicesRestartMixin`, with an LXC
container's processes left out).
## [0.14.0] - 2026-11-26
### Added
- Proxmox VE 9.3's API additions (NetOrk/netork#2728), each taken only on a node whose
`GET /version` says 9.3 or later (`_version_at_least`); an older node does what it did.
- `get_vms()`: each guest carries PVE 9.3's `uid`, an identity that survives a migration, a
restore and a changed vmid, from one `GET /cluster/resources?type=vm` per call, joined by
node and vmid (napalm-device-types `VMDict.uid`). A guest without one, an older node and a
listing that cannot be read leave the key out; the guests are listed as before.
- `get_clusters()`: `id` is the cluster's `cluster-id` from `GET /cluster/status`, or a
standalone node's own on its node entry; None on an older node.
- `get_credential_expiry()` (napalm-device-types `CredentialExpiryMixin`): the API token
(`GET /access/users/{userid}/token/{tokenid}`) or the password's account
(`GET /access/users/{userid}`) the driver logged in with, and when it expires; a token
without an `expire` of its own expires with its user. A 403 is a `PermissionError`, any
other failure a `RuntimeError`.
- `get_update_history(since)` (napalm-device-types `UpdateMixin`): the node's APT
transactions from `GET /nodes/{node}/apt/history`, newest first, with `id`
`"{start-time}-{start-index}"`. A failed read raises; before 9.3 it is
`NotImplementedError` (no log is parsed over SSH).
### Changed
- `set_node_maintenance()` uses `PUT /nodes/{node}/maintenance` when the node going into
maintenance runs PVE 9.3, and opens no SSH session; that node's own version decides,
since a rolling upgrade leaves the members on different releases. An older node still
takes `ha-manager crm-command node-maintenance` over SSH.
- `resume_vm()` sets the guest's clock to the host's time on PVE 9.3
(`sync-time-on-resume=1`, through the guest agent where it runs).
- Needs napalm-device-types 4.44.0 or later (`CredentialExpiryMixin`, `UpdateHistoryDict`,
`VMDict.uid`).
## [0.13.0] - 2026-11-26
### Added