cc00c225a2bb35033299b90fcb21a9fb59d01d0a
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
cc00c225a2 |
feat(scheduled-jobs): OMV's own jobs through Cron RPC, generated files platform (#18)
driver / standard (pull_request) Successful in 15s
driver / lint (pull_request) Successful in 14s
driver / test (3.12) (pull_request) Failing after 46s
driver / test (3.13) (pull_request) Failing after 43s
driver / types (pull_request) Failing after 1m1s
driver / lowest (pull_request) Failing after 20s
driver / build (pull_request) Successful in 27s
driver / security (pull_request) Failing after 1m4s
CI / driver (pull_request) Failing after 2m16s
driver / publish (pull_request) Skipped
OpenMediaVault writes several cron files itself, from its own database, and writes them again on every apply: an edit napalm-linux made there would be taken back without a word. So every file OMV generates (/etc/cron.d/openmediavault-*, the mail-queue flush, apticron and the recycle-bin cleanup) is platform and only runs; the inherited writers refuse it. The web UI's "Scheduled Jobs" and the power-management schedule live in conf.system.cron.job. They are read through Cron.getList, disabled ones included, instead of the lines OMV generates for them, and switched with Cron.set, run with Cron.execute (followed through Exec.getOutput), made with Cron.set and removed with Cron.delete. An application's job on OMV is an OMV job, visible in its web UI, marked by its comment. Each write applies the cron module alone, so changes pending in the web UI for other modules stay pending. Every other job keeps napalm-linux's behaviour. Requires napalm-device-types 4.26.0 and napalm-linux 0.16.0. Closes #18 |
||
|
|
deb233617c |
fix(disks): raise on a failed lsblk, warn on failed smartctl calls
driver / standard (pull_request) Successful in 21s
driver / lint (pull_request) Successful in 18s
driver / types (pull_request) Successful in 1m17s
driver / test (3.12) (pull_request) Successful in 1m12s
driver / test (3.13) (pull_request) Successful in 1m7s
driver / lowest (pull_request) Successful in 42s
driver / build (pull_request) Successful in 51s
driver / security (pull_request) Successful in 1m35s
CI / driver (pull_request) Successful in 3m26s
driver / publish (pull_request) Skipped
get_disks swallowed a failed or garbled lsblk and returned [], the answer for a NAS without disks, so every disk vanished on a transient error. It now raises CommandErrorException; a failed /proc/mdstat read raises too instead of dropping every pool. A smartctl call that timed out, was refused by sudo or could not open the device was logged at debug level and read like a disk without SMART. It is now logged as a warning with the reason (exit status bits 0 and 1; the disk-state bits 2-7 are not a failed call). A disk whose verdict passed but that counts reallocated, pending or offline-uncorrectable sectors (ATA), grown defects (SAS), or sets a critical warning or counts media errors (NVMe) is reported as "warning", as the contract allows. get_disks shrinks below its baseline entries, which are tightened. Closes #16 |
||
|
|
aba36b3b11 |
chore: adopt the NAPALM driver standard
driver / standard (pull_request) Successful in 15s
driver / lint (pull_request) Successful in 12s
driver / types (pull_request) Successful in 55s
driver / test (3.10) (pull_request) Successful in 58s
driver / test (3.11) (pull_request) Successful in 56s
driver / lowest (pull_request) Successful in 26s
driver / test (3.12) (pull_request) Successful in 55s
driver / test (3.13) (pull_request) Successful in 48s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 58s
CI / driver (pull_request) Successful in 3m0s
driver / publish (pull_request) Skipped
- CI moves to .gitea/workflows/ci.yml and calls the shared driver workflow of NAPALM/driver-standard; napalm-device-types and napalm-linux come from git until napalm-linux 0.15.0 is on PyPI. - requires-python >=3.10 (napalm-device-types needs it), SPDX license string, setuptools>=77, LICENSE file, py.typed, links to git.netork.io. - Dependencies: napalm-device-types>=4.22.0, napalm-linux>=0.15.0, napalm>=4.0 (tested at 4.0.0); dev extra with pytest, pytest-cov, mypy and ruff. - mypy strict for the whole package, no exempt module: _omv_read is annotated as returning list[dict[str, Any]] (types only). - Coverage floor 15 % (measured 15.89 %); the four long getters and the complexity of get_disks are recorded in the quality baseline. - README (what it is, how it connects, the getters, what it does not do) and CHANGELOG are new. - The committed egg-info and __pycache__ files are untracked; .gitignore from the template keeps them, .venv and build output out. |