SRU of ubuntu-advantage-desktop-daemon to older series

Bug #1980781 reported by Robert Ancell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-desktop-daemon (Ubuntu)
Fix Released
High
Unassigned
Xenial
Fix Released
High
Sebastien Bacher
Bionic
Fix Released
High
Sebastien Bacher
Focal
Fix Released
High
Sebastien Bacher

Bug Description

[Impact]

ubuntu-advantage-desktop-daemon is a service we added in 22.04 to let desktop application interact easily with Ubuntu Advantage

adsys makes use of is to check if the system is connected to UA. This is supported in 20.04 LTS but until now the daemon was not available there.
Installing the daemon enables advanced usages (scripts, privilege delegation…) which require an Ubuntu Pro account

Ubuntu Pro integration is being added to software-properties which also require the service to be available.

[Test Plan]

A. Verify the service

1. Install:
$ sudo apt install ubuntu-advantage-desktop-daemon
2. Check able to access daemon
$ gdbus call --system --dest com.canonical.UbuntuAdvantage --object-path /com/canonical/UbuntuAdvantage/Manager --method org.freedesktop.DBus.Properties.GetAll 'com.canonical.UbuntuAdvantage.Manager'
({'Attached': <true>, 'DaemonVersion': <'1.8'>},)

B. Software-properties

Verify that the new 'Ubuntu Pro' page is working as expected, SRU bug #, especially that it reflects the correct status and that attaching/detaching a token and enabling/disabling services is working

C. Adsys (focal)

1. Ensure that you have an Ubuntu Advantage subcription enabled.
2. Setup some scripts under AD to be executed, one for machine scripts (on startup), one for user scripts (on login). Those scripts can create some temporary files under /tmp for instance.
3. Reboot and login on the Ubuntu laptop connected with AD by adsys.
4. Check that the scripts were executed by testing that the created file under /tmp are present.

[Where problems could occur]

This is a code that has not previously been used on 20.04 and thus could trigger new bugs. It has been used for since jammy though without major issues.

A. The service itself

The service shouldn't be active unless it's needed. If you don't have ubuntu advantage nor adsys configured check that the service is not loaded.
The service should low on resource usage, check that it's the case by checking the RAM and CPU consumption.

B. Software-properties

The Ubuntu Pro tab didn't exist before so there should be no regression possible there due to the service. The livepatch enablement is handled through the service as part of UA now so check that livepatch is correctly working still on upgraded systems

C. Adsys (focal)

The behaviour change in adsys should be limited to enabling features which weren't available in focal before but we should ensure those are correctly working and not providing a buggy user experience

Changed in ubuntu-advantage-desktop-daemon (Ubuntu):
status: New → Fix Committed
status: Fix Committed → In Progress
importance: Undecided → High
assignee: nobody → Robert Ancell (robert-ancell)
Changed in ubuntu-advantage-desktop-daemon (Ubuntu Focal):
status: New → In Progress
assignee: nobody → Robert Ancell (robert-ancell)
Changed in ubuntu-advantage-desktop-daemon (Ubuntu):
assignee: Robert Ancell (robert-ancell) → nobody
status: In Progress → Fix Released
Changed in ubuntu-advantage-desktop-daemon (Ubuntu Focal):
importance: Undecided → High
description: updated
Changed in ubuntu-advantage-desktop-daemon (Ubuntu Focal):
assignee: Robert Ancell (robert-ancell) → Sebastien Bacher (seb128)
description: updated
description: updated
summary: - ubuntu-advantage-desktop-daemon required by adsys in 20.04 LTS
+ SRU of ubuntu-advantage-desktop-daemon to older series
Revision history for this message
Sebastien Bacher (seb128) wrote :

Uploaded to focal and bionic queues now

Changed in ubuntu-advantage-desktop-daemon (Ubuntu Focal):
status: In Progress → Fix Committed
description: updated
Changed in ubuntu-advantage-desktop-daemon (Ubuntu Bionic):
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Sebastien Bacher (seb128)
Changed in ubuntu-advantage-desktop-daemon (Ubuntu Xenial):
assignee: nobody → Sebastien Bacher (seb128)
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Robert, or anyone else affected,

Accepted ubuntu-advantage-desktop-daemon into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-advantage-desktop-daemon/1.10~20.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-focal
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Tested on a focal VM, was able to install ubuntu-advantage-desktop-daemon 1.10~20.04.1 and successfully connect this machine to UA using software-properties.

I did not test the adsys functionality (so didn't mark this a verification done).

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello Robert, or anyone else affected,

Accepted ubuntu-advantage-desktop-daemon into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-advantage-desktop-daemon/1.10~18.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed-bionic
Revision history for this message
Robert Ancell (robert-ancell) wrote :

ubuntu-advantage-desktop-daemon doesn't seem available in bionic - is is stuck in the New queue?

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Tested on a bionic VM, was able to install ubuntu-advantage-desktop-daemon 1.10~18.04.1 and successfully connect this machine to UA using software-properties.

tags: added: verification-done-bionic
removed: verification-needed-bionic
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote (last edit ):

The adsys part of focal has been tested and is working as expected. As robert tested the rest of focal, marking as verification done.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for ubuntu-advantage-desktop-daemon has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-advantage-desktop-daemon - 1.10~18.04.1

---------------
ubuntu-advantage-desktop-daemon (1.10~18.04.1) bionic; urgency=medium

  * Backport the ubuntu-advantage-desktop-daemon service to 18.04
    (lp: #1980781)

 -- Sebastien Bacher <email address hidden> Tue, 20 Sep 2022 18:27:07 +0200

Changed in ubuntu-advantage-desktop-daemon (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-advantage-desktop-daemon - 1.10~20.04.1

---------------
ubuntu-advantage-desktop-daemon (1.10~20.04.1) focal; urgency=medium

  * Backport the ubuntu-advantage-desktop-daemon service to 20.04
    (lp: #1980781)

 -- Sebastien Bacher <email address hidden> Tue, 20 Sep 2022 18:27:07 +0200

Changed in ubuntu-advantage-desktop-daemon (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Robert Ancell (robert-ancell) wrote (last edit ):

Tested on a xenial VM, was able to install ubuntu-advantage-desktop-daemon 1.10~16.04.1 and successfully connect this machine to UA using software-properties.

tags: added: verification-done-xenial
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-advantage-desktop-daemon - 1.10~16.04.1

---------------
ubuntu-advantage-desktop-daemon (1.10~16.04.1) xenial; urgency=medium

  * Backport the ubuntu-advantage-desktop-daemon service to 16.04
    (lp: #1980781)
  * debian/compat, debian/control, debian/rules:
    - Lower dh level to 9, specify 'with systemd' which isn't default
  * debian/control, debian/patches/build_without_meson.patch:
    - build using autotools instead of meson since the xenial version
      is outdated and lacks the required features
  * debian/control:
    - require an ubuntu-advantage-tools version recent enough
  * debian/patches/older_systemd_options.patch:
    - don't use systemd options which aren't available in xenial

 -- Sebastien Bacher <email address hidden> Tue, 20 Sep 2022 18:27:07 +0200

Changed in ubuntu-advantage-desktop-daemon (Ubuntu Xenial):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.