Files
napalm-qnap-qts/CHANGELOG.md
T
Christian Manivong f1d191c52a
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 16s
driver / types (pull_request) Successful in 1m9s
driver / test (3.12) (pull_request) Successful in 1m6s
driver / test (3.13) (pull_request) Successful in 1m1s
driver / lowest (pull_request) Successful in 34s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 1m12s
CI / driver (pull_request) Successful in 2m51s
driver / publish (pull_request) Skipped
fix(time-sync): switch off the POSIX time sync on QTS
napalm-linux now brings napalm-device-types' PosixTimeSyncMixin (4.35.0). QTS has no systemd and no timedatectl, and its NTP client and time zone are QTS settings: the inherited reading finds no client there and every write fails its step, a difference netOrk could report on every poll but never fix (NetOrk/netork#2370). get_time_sync and configure_time_sync are None, so a capability check answers no, until a QTS variant is built against a real box. The floor rises to napalm-device-types 4.35.0.
2026-11-11 15:18:56 +01:00

6.1 KiB
Raw Blame History

Changelog

All notable changes to this project are documented here.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Changed

  • get_time_sync and configure_time_sync, which napalm-linux brings through napalm-device-types' PosixTimeSyncMixin (4.35.0), are switched off: QTS has no systemd and no timedatectl, and its NTP client and time zone are QTS settings. The POSIX reading would find no client and every write would fail, a difference netOrk could never fix (NetOrk/netork#2370). Needs napalm-device-types 4.35.0.
  • remove_local_account_keys, which napalm-linux 0.17.0 brings, is switched off like the other personal-account actions: QTS manages its users in its own UI (NetOrk/netork#2013). Needs napalm-device-types 4.28.0 and napalm-linux 0.17.0.

Added

  • Scheduled jobs on QTS (#17, NetOrk/netork#1933). napalm-linux now brings napalm-device-types' POSIX scheduled jobs with Debian's paths, which are wrong on QTS; QtsScheduledJobsMixin puts them on QTS's:
    • get_scheduled_jobs() reads /etc/config/crontab -- the crontab QTS keeps across a boot, admin's (uid 0), without a user field -- and the other users' crontabs in crond's spool, in one round trip. crond's copy of admin's is not read twice. No /etc/crontab, cron.d, run-parts, anacron or systemd: BusyBox crond reads none of them. The time zone is QTS's own (getcfg System 'Time Zone') when it is an IANA name. A box without /etc/config/crontab raises rather than reporting no jobs.
    • The firmware's own lines (/sbin/hwclock -s, /sbin/qfstrim, /etc/init.d/backup_conf.sh, ...) are platform, by a conservative list of the commands stock QTS writes; a line that also runs something else stays the admin's. They only run: QTS's scripts and UI keep these lines, and whether they leave one switched off alone needs a real box (#13).
    • manage_scheduled_job() switches the admin's lines and runs any line now. A write goes into /etc/config/crontab (cp, so the file keeps its mode, owner and links), then crontab /etc/config/crontab and /etc/init.d/crond.sh restart -- without them QTS forgets it on the next boot. A run is bounded by sleep and kill, not timeout, which QTS's BusyBox cannot be relied on to have.
    • put_scheduled_job() and delete_scheduled_job() keep an application's job as marked lines in /etc/config/crontab, never in a cron.d. Only as admin (root is taken for it): every other crontab lives in RAM and is gone after a boot.
  • Requires napalm-device-types 4.26.0 and napalm-linux 0.16.0.

Changed

  • Personal accounts are switched off (get_local_accounts, add_local_account, lock_local_account = None). napalm-linux now adds and locks accounts with useradd/usermod (NetOrk/netork#1793); QTS manages its users in its own UI and ships no shadow-utils. A QTS variant follows once it can be built against a real box.
  • netOrk's own account (add_service_account, NetOrk/netork#1817) is switched off for the same reason.
  • set_hostname is switched off (= None). napalm-linux now renames a host through hostnamectl and /etc/hostname (NAPALM/napalm-linux#45), which QTS would report as done and lose on the next boot: its name lives in uLinux.conf, /etc in RAM. netOrk then says the name is kept in netOrk only. A QTS rename follows once it can be built against a real box (#13).
  • 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).

[0.6.0] - 2026-10-23

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 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.

[0.4.0] – 2026-10-17

Changed

  • Requires napalm-linux 0.8.0, whose fixes are napalm-device-types' templates. configure_snmp_agent, configure_package_proxy and ensure_package are switched off (None): QTS has no apt, dnf or opkg, and its SNMP agent is set in its own UI. Before, the inherited SNMP and apt-proxy fixes were offered and failed.

Fixed

  • get_device_warnings no longer logs a TypeError on every poll: the inherited one asked for updates, which QTS cannot list (#6).

[0.3.0] – 2026-10-08

Removed

  • The _docker_bin() override: napalm-linux 0.3.0 drops the Docker CLI methods it served. _container_engine_binary("docker") returns Container Station's path itself.

Changed

  • Requires napalm-linux >= 0.3.0.

[0.2.0] – 2026-10-07

Added

  • _container_engine_binary returns Container Station's docker path, so the container engine connection from napalm-device-types 2.6.0 (open_container_engine("docker")) reaches it although it is not on PATH. Callers pass arguments only and never see the path (NetOrk/netork#765).

Changed

  • Requires napalm-device-types >= 2.6.0 and napalm-linux >= 0.2.0.

[0.1.0]

Added

  • Initial driver scaffold: QnapQtsDriver(StorageDriver, LinuxDriver) with discovery fingerprints (SNMP enterprise OID 1.3.6.1.4.1.24681, HTTP, port specs) and the qnap_qts entry point.
  • Explicit DEVICE_CLASS = "storage" so netOrk does not classify a QNAP as a plain Linux host and hide its Storage tab.
  • QTS major-version detection, Container Station docker path discovery and Virtualization Station virsh discovery, all resolved once per session in open().
  • MRO collision resolution for get_services, which StorageDriver would otherwise shadow.
  • tools/harvest.sh and tools/sanitize.py for capturing and anonymising command output from real hardware.

Pending

  • Storage, QPKG and VM parsers — blocked on the fixture harvest.