-
napalm-proxmox 0.11.0
Stabledriver / types (push) Successful in 58sdriver / standard (push) Successful in 18sdriver / lint (push) Successful in 15sdriver / test (3.12) (push) Successful in 1m8sdriver / test (3.13) (push) Successful in 1m1sdriver / lowest (push) Successful in 32sdriver / build (push) Successful in 29sdriver / security (push) Successful in 1m4sdriver / publish (push) Successful in 31sCI / driver (push) Successful in 6m47sreleased this
2026-11-25 21:28:31 +00:00 | 0 commits to main since this releaseAdded
resume_vm(name)(napalm-device-types'HypervisorDriver, NetOrk/netork#2658): a paused
VM continues wheresuspend_vmstopped it, throughstatus/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'szabbix-agent, and where Debian has none and the caller names the
server's release line, Zabbix's from its repository; writes the caller's values into
/etc/zabbix/zabbix_agentd.conf(the old file stays as.bak); opens tcp/listen_port
in ufw where the node has it (pve-firewall's rules are the operator's); enables and
restarts the service. - Time sync on both drivers (NetOrk/netork#2365), through napalm-device-types'
TimeSyncMixin(4.36.0); both write the servers and the zone. Neither API keeps time
servers -- both products run chrony on Debian -- soget_time_sync()reads chrony's
sources, the ones DHCP gave apart (dhcp_ntp_servers), whether it is synchronised and
the zone (timedatectl) in one round trip over the driver's SSH session
(PosixTimeSyncMixin), and the zone fromGET /nodes/{node}/timeonly where the host
names none.configure_time_sync()writes the servers to
/etc/chrony/sources.d/netork.sourceswith every other configured source commented out
(Debian's vendor pool; the DHCPsourcedirstays) and reloads or restarts chrony; the zone
goes throughPUT /nodes/{node}/time, Proxmox's own call, so/etc/timezoneand the
web UI follow/etc/localtime. The token needsSys.Modifyfor it (PVE on
/nodes/{node}, PBS on/system/time). Only the node of the connection is read and
written: in a PVE cluster each node keeps its own clock. - What a restart would abort, on both drivers (NetOrk/netork#2318), through
napalm-device-types'RunningBackupsMixin(4.34.0):get_running_backups()lists on
Proxmox VE the node's active vzdump tasks with the guests each is taking now -- the task's
own guest, or for a job the guests locked for their backup (lock: backup) -- and a guest
locked without a task on its own; on a backup server the running backup, sync, verify,
garbage collection, prune and tape tasks. A failed read raises. - Log sources on both drivers (NetOrk/netork#2049), through napalm-device-types'
LogSourcesMixin(4.30.0):get_log_sources()reads the units journald holds entries for
and the log files running processes hold open, with the service or container writing each,
over the exec path as root. - Scheduled jobs on both drivers (NetOrk/netork#1933, #56), through napalm-device-types'
PosixScheduledJobsMixin:get_scheduled_jobs()reads/etc/crontab,/etc/cron.d,
the user crontabs, the run-parts directories,/etc/anacrontaband every systemd timer
in one round trip as root;manage_scheduled_job()enables, disables or runs one now;
put_scheduled_job()anddelete_scheduled_job()write and remove an application's own.
What Proxmox ships isplatform: on Proxmox VEpve-*units (pve-daily-update.timer),
pvesr.timerand/etc/cron.d/vzdump; on a backup serverproxmox-backup*units
(proxmox-backup-daily-update.timer). A line in/etc/cron.d/vzdumpis only run, never
switched: the file is a link to/etc/pve/vzdump.cronon the cluster file system
(pmxcfs), where installing a file with a mode and owner is not safe.
Not scheduled jobs here: Proxmox VE's backup jobs (/cluster/backup) and replication,
and a backup server's verify, prune, sync and garbage collection jobs. Proxmox runs them
in its own daemons;get_clusters()andget_backup_jobs()keep them.
Changed
get_vms()reports a paused VM as"paused", no longer as"running"(NetOrk/netork#2658).
PVE saysstatus: runningfor a guest thatstatus/suspendpaused, or that sleeps in
S3; only the full listing (GET /nodes/{node}/qemu?full=1) has itsqmpstatus, 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.
Fixed
set_hostname()hands the name to the shell quoted (shlex.quote): tohostname, to
postconf -eand in the paths of the/etc/pve/nodesmove (#64, NetOrk/netork#2456). They
stood between single quotes of their own, so a name with a single quote ended them and
the rest ran as root (x';reboot;').set_hostname()writes the new/etc/hoststo amktempfile beside it
(/etc/.hosts.XXXXXX), sets its mode and moves it into place; a failed step removes
it (#66, NetOrk/netork#2446). It wrote as root to the fixed/tmp/_netork_hostsand
moved that over/etc/hosts, so a local user who created the file first owned
/etc/hostsafterwards.get_ntp_servers()readGET /nodes/{node}/ntp, a path Proxmox VE does not have, and so
always reported no servers. It now reports chrony's configured sources, the ones
get_time_sync()reads, and the backup server has it too.
Downloads