Patch filters are not getting applied properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Livepatch On-Prem |
Fix Released
|
High
|
Unassigned |
Bug Description
After deploying livepatch-server with some patch filters in charm config (sync_flavors, sync_minimum_
If we observe the list of patches downloaded by livepatch-server in postgress/
How to reproduce:
1- Deploy livepatch-server with the following charm options:
sync_
sync_
2- Run the sync-trigger action:
livepatch-
3- Using the livepatch-admin CLI, observe that the patches for kernel versions older than 5.15.0 are
getting downloaded:
livepatch-
livepatch-
This is causing unnecessary patches to be downloaded and wastage of db storage-
The config in /etc/livepatchd .yaml looks ok but we have patches for older kernel versions getting downloaded:
patch_sync: 4b8b-4875- 8f4a-adee5e44ac 18 count_strategy: unit kernel_ version: 5.15.0 machine_ reports: false
enabled: true
flavors:
- generic
id: ab1867e3-
interval: 1h
machine_
minimum_
proxy:
enabled: false
send_