apt-check needs to consider the pro client's esm cache for updates when esm is disabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
Currently, the Pro Client sets up ESM sources in the system's APT configuration to advertise ESM updates even when the service is disabled. This is undesired, as described in
https:/
The next version of ubuntu-
Update Notifier relies on those unauthenticated ESM sources. It needs instead to rely on the Pro Client ESM apt cache to provide this information.
If this is not changes, users will not see any ESM update or advertisement if they don't have the services enabled.
The change in the reporting strategy will land in ubuntu-
[ Test Plan ]
In a Ubuntu LTS system (Xenial for esm-infra, bionic/focal for esm-apps):
- Verify that the ubuntu-
- Verify that no ESM updates are reported when running /usr/lib/
- Install a version of update-notifier with the change (from -proposed, or from the MR branch if not uploaded yet)
- Verify that ESM updates are when running /usr/lib/
[ Where problems could occur ]
In the event of the change being implemented in a wrong/incomplete way, the side-effect is that users would not see the ESM updates, same as not implementing the change. However, it is simple enough to verify if this happens, and it is highly improbable that it does.
[ Other Info ]
Instead of reading the esm apt cache from the Pro Client, update-notifier could query the 'packages' API provided in the Client itself. However, for that to happen, it would make sense for the package to depend (or at least recommend) ubuntu-
Even using the esm apt cache would be a fair reason for update-notifier to recommend ubuntu-
There is no upload to Kinetic because there are no ESM packages there. There is no report of ESM data today, and there will be no report even if this lands there.
For future changes, we want to redesign how this interaction between ubuntu-
Related branches
- Ubuntu Core Development Team: Pending requested
-
Diff: 109 lines (+29/-32)1 file modifieddata/apt_check.py (+29/-32)
- Julian Andres Klode: Approve
-
Diff: 109 lines (+29/-32)1 file modifieddata/apt_check.py (+29/-32)
- Julian Andres Klode: Approve
-
Diff: 109 lines (+29/-32)1 file modifieddata/apt_check.py (+29/-32)
- Julian Andres Klode: Approve
-
Diff: 109 lines (+29/-32)1 file modifieddata/apt_check.py (+29/-32)
- Julian Andres Klode: Approve
-
Diff: 109 lines (+29/-32)1 file modifieddata/apt_check.py (+29/-32)
description: | updated |
On a separate note: this also affects Xenial, and needs to be SRUed to Xenial - however no Xenial branch was found to send the patch to. What would be the steps to do so?