fix(updates): read dnf and yum updates from the cached metadata
driver / standard (pull_request) Failing after 15s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 1m0s
driver / test (3.12) (pull_request) Failing after 1m1s
driver / test (3.13) (pull_request) Failing after 53s
driver / lowest (pull_request) Failing after 28s
driver / build (pull_request) Successful in 33s
driver / security (pull_request) Successful in 1m9s
CI / driver (pull_request) Failing after 2m30s
driver / publish (pull_request) Skipped
driver / standard (pull_request) Failing after 15s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 1m0s
driver / test (3.12) (pull_request) Failing after 1m1s
driver / test (3.13) (pull_request) Failing after 53s
driver / lowest (pull_request) Failing after 28s
driver / build (pull_request) Successful in 33s
driver / security (pull_request) Successful in 1m9s
CI / driver (pull_request) Failing after 2m30s
driver / publish (pull_request) Skipped
`dnf check-update` and `yum check-update`, and yum's security query, download the repositories' metadata first whenever the cached copy has expired. On an Oracle Linux host on OCI that outlasted netOrk's 120 s poll on every run, and the device went offline. They now run with --cacheonly, as apt's read uses its local index; refresh_available_updates (`dnf makecache`) still refreshes it. Without a cache the read fails at once and says to refresh the index. The README row claimed check-update ran unprivileged; it runs as root. dnf's security query is NAPALM/napalm-device-types#76. Closes #59
This commit is contained in:
1 parent
60ff9d9700
commit
d226ebf764
4 files changed
+48
-10
No files matched your search
@@ -45,6 +45,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
on 3.12, so 3.10 and 3.11 are no longer tested (NAPALM/driver-standard#6).
|
||||
|
||||
### Fixed
|
||||
- dnf and yum hosts read pending updates and security advisories from the cached
|
||||
metadata only (`--cacheonly`), as apt reads its local index (#59). With an expired
|
||||
cache `check-update` downloaded the repositories' metadata first, and on an Oracle
|
||||
Linux host on OCI that outlasted netOrk's whole poll, every time. Refreshing stays
|
||||
`refresh_available_updates()` (`dnf makecache`). Without a cache the read fails at
|
||||
once and says to refresh the index. Requires the napalm-device-types release with
|
||||
NAPALM/napalm-device-types#76 for dnf's security query.
|
||||
- `get_arp_table()` reports an unknown age as `-1.0` (napalm-device-types'
|
||||
`ARP_AGE_UNKNOWN`) instead of `0.0`, which means "confirmed just now": `ip neigh`
|
||||
has no age, and a STALE entry may be hours old (NetOrk/netork#1327).
|
||||
|
||||
Reference in new issue
Block a user