[Bug 1990450] Re: Show potential Ubuntu Pro updates and apt news messages

2024-04-16 Thread Nathan Teodosio
In a Xenial virtual machine, installed update-manager from proposed
(.21), confirmed there were updates available with pro security-status.

With unattached machine, opened update-manager and confirmed the 'Ubuntu
Pro security updates (Enable in Settings...)' section at the bottom of
the updates list.

I attached the machine to Pro, restarted update-manager and verified
that the section was now 'Ubuntu Pro security updates' with installable
Pro packages.

The news were too old according to motd.ubuntu.com and therefore I did
the Nginx procedure as in #31 and confirmed that a news section shows up
with the set up message.


** Tags removed: verification-needed-xenial
** Tags added: verification-dne-xenial

** Tags removed: verification-dne-xenial verification-needed
** Tags added: verification-done verification-done-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1990450

Title:
  Show potential Ubuntu Pro updates and apt news messages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1990450/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1990450] Re: Show potential Ubuntu Pro updates and apt news messages

2024-03-14 Thread Andreas Hasenack
I see 1:16.04.21 is in xenial unapproved, and it fixes the above crash.

** Changed in: update-manager (Ubuntu Xenial)
   Status: Fix Released => Fix Committed

** Tags removed: verification-done-xenial
** Tags added: verification-needed-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1990450

Title:
  Show potential Ubuntu Pro updates and apt news messages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1990450/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1990450] Re: Show potential Ubuntu Pro updates and apt news messages

2024-03-14 Thread Andreas Hasenack
I mistakenly released this for xenial without noticing there are DEP8
errors in that ubuntu release. For some reason, they were not added as a
comment to this bug, I suppose it has something to do with xenial being
very much out of standard support.

In any case, the errors are:
256s autopkgtest [13:46:29]: test nose-tests: [---
256s 
256s ** (nosetests3:7312): WARNING **: Error retrieving accessibility bus 
address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was 
not provided by any .service files
256s /tmp/autopkgtest.cAx6Rc/build.PMT/src/UpdateManager/Dialogs.py:25: 
PyGIWarning: Gtk was imported without specifying a version first. Use 
gi.require_version('Gtk', '3.0') before import to ensure that the right version 
gets loaded.
256s   from gi.repository import Gtk
261s 
./tmp/autopkgtest.cAx6Rc/build.PMT/src/tests/../UpdateManager/Dialogs.py:195:1:
 E302 expected 2 blank lines, found 1
261s 
/tmp/autopkgtest.cAx6Rc/build.PMT/src/tests/../UpdateManager/UpdateManager.py:234:80:
 E501 line too long (99 > 79 characters)
269s F..E...E.
269s ==
269s ERROR: test_no_stop_no_updates (test_stop_update.TestStopUpdate)
269s --
269s Traceback (most recent call last):
269s   File "/tmp/autopkgtest.cAx6Rc/build.PMT/src/tests/test_stop_update.py", 
line 34, in test_no_stop_no_updates
269s cancelled_update=False)
269s   File 
"/tmp/autopkgtest.cAx6Rc/build.PMT/src/UpdateManager/UpdateManager.py", line 
279, in _make_available_pane
269s return HWEUpgradeDialog(self)
269s NameError: name 'HWEUpgradeDialog' is not defined
269s 
269s ==
269s ERROR: test_error_no_updates (test_update_error.TestUpdateManagerError)
269s --
269s Traceback (most recent call last):
269s   File "/tmp/autopkgtest.cAx6Rc/build.PMT/src/tests/test_update_error.py", 
line 31, in test_error_no_updates
269s error_occurred=True)
269s   File 
"/tmp/autopkgtest.cAx6Rc/build.PMT/src/UpdateManager/UpdateManager.py", line 
279, in _make_available_pane
269s return HWEUpgradeDialog(self)
269s NameError: name 'HWEUpgradeDialog' is not defined
269s 
269s ==
269s FAIL: test_pep8_clean (test_pep8.TestPep8Clean)
269s --
269s Traceback (most recent call last):
269s   File "/tmp/autopkgtest.cAx6Rc/build.PMT/src/tests/test_pep8.py", line 
33, in test_pep8_clean
269s self.assertEqual(0, ret_code)
269s AssertionError: 0 != 1
269s 
269s --
269s Ran 90 tests in 12.808s

The pep8 one doesn't concern me, but the missing HWEUpgradeDialog does.
This was introduced in 16.04.18, and indeed is not defined anywhere else
in the code.

It was also not seen in the verification, meaning some specific event or
situation needs to exist for that code path to be traversed.

To trigger that code, one has to:
a) apply all available updates
b) not be in a "needs reboot" state
c) configure update-manager to not tell you about a new LTS being available

Then we see the crash, and a bit earlier than in the test actually:
Traceback (most recent call last):
  File 
"/usr/lib/python3/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py",
 line 248, in _on_finished
trans_failed=trans_failed)
  File "/usr/lib/python3/dist-packages/UpdateManager/backend/__init__.py", line 
95, in _action_done
self.window_main.start_available(is_cancelled_update)
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 
228, in start_available
cancelled_update, error_occurred)
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 
278, in _make_available_pane
elif self.hwe_replacement_packages:
AttributeError: 'UpdateManager' object has no attribute 
'hwe_replacement_packages'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1990450

