[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-22 Thread Launchpad Bug Tracker
This bug was fixed in the package software-properties - 0.96.24.32.18 --- software-properties (0.96.24.32.18) bionic; urgency=medium [ Chad Smith ] * utils: prefer /var/lib/ubuntu-advantage/status.json over ua status - Handle absent /var/lib/ubuntu-advantage/status.json for

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-18 Thread Chad Smith
# Success testing on Bionic Desktop installer 1. Validate current behavior from bionic-updates csmith@downtown:~$ IP=`uvt-kvm ip ubuntu18.04` csmith@downtown:~$ ssh csmith@$IP Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-84-generic x86_64) * Documentation: https://help.ubuntu.com *

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-10 Thread Launchpad Bug Tracker
This bug was fixed in the package software-properties - 0.99.9.8 --- software-properties (0.99.9.8) focal; urgency=medium [ Corey Bryant ] * cloudarchive: Enable support for the Yoga Ubuntu Cloud Archive on 20.04 (LP: #1948806). [ Chad Smith ] * utils: prefer

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-10 Thread Launchpad Bug Tracker
This bug was fixed in the package software-properties - 0.99.10.2 --- software-properties (0.99.10.2) hirsute; urgency=medium * utils: prefer /var/lib/ubuntu-advantage/status.json over ua status - Handle absent /var/lib/ubuntu-advantage/status.json for non-root users (LP:

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-10 Thread Brian Murray
** Changed in: software-properties (Ubuntu Impish) Status: Fix Committed => 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/1920836 Title:

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-04 Thread Robert Ancell
This has been uploaded as 0.96.24.32.18. SRU team please reject 0.96.24.32.17 in proposed as no need for that SRU to delay this one. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to software-properties in Ubuntu.

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-04 Thread Chad Smith
I think there was an omission on the latest bionic upload it doesn't contain the fixes that were added for focal, hirsute and impish. I've put up a PR that cherry-picks those fixes into the bionic branch that would need review and upload before I can validate and set verification-done-bionic on

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-03 Thread Chad Smith
# Hirsute desktop results: SUCCESS non-LTS has neither ESM-Infra nor ESM-Apps support or availability. # so 1. it will not expose "Extend..." links to provide ESM information in Updates tab # and 2. When attached no ESM information will be represented in Updates tab 1. # install proposed $ cat

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-03 Thread Chad Smith
@brian-murray the verification-done-impish tag may be unnecessary here by me. My above verification on impish may have just been supplemental as 0.99.13 already had released which provided ESM awareness on Impish. That said, I revalidated this because the current 0.99.13.1 also touched that same

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-03 Thread Chad Smith
# Impish desktop results: SUCCESS non-LTS has neither ESM-Infra nor ESM-Apps support or availability. # so 1. it will not expose "Extend..." links to provide ESM information in Updates tab # and 2. When attached no ESM information will be represented in Updates tab 1. # install proposed $

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-02 Thread Chad Smith
# Focal desktop results: SUCCESS 1. # install proposed $ cat > setup_proposed.sh

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-02 Thread Brian Murray
Hello Robert, or anyone else affected, Accepted software-properties into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software- properties/0.99.9.8 in a few hours, and then in the -proposed repository. Please help us by testing this new

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-11-02 Thread Brian Murray
Hello Robert, or anyone else affected, Accepted software-properties into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software-properties/0.99.10.2 in a few hours, and then in the -proposed repository. Please help us by testing this new

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-10-29 Thread Chad Smith
I'm hesitant for your to revert on the focal branches as I don't have context on if there is tooling that consumes those branches directly in the project. I don't think it's too much for me to get you and/or Robert a patch for this now. Today is good for me and I'll push a couple PRs for you and

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-10-28 Thread Corey Bryant
@robert, @chad.smith - would you like me to revert the commit from the ubuntu/focal branch for this https://git.launchpad.net/software- properties ? -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to software-properties in

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-10-27 Thread Robert Ancell
@chad.smith - agreed, these changes as currently proposed will need to be updated. -- 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/1920836 Title: Show Extended

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-10-27 Thread Chad Smith
@robert, looks like we should reject this queued upload and put up a separate set of uploads. Recommending reject here and we can work this & next week to get you MRs to support current best-practices for interacting with ua status.json. -- You received this bug notification because you are a

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-08-25 Thread Robert Ancell
@chad.smith - can you make merge requests for the required changes to the ubuntu/hirsute, ubuntu/focal etc branches (https://git.launchpad.net/ubuntu/+source/software-properties)? I can then review those and do the uploads as required. If you need any UI changes I can make those, but I think at

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-08-22 Thread Mathew Hodson
** Changed in: software-properties (Ubuntu Xenial) Importance: Undecided => High ** Changed in: software-properties (Ubuntu Bionic) Importance: Undecided => High ** Changed in: software-properties (Ubuntu Focal) Importance: Undecided => High ** Changed in: software-properties (Ubuntu

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-08-12 Thread Chad Smith
Thank you for this submission. I was awaiting feedback on this bug to determine if you'd like to solve the outstanding issue that Extend... links aren't presented on the software-properties-gtk UI for unattached machines (and/or) dropping the error messages from the console. But, as you mentioned

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-07-19 Thread Chad Smith
>> Is there a reason why the ua client doesn't do this itself internally, i.e. it gives you fresh json or returns the cached copy if it can't do the update? Currently the only "time" during which ubuntu-advantage-tools (UA client) could perform the logic to exec 'sudo ua status' is during

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-07-14 Thread Robert Ancell
Confirmed here that /var/lib/ubuntu-advantage/status.json is only updated when running 'ua status' as root. No desktop software is running as root, in the few cases that root privileges are required a small service is run as root and that is communicated with via D-Bus. The warning doesn't show

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-07-14 Thread Chad Smith
miniamlly as in the patch above, I think we probably need a pre-flight check of os.path.exists( UA_STATUS_JSON) so we don't emit those Errno messages due to failed file opens -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-07-14 Thread Chad Smith
Ultimately if we decide to go with #2 here's a patch that I think would limit both the time cost of a remote uRL query and the noisy logging: --- /usr/lib/python3/dist-packages/softwareproperties/gtk/utils.py 2021-06-10 23:20:22.0 -0600 +++

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-07-14 Thread Chad Smith
Ultimately if we decide to go with #2 here's a patch that I think would limit both the time cost of a remote uRL query and the noisy logging: --- /usr/lib/python3/dist-packages/softwareproperties/gtk/utils.py 2021-06-10 23:20:22.0 -0600 +++

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-07-14 Thread Chad Smith
Also per #2 above, if we were to drop the `ua status` call from utils.py:get_ua_status() that would also mitigate the perceived "time cost" corradoventu mentioned because `ua status` does reach out to the internet to contracts.canonical.com to check service availability for your running

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-07-14 Thread Chad Smith
@robert-ancell and @corradoventu those errors are due to running software-properties-gtk as non-root user on a system that is not attached to any ubuntu-advantage services. The /var/lib/ubuntu-advantage/status.json file is only created by a root user via an `sudo ua status` or `sudo ua attach `

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-06-20 Thread Robert Ancell
The warnings about the status.json file are due to the ubuntu-advantage client on these older systems not yet having the feature to write this file. When updated, this should work - that's correct, right @chad.smith? -- You received this bug notification because you are a member of Ubuntu Touch

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-06-19 Thread corrado venturini
Also on Hirsute Hippo is ok but gives error messages: corrado@corrado-n7-hippo:~$ time software-properties-gtk No ua status file written: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/status.json' real0m10,718s user0m2,522s sys 0m0,497s corrado@corrado-n7-hippo:~$

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-06-19 Thread corrado venturini
on Focal software-properties-gtk gives some error messages and seems very slow to start corrado@corrado-n5-focal:~$ time software-properties-gtk No ua status file written: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/status.json' No ua status file written: [Errno 2] No such

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-06-19 Thread corrado venturini
Installed from proposed on Focal: works fine! ** Attachment added: "Screenshot from 2021-06-19 20-24-30.png" https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1920836/+attachment/5505779/+files/Screenshot%20from%202021-06-19%2020-24-30.png -- You received this bug

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-06-18 Thread Timo Aaltonen
Hello Robert, or anyone else affected, Accepted software-properties into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source /software-properties/0.99.10.1 in a few hours, and then in the -proposed repository. Please help us by testing this new

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-06-11 Thread Launchpad Bug Tracker
This bug was fixed in the package software-properties - 0.99.13 --- software-properties (0.99.13) impish; urgency=medium * Catch exception if UA status file is not written -- Robert Ancell Fri, 11 Jun 2021 17:16:09 +1200 ** Changed in: software-properties (Ubuntu)

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-06-10 Thread Adolfo Jayme
** Changed in: software-properties (Ubuntu) Importance: Undecided => High ** Changed in: software-properties (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to software-properties in

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-28 Thread Robert Ancell
Bionic and focal branches/PPA also updated. -- 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/1920836 Title: Show Extended Security Maintenence status Status in

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-28 Thread Robert Ancell
I've updated the xenial branch and version in the PPA with the fixes requested, thanks! -- 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/1920836 Title: Show

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-28 Thread Robert Ancell
This change is based on the expectation that UA tools will be the version that is about to be SRUd. The old version gracefully fails with `ua status --format=json`, so should already effectively return (False, False). I didn't do an explicit check on the version as it's non-trivial to do and I'd

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-26 Thread Chad Smith
Another thing to note/expect: ua client in release in xenial and bionic at the moment is a completed incompatible commandine (which we are planning on SRUing prior to Xenial ESM, so `ua status --format=json` will not work on something < version 20. I'm fairly certain you shouldn't care to support

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-26 Thread Chad Smith
Thanks @robert-ancell for setting up the PPA. I tested on Xenial Ubuntu Desktop LiveCD and would like to report Failure on this implementation. Your use of subprocess is passing capture_output on xenial and that is raising an error in python before calling ua client. On a system attached to

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-24 Thread Robert Ancell
Merge request for master: https://code.launchpad.net/~robert-ancell/software-properties/+git/software-properties/+merge/400153 Other branches for SRUing: https://code.launchpad.net/~robert-ancell/software-properties/+git/software-properties/+ref/esm-focal

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-23 Thread Olivier Tilloy
** Changed in: software-properties (Ubuntu Xenial) Assignee: (unassigned) => Robert Ancell (robert-ancell) ** Changed in: software-properties (Ubuntu Bionic) Assignee: (unassigned) => Robert Ancell (robert-ancell) ** Changed in: software-properties (Ubuntu Focal) Assignee:

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-22 Thread Robert Ancell
Code is in: https://code.launchpad.net/~robert-ancell/software-properties/+git/software-properties/+ref/esm https://code.launchpad.net/~robert-ancell/software-properties/+git/software-properties/+ref/esm-xenial -- You received this bug notification because you are a member of Ubuntu Touch seeded

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-22 Thread Robert Ancell
I've made a PPA to test this: https://launchpad.net/~robert- ancell/+archive/ubuntu/software-properties -- 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/1920836

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-22 Thread Robert Ancell
** Also affects: software-properties (Ubuntu Hirsute) Importance: Undecided Status: New ** Also affects: software-properties (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: software-properties (Ubuntu Bionic) Importance: Undecided Status: New **

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-22 Thread Robert Ancell
** Description changed: [Impact] There is not currently a graphical method of determining if a system is subscribed to [Extended Security Maintenance](https://ubuntu.com/security/esm) updates. This is resolved by adding some [new

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-22 Thread Robert Ancell
** Attachment added: "New UI in xenial with ESM applied." https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1920836/+attachment/5479359/+files/Screenshot%20from%202021-03-23%2012-31-56.png ** Description changed: [Impact] - There is not currently a graphical method of

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-22 Thread Robert Ancell
** Attachment added: "New UI in xenial with ESM available" https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1920836/+attachment/5479358/+files/Screenshot%20from%202021-03-23%2012-32-22.png -- You received this bug notification because you are a member of Ubuntu Touch seeded

[Touch-packages] [Bug 1920836] Re: Show Extended Security Maintenence status

2021-03-22 Thread Robert Ancell
** Attachment added: "Current UI in xenial" https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1920836/+attachment/5479357/+files/Screenshot%20from%202021-03-23%2012-32-37.png -- You received this bug notification because you are a member of Ubuntu Touch seeded packages,