• napalm-proxmox 0.11.0
    driver / types (push) Successful in 58s
    driver / standard (push) Successful in 18s
    driver / lint (push) Successful in 15s
    driver / test (3.12) (push) Successful in 1m8s
    driver / test (3.13) (push) Successful in 1m1s
    driver / lowest (push) Successful in 32s
    driver / build (push) Successful in 29s
    driver / security (push) Successful in 1m4s
    driver / publish (push) Successful in 31s
    CI / driver (push) Successful in 6m47s
    Stable

    christianmanivong released this 2026-11-25 21:28:31 +00:00 | 0 commits to main since this release

    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
      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 -- so get_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 from GET /nodes/{node}/time only where the host
      names none. configure_time_sync() writes the servers to
      /etc/chrony/sources.d/netork.sources with every other configured source commented out
      (Debian's vendor pool; the DHCP sourcedir stays) and reloads or restarts chrony; the zone
      goes through PUT /nodes/{node}/time, Proxmox's own call, so /etc/timezone and the
      web UI follow /etc/localtime. The token needs Sys.Modify for 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/anacrontab and every systemd timer
      in one round trip as root; manage_scheduled_job() enables, disables or runs one now;
      put_scheduled_job() and delete_scheduled_job() write and remove an application's own.
      What Proxmox ships is platform: on Proxmox VE pve-* units (pve-daily-update.timer),
      pvesr.timer and /etc/cron.d/vzdump; on a backup server proxmox-backup* units
      (proxmox-backup-daily-update.timer). A line in /etc/cron.d/vzdump is only run, never
      switched: the file is a link to /etc/pve/vzdump.cron on 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() 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.

    Fixed

    • set_hostname() hands the name to the shell quoted (shlex.quote): to hostname, to
      postconf -e and in the paths of the /etc/pve/nodes move (#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/hosts to a mktemp file 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_hosts and
      moved that over /etc/hosts, so a local user who created the file first owned
      /etc/hosts afterwards.
    • get_ntp_servers() read GET /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