Title:
  Show potential Ubuntu Pro updates and apt news messages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1990450/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1990450] Re: Show potential Ubuntu Pro updates and apt news messages

2024-03-14 Thread Launchpad Bug Tracker
This bug was fixed in the package update-manager - 1:16.04.20

---
update-manager (1:16.04.20) xenial; urgency=medium

  * d/control: Depend on ubuntu-advantage-tools >= 30~.
Fixes edge case whereby the program crashes upon an incomplete
response from ua security-status (LP: #2049785).
  * The New Release dialog should take precedence over a list of updates dialog
if the latter would only show Ubuntu Pro updates in an unattached system.
(LP: #2051115).

update-manager (1:16.04.19) xenial; urgency=medium

  * Add back removed widgets to UI file to fix crash when updating
Upgrade Manager from inside itself (LP: #2045918).

update-manager (1:16.04.18) xenial; urgency=medium

  * Implement the new Ubuntu Pro design (lp: #1990450).
- Fuse the description and changes tabs into a single view.
- Add button to attach to enable Ubuntu Pro if it is the only action
  available.
- Ubuntu base -> System components.
- Fix Ubuntu Pro item not being a parent group of its corresponding
  packages.
- Fix incorrect available version for Ubuntu Pro updates in unattached case
  (LP: #2043425).

 -- Nathan Pratta Teodosio   Mon, 22 Jan
2024 21:39:36 +0100

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1990450

Title:
  Show potential Ubuntu Pro updates and apt news messages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1990450/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1990450] Re: Show potential Ubuntu Pro updates and apt news messages

2024-03-14 Thread Launchpad Bug Tracker
This bug was fixed in the package update-manager - 1:18.04.11.23

---
update-manager (1:18.04.11.23) bionic; urgency=medium

  * d/control: Depend on ubuntu-advantage-tools >= 30~.
Fixes edge case whereby the program crashes upon an incomplete
response from ua security-status (LP: #2049785).
  * The New Release dialog should take precedence over a list of updates dialog
if the latter would only show Ubuntu Pro updates in an unattached system.
(LP: #2051115).

update-manager (1:18.04.11.22) bionic; urgency=medium

  * Add back removed widgets to UI file to fix crash when updating
Upgrade Manager from inside itself (LP: #2045918).

update-manager (1:18.04.11.21) bionic; urgency=medium

  * Fix incorrect available version for Ubuntu Pro updates in unattached case
(LP: #2043425).

update-manager (1:18.04.11.20) bionic; urgency=medium

  * Ubuntu Pro (LP: #1990450):
- fix another linter error which was created while fixing a missing
  space in the previous upload...

update-manager (1:18.04.11.19) bionic; urgency=medium

  * Ubuntu Pro (LP: #1990450):
- Address linter errors that cause autopkgtest to fail.

update-manager (1:18.04.11.18) bionic; urgency=medium

  * Ubuntu Pro (LP: #1990450):
- Show Ubuntu Pro packages, whether the system is attached to Ubuntu Pro
  or not.
- Replace Install now button by Enable Ubuntu Pro button when only Ubuntu
  Pro packages are available and the machine is not attached.
- Fix checkbox and expander widget from overlapping.
- Add News pane in a expander.
- Replace notebook with Description and Changes tabs by a pane.

update-manager (1:18.04.11.17) bionic; urgency=medium

  * Fix Ubuntu Pro updates checkbox and expander widget from overlapping
(LP: #1990450)

update-manager (1:18.04.11.16) bionic; urgency=medium

  * Update of the parsing for pro client changes (lp: #1990450)

update-manager (1:18.04.11.15) bionic; urgency=medium

  * Show pending Ubuntu pro packages (LP: #1990450)

update-manager (1:18.04.11.14) bionic; urgency=medium

  * tests/test_meta_release_core.py: switch a test from using lucid to bionic
as precise was removed from the archive. (LP: #1929865)

 -- Nathan Pratta Teodosio   Mon, 22 Jan
2024 21:36:03 +0100

** Changed in: update-manager (Ubuntu Bionic)
   Status: Fix Committed => Fix Released

** Changed in: update-manager (Ubuntu Xenial)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1990450

Title:
  Show potential Ubuntu Pro updates and apt news messages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1990450/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1990450] Re: Show potential Ubuntu Pro updates and apt news messages

2024-02-26 Thread Nathan Teodosio
In a Focal virtual machine, installed update-manager from proposed
(.20), confirmed there were updates available with pro security-status.

With unattached machine, opened update-manager and confirmed the 'Ubuntu
Pro security updates (Enable in Settings...)' section at the bottom of
the updates list.

I attached the machine to Pro, restarted update-manager and verified
that the section was now 'Ubuntu Pro security updates' with installable
Pro packages.

The news were too old according to motd.ubuntu.com and therefore I did
the Nginx procedure as in #31 and confirmed that a news section shows up
with the set up message.


** Tags removed: verification-needed-focal
** Tags added: verification-done-focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1990450

Title:
  Show potential Ubuntu Pro updates and apt news messages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1990450/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs