[Touch-packages] [Bug 2034656] Re: Update Ubuntu ESM cache only once daily?
pro-client doesn't run apt upgrade in any scenario or configure the system to do so. Do we have control over any of the offending machines? I'd still like to see a `pro collect-logs` from one of them to be sure nothing unexpected is happening pro-client related. That the major offending package is azure-specific may be a clue that it could be something happening only on Azure. We can talk to the cloud team about it. We would only see the spike on esm.ubuntu.com because clouds use mirrors for the main archive. Adding cloud-images here which I think will notify them. I went ahead and checked default apt configuration on a couple machines and found the following: on Azure Bionic Pro: $ apt-config dump | grep Periodic APT::Periodic ""; APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "0"; APT::Periodic::Unattended-Upgrade "1"; on GCP Bionic Pro: $ apt-config dump | grep Periodic APT::Periodic ""; APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "1"; APT::Periodic::Unattended-Upgrade "1"; So at least in those two places, "Download-Upgradeable-Packages" is disabled ("0"), which I believe is what corresponds to the apt upgrade --download-only in apt.daily, but I'm out of my depth here. Just to be sure though, I'm also adding this bug to apt in case this is a problem with default configuration there. ** Also affects: apt (Ubuntu) Importance: Undecided Status: New ** Also affects: cloud-images Importance: Undecided Status: New ** Changed in: ubuntu-advantage-tools (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/2034656 Title: Update Ubuntu ESM cache only once daily? Status in cloud-images: New Status in apt package in Ubuntu: New Status in ubuntu-advantage-tools package in Ubuntu: Incomplete Bug description: Hi, We're seeing frequent alerts on the Ubuntu ESM archive servers due to surges in requests. On two systems, I'm seeing this: | Sep 6 05:47:16 machine-2 systemd[1]: Starting Update the local ESM caches... | Sep 6 05:47:17 machine-2 systemd[1]: Finished Update the local ESM caches. | Sep 6 10:49:35 machine-2 systemd[1]: Starting Update the local ESM caches... | Sep 6 10:49:35 machine-2 systemd[1]: Finished Update the local ESM caches. | Sep 6 17:17:16 machine-2 systemd[1]: Starting Update the local ESM caches... | Sep 6 17:17:17 machine-2 systemd[1]: Finished Update the local ESM caches. | Sep 6 23:47:16 machine-2 systemd[1]: Starting Update the local ESM caches... | Sep 6 23:47:17 machine-2 systemd[1]: Finished Update the local ESM caches. | Sep 7 01:55:02 machine-2 systemd[1]: Starting Update the local ESM caches... | Sep 7 01:55:02 machine-2 systemd[1]: Finished Update the local ESM caches. On another: | Sep 6 02:41:02 is-bastion-ps5 systemd[1]: Starting Update the local ESM caches... | Sep 6 02:41:03 is-bastion-ps5 systemd[1]: Finished Update the local ESM caches. | Sep 6 09:02:40 is-bastion-ps5 systemd[1]: Starting Update the local ESM caches... | Sep 6 09:02:41 is-bastion-ps5 systemd[1]: Finished Update the local ESM caches. | Sep 6 15:32:40 is-bastion-ps5 systemd[1]: Starting Update the local ESM caches... | Sep 6 15:32:41 is-bastion-ps5 systemd[1]: Finished Update the local ESM caches. | Sep 6 22:02:40 is-bastion-ps5 systemd[1]: Starting Update the local ESM caches... | Sep 6 22:02:41 is-bastion-ps5 systemd[1]: Finished Update the local ESM caches. | Sep 7 04:32:40 is-bastion-ps5 systemd[1]: Starting Update the local ESM caches... | Sep 7 04:32:42 is-bastion-ps5 systemd[1]: Finished Update the local ESM caches. This is all from `/usr/lib/systemd/system/esm-cache.service` which calls `/usr/lib/ubuntu-advantage/esm_cache.py`. Can we please have this run less frequent? Perhaps only once daily which aligns with APT and apt-daily-upgrade.service / unattended- upgrades? Perhaps check existence of a file and run if not, then age of that same file and only run if it's older than a day? I think, from what I can see, this may be triggered from /lib/systemd/system/ua-timer.timer and /etc/apt/apt.conf.d/20apt-esm- hook.conf? See also LP:1554848 which was for APT. On Trusty and Xenial clients we only seem to update daily, but the problem is worse as it's a cron.daily job, so all clients fire simultaneously - could we get this changed to a cron.d job with a randomised firing time instead? To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-images/+bug/2034656/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe :
[Touch-packages] [Bug 2009808] Re: Doesn't display the correct livepatch service status
This was released in version 27.14 of ubuntu-advantage-tools but I forgot to include the LP number in the changelog so it didn't get automatically closed. Marking Fix Released now for u-a-t ** Changed in: ubuntu-advantage-tools (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to software-properties in Ubuntu. https://bugs.launchpad.net/bugs/2009808 Title: Doesn't display the correct livepatch service status Status in software-properties package in Ubuntu: Triaged Status in ubuntu-advantage-tools package in Ubuntu: Fix Released Bug description: Starting a focal VM which didn't get updated the livepatch icon in the panel shows an orange warning and the popdown display a string saying it hit an error fetching the status $ canonical-livepatch status last check: 58 seconds ago kernel: 5.15.0-56.62~20.04.1-generic server check-in: failed: livepatch check failed: unauthorized patch state: ✗ kernel version not supported The software-properties tab doesn't give any clue about that though, maybe it should? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2009808/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 2009808] Re: Doesn't display the correct livepatch service status
Hi Nathan, I suggest that if you see "status" == "warning" then look at the "warning.code" field. That will be a short string unique to the warning situation that won't change. It will be different for different warnings in the future, though currently the only warning is the one presented in my comment above. So I suggest you keep a translatable string for each known "warning.code" and look up that string based on the code field. If you don't have a string for a certain code, then you can fallback to "warning.message" (or "description_override" if it exists) as you see fit. These will always be english but at least will be human readable strings for the situation. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to software-properties in Ubuntu. https://bugs.launchpad.net/bugs/2009808 Title: Doesn't display the correct livepatch service status Status in software-properties package in Ubuntu: Triaged Status in ubuntu-advantage-tools package in Ubuntu: In Progress Bug description: Starting a focal VM which didn't get updated the livepatch icon in the panel shows an orange warning and the popdown display a string saying it hit an error fetching the status $ canonical-livepatch status last check: 58 seconds ago kernel: 5.15.0-56.62~20.04.1-generic server check-in: failed: livepatch check failed: unauthorized patch state: ✗ kernel version not supported The software-properties tab doesn't give any clue about that though, maybe it should? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2009808/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 2009808] Re: Doesn't display the correct livepatch service status
In the upcoming version of ubuntu-advantage-tools, this will be shown in pro status as SERVICE ENTITLED STATUSDESCRIPTION livepatchyes warning Current kernel is not supported The pro status --format json section for livepatch will look like: { "available": "yes", "blocked_by": [], "description": "Canonical Livepatch service", "description_override": "Current kernel is not supported", "entitled": "yes", "name": "livepatch", "status": "warning", "status_details": "", "warning": { "code": "livepatch-kernel-not-supported", "message": "The current kernel (5.15.0-1028-kvm, x86_64) is not supported by livepatch.\nSupported kernels are listed here: https://ubuntu.com/security/livepatch/docs/kernels\nEither switch to a supported kernel or `pro disable livepatch` to dismiss this warning." } }, I think this will cover the ubuntu-advantage-tools part of the problem. I'll mark it In Progress to reflect the status that this is implemented but not yet committed or released to any Ubuntu release. We expect it to be released in late March. I think software-properties looks for "status" == "enabled" to show an "on" switch for livepatch, so after the above u-a-t status change, it will show livepatch as "off" (since "status" == "warning"). softare-properties should probably also display a warning message describing the situation that `pro status` tells it. I'll leave this as affecting ubuntu-advantage-tools, but also add it back to software- properties to represent that portion of the work (propagating the warning from pro status to the GUI). ** Changed in: ubuntu-advantage-tools (Ubuntu) Status: New => In Progress ** Changed in: ubuntu-advantage-tools (Ubuntu) Assignee: (unassigned) => Grant Orndorff (orndorffgrant) ** Also affects: software-properties (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to software-properties in Ubuntu. https://bugs.launchpad.net/bugs/2009808 Title: Doesn't display the correct livepatch service status Status in software-properties package in Ubuntu: New Status in ubuntu-advantage-tools package in Ubuntu: In Progress Bug description: Starting a focal VM which didn't get updated the livepatch icon in the panel shows an orange warning and the popdown display a string saying it hit an error fetching the status $ canonical-livepatch status last check: 58 seconds ago kernel: 5.15.0-56.62~20.04.1-generic server check-in: failed: livepatch check failed: unauthorized patch state: ✗ kernel version not supported The software-properties tab doesn't give any clue about that though, maybe it should? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2009808/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1995537] Re: snap 'cannot communicate with server:'
Thank you for reporting this bug! It seems the behavior you're describing is related to snap and lightdm and not to ubuntu-advantage-tools. And the traceback in the ubuntu- advantage.log seems due to a snap error. So I'm going to assign this to the snap and lightdm packages, and I'll mark it Invalid for ubuntu-advantage-tools. Feel free to change the status if you discover it is a bug in the ubuntu-advantage-tools package. As an aside: It appears you have jammy-proposed enabled, which generally isn't recommended for normal use and may be unstable. I can tell because ubuntu-advantage-tools 27.11.3~22.04.1 is still in -proposed and hasn't been released to -updates yet. ** Also affects: snap (Ubuntu) Importance: Undecided Status: New ** Also affects: lightdm (Ubuntu) Importance: Undecided Status: New ** Information type changed from Private to Public ** Changed in: ubuntu-advantage-tools (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/1995537 Title: snap 'cannot communicate with server:' Status in lightdm package in Ubuntu: New Status in snap package in Ubuntu: New Status in ubuntu-advantage-tools package in Ubuntu: Invalid Bug description: Both snap and lightdm haven't worked on my laptop for a while. Both work on my desktop without issue. The only difference I can find is that my laptop has an NVIDIA gpu while my desktop has an AMD GPU. This could account for the lightdm issues: whenever I try to use lightdm instead of gdm3, I get stuck in an infinite login loop. But it shouldn't account for the snap not functioning at all. ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: ubuntu-advantage-tools 27.11.3~22.04.1 ProcVersionSignature: Ubuntu 5.15.0-53.59-generic 5.15.64 Uname: Linux 5.15.0-53-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu82.2 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: Unity:Unity7:ubuntu Date: Wed Nov 2 17:51:30 2022 InstallationDate: Installed on 2021-02-23 (617 days ago) InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: ubuntu-advantage-tools UpgradeStatus: Upgraded to jammy on 2022-04-24 (192 days ago) cloud-id.txt-error: Invalid command specified 'cloud-id'. jobs-status.json: {"update_messaging": {"last_run": "2022-11-03T00:06:13.370368+00:00", "next_run": "2022-11-03T06:06:13.370368+00:00"}, "update_status": {"last_run": "2022-11-02T17:09:56+00:00", "next_run": "2022-11-03T05:09:56+00:00"}, "metering": {"last_run": "2022-11-03T00:06:13.370368+00:00", "next_run": "2022-11-03T04:06:13.370368+00:00"}} livepatch-status.txt-error: Invalid command specified '/snap/bin/canonical-livepatch status'. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1995537/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1849972] Re: apt list --upgradable shows no additional updates
This no longer affects the latest version of ubuntu-advantage-tools so I'm marking Invalid. Please re-open if you think this still applies. ** Changed in: ubuntu-advantage-tools (Ubuntu) Status: Triaged => Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1849972 Title: apt list --upgradable shows no additional updates Status in apt package in Ubuntu: Invalid Status in ubuntu-advantage-tools package in Ubuntu: Invalid Status in update-notifier package in Ubuntu: Invalid Bug description: Running `apt list --upgradable` does not show any additional packages to install. Should it? root@humble-mynah:/etc/apt/sources.list.d# apt dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 60 additional updates are available with UA Infrastructure ESM. To see these additional updates run: apt list --upgradable See https://ubuntu.com/advantage or run: sudo ua status root@humble-mynah:/etc/apt/sources.list.d# apt list --upgradable Listing... Done root@humble-mynah:/etc/apt/sources.list.d# To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1849972/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp