Merge NAPALM/napalm-device-types#132 (4.45.0) into feature/services-need-restart-lxc

This commit is contained in:
christianmanivong committed 2026-11-26 19:25:55 +01:00
commit a5275d4c4d
9 files changed
+299 -36

No files matched your search

+32 -5
View File
@@ -7,7 +7,15 @@ recorded here; their history is the git log.
## [Unreleased]
## [4.44.0] - 2026-11-26
### Fixed
- `get_services_need_restart()` leaves an LXC container's processes out of the `/proc` scan,
as it does Docker's and Podman's (NetOrk/netork#2750). On a Proxmox VE node a container
updates itself, and its own systemd's units (`/lxc/<vmid>/ns/system.slice/nginx.service`)
read as host services that need a restart. Left out: `/lxc/<name>/` (Proxmox VE, cgroup v1)
and `/lxc.payload.<name>/` (LXC 4 and later); `/lxc.monitor/<name>` still counts, since
`lxc-start` runs the host's binary.
## [4.45.0] - 2026-11-26
### Added
- `ServicesRestartMixin.get_services_need_restart()`: the systemd services that still run
@@ -18,13 +26,32 @@ recorded here; their history is the git log.
`/proc/<pid>/maps` for executable mappings of deleted files under `/usr`, `/lib*`, `/bin`,
`/sbin` or `/opt`, each process mapped to its service through `/proc/<pid>/cgroup` as the
listening sockets do. A user's own systemd counts as `user@<uid>`, a container's process is
left out (Docker, Podman, and LXC: `/lxc/<name>/`, Proxmox VE's `/lxc/<vmid>/ns/`, or
`/lxc.payload.<name>/`; a container updates itself, and its own systemd's units are no
services of the host), and a process in no service is listed under `processes`. A refused root gives
left out, and a process in no service is listed under `processes`. A refused root gives
no report and raises, never a clean reading. A driver supplies
`_run_services_restart_command(command)`.
- `parse_services_restart`, `SERVICES_RESTART_COMMAND`, `DELETED_CODE_PATTERN`, and the
`ServicesRestartDict` and `RestartProcessDict` shapes.
`ServicesRestartDict` and `RestartProcessDict` shapes (in `services_restart`).
## [4.44.0] - 2026-11-26
### Added
- `VMDict.uid`, optional: an identity of the guest that survives a migration, a restore
and a changed `vmid` (NetOrk/netork#2728). Proxmox VE 9.3 gives every guest one, VMware's
instance UUID is one; a driver leaves it out where the platform has none, and a caller
then knows the guest by `vmid` alone.
- `CredentialExpiryMixin.get_credential_expiry()`: the credential the connection logged in
with (`kind` `"api-token"` or `"account"`, its `name`) and when it expires, `None` for
never (NetOrk/netork#2728). `PermissionError` where the platform will not tell the
credential its own expiry.
- `UpdateMixin.get_update_history(since)`: the package manager's past transactions, newest
first, each with a stable `id`, start and end, the packages it changed (`action`, old and
new version), who asked for it, the command line and the error it ended with
(`UpdateHistoryDict`, `UpdateHistoryPackageDict`, NetOrk/netork#2728).
### Changed
- `HypervisorDriver.resume_vm()`: the guest's clock is set to the host's time after it
resumes, where the platform can (NetOrk/netork#2728). A documented expectation, not a
parameter: no caller wants a guest that runs behind.
## [4.43.0] - 2026-11-26