• v0.4.0 c56a5506e6

    napalm-openmediavault 0.4.0
    driver / lowest (push) Successful in 29s
    driver / standard (push) Successful in 15s
    driver / lint (push) Successful in 12s
    driver / test (3.13) (push) Successful in 52s
    driver / types (push) Successful in 58s
    driver / test (3.12) (push) Successful in 1m10s
    driver / build (push) Successful in 27s
    driver / security (push) Successful in 1m2s
    driver / publish (push) Successful in 27s
    CI / driver (push) Successful in 2m38s
    Stable

    christianmanivong released this 2026-12-03 18:03:38 +00:00 | 0 commits to main since this release

    Fixed

    • get_shares() found no share at all (NetOrk/netork#3104): it asked for data models
      OMV does not have (conf.service.nfs.shares and its siblings; the models are
      …share), without root although config.xml is root's, without the full path
      although /usr/sbin is not on a login user's PATH -- and every failure read as a NAS
      without shares. Samba shares were dropped because OMV gives them no name of their own,
      and several NFS clients of one folder overwrote each other. Now every model is read
      through sudo in one round trip, a share takes its shared folder's name, NFS is one share
      per folder with one access rule per client, and a read that fails raises.

    Added

    • Each share names the service that serves it (service: smbd, nfs-server, proftpd,
      rsync, tftpd-hpa), what a client names to reach it (export: the Samba share,
      /export/<folder> over NFS, /<folder> under the FTP root), who may (access, with
      each NFS client's options and comment) and, for Samba, whether guests may (guest).
      volume is the file system the shared folder is on.
    • rsync modules, the TFTP plugin's root and Samba's home directories (homes, when
      switched on) are shares too. A share is enabled only while OMV has its service on.
    • Time sync through OpenMediaVault's own settings (NetOrk/netork#2370). napalm-linux brings
      napalm-device-types' PosixTimeSyncMixin (4.35.0), whose write -- a chrony drop-in with
      the other sources commented out, timedatectl set-timezone -- OMV would take back the
      next time it deploys conf.system.time. get_time_sync() reads the servers and the zone
      of the web UI (System.getTimeSettings; no servers while NTP is switched off) and the
      host's own word on whether the clock is synchronised and by which client.
      configure_time_sync() writes both through System.setTimeSettings (switching NTP on
      for servers) and deploys only the modules that made dirty, plus chrony and timezone
      if they already were (Config.applyChanges); changes pending in the web UI for other
      modules stay pending. A value OMV already has is not written again, and nothing is
      written to the host's files.
    • Personal accounts on OpenMediaVault follow what the person changes
      (NetOrk/netork#2013): add_local_account(..., replaces=[...]) takes the old keys out of
      OMV's own key store (through UserMgmt.setUser, applying only what that made dirty) and
      out of ~/.ssh, remove_local_account_keys does the same for deleted keys and leaves the
      account open, and add_local_account(..., clear_password=True) removes the password
      (usermod -p '*', as napalm-linux does): the account logs in with its key only and has
      no sudo. Keys the person added stay.
    • A deleted key can take the password with it on OpenMediaVault (NetOrk/netork#2033):
      through napalm-device-types' remove_local_account_keys(..., clear_password=True) the
      keys go through OMV's key store, the password goes (usermod -p '*'), and so does
      sudo. The account stays open and in _ssh.

    Changed

    • Needs napalm-device-types 4.35.0 and napalm-linux 0.17.0.

    Added

    • Scheduled jobs (NetOrk/netork#1933, #18), on top of napalm-linux's reading and writers.
      The web UI's "Scheduled Jobs" and the power-management schedule are read through
      Cron.getList (key omv:<uuid>, disabled ones included) instead of the lines OMV generates
      for them in /etc/cron.d/openmediavault-userdefined and -powermngmt. They are switched
      with Cron.set (the job unchanged but enable), run with Cron.execute and followed
      through Exec.getOutput (stopped after 300 s), and an application's job is made with
      Cron.set and removed with Cron.delete -- an OMV job like any other, its comment
      napalm-scheduled-job: <name> <description>. Each write applies the cron module alone,
      so changes pending in the web UI for other modules stay pending; while the cron module
      itself has changes pending, every write is refused, or the apply would put them live too.
      The cron files OMV
      generates (/etc/cron.d/openmediavault-*, /etc/cron.hourly/openmediavault-flushmailq,
      /etc/cron.{daily,weekly}/openmediavault-apticron,
      /etc/cron.daily/openmediavault-samba-recycle) are platform and only run: the Linux path
      refuses to write them, as OMV would undo the edit on its next apply. Every other job keeps
      napalm-linux's behaviour. Requires napalm-device-types 4.26.0 and napalm-linux 0.16.0.
    • netOrk's own account with a fixed uid is not made on OMV yet (NetOrk/netork#1817):
      _account_create_with_uid raises NotImplementedError, as the keys go through
      UserMgmt, which knows only the users it made.
    • Personal accounts the way OMV's web UI makes them (NetOrk/netork#1793), on top of
      napalm-linux's get_local_accounts(), add_local_account() and lock_local_account().
      OMV's sshd lets in only root and _ssh, and OMV keeps a user's keys in its own
      database, deploying them to /var/lib/openmediavault/ssh/authorized_keys/<user>. So a
      new account is made by UserMgmt.setUser in _ssh, an account made outside OMV joins
      _ssh when it is opened, and keys are added and removed through setUser. Each call
      applies the modules it made dirty (postfix, ssh) and nothing else: changes left
      pending in the web UI stay pending. setUser takes a plain password, which netOrk does
      not have, so the hash is set with usermod -p. Like the web UI, setUser gives the
      account OMV's primary group users. Checked on a fresh OMV 8 (Debian 13) with the real
      driver over SSH. Requires the napalm-device-types and napalm-linux releases with
      personal accounts.
    • set_hostname() the way OMV's web UI renames the NAS: Network.setGeneralSettings
      (an FQDN sets the domain too, a bare name keeps it), then Config.applyChanges for the
      modules the rename made dirty plus the hostname modules already dirty. Changes left
      pending in the web UI are not deployed with it. Replaces the inherited napalm-linux
      rename (NAPALM/napalm-linux#45), whose /etc/hostname and /etc/hosts OMV would
      regenerate on its next apply.

    Changed

    • Python 3.12 is the floor (requires-python = ">=3.12"): netOrk runs every driver
      on 3.12, so 3.10 and 3.11 are no longer tested (NAPALM/driver-standard#6).
    • The SSH hardening is offered again (#20, NetOrk/netork#1950): it goes into the drop-in under
      /etc/ssh/sshd_config.d, which OpenMediaVault's generated sshd_config includes and salt
      leaves alone, never into sshd_config itself (SSHD_CONFIG_GENERATED, napalm-device-types
      4.26.0). Requires napalm-device-types 4.26.0.

    Fixed

    • get_disks() reports each disk's SMART verdict: healthy when smartctl's overall
      self-assessment passed (SCSI/SAS: health status OK), failed when it failed or a
      SCSI disk predicts a failure, unknown only when the disk gives none. The driver
      asked smartctl without -H, which never prints the verdict: a disk read unknown,
      and an ATA disk with an attribute table read failed from that table's
      WHEN_FAILED column, whatever its state.
    • get_disks() puts a disk in the md array only when the disk itself or one of its
      partitions is a member: sda no longer joins the array of sdaa1, nor nvme0n1
      that of nvme0n11. /proc/mdstat is read once per call instead of once per disk.
    • get_disks() reports a SCSI/SAS disk's temperature (Current Drive Temperature);
      it read -1 for every SAS disk. A disk that prints 0 C there, as QEMU's virtual
      disks do, still reads -1.
    • get_disks() raises CommandErrorException when lsblk fails or prints no device
      list, and lets a failed /proc/mdstat read raise; it returned [], the answer for
      a NAS without disks, so every disk vanished on a transient error (#16).
    • get_disks() reports warning for a disk whose verdict passed but that counts lost
      or unreadable sectors: ATA reallocated, pending or offline-uncorrectable sectors,
      SAS grown defects, an NVMe critical-warning flag or NVMe media errors (#16).
    • A failed smartctl call (timeout, sudo refused, device not opened) is logged at
      warning level with the reason; it was logged at debug level and looked like a disk
      without SMART. The disk still reads unknown (#16).
    Downloads
  • v0.3.0 481f047fff

    napalm-openmediavault 0.3.0
    driver / lint (push) Successful in 14s
    driver / standard (push) Successful in 14s
    driver / types (push) Successful in 1m6s
    driver / test (3.11) (push) Successful in 1m9s
    driver / test (3.10) (push) Successful in 1m10s
    driver / lowest (push) Successful in 30s
    driver / test (3.12) (push) Successful in 1m0s
    driver / test (3.13) (push) Successful in 56s
    driver / build (push) Successful in 29s
    driver / security (push) Successful in 1m0s
    driver / publish (push) Successful in 25s
    CI / driver (push) Successful in 3m21s
    Stable

    christianmanivong released this 2026-10-26 19:22:47 +00:00 | 32 commits to main since this release

    The first release on PyPI.

    Changed

    • The driver follows the NAPALM driver standard
      (https://git.netork.io/NAPALM/driver-standard): CI on Gitea runs ruff, mypy, the
      tests on Python 3.10–3.13 and at the lowest declared versions, bandit, pip-audit and
      a build check, and a release tag publishes to PyPI. The package now ships py.typed,
      a README and a LICENSE file. It needs napalm-device-types 4.22.0 and napalm-linux
      0.15.0. Python 3.9 is no longer supported; napalm-device-types never ran on it.
    • Failures the driver deliberately ignores (the OpenMediaVault version, smartctl for one
      disk, /proc/mdstat, mdadm --detail, a shared folder lookup) are now logged at debug
      level.
    Downloads