/etc/pollinate/add-user-agent should be populated (in the server live env) to allow better identification of live clients

Bug #1853912 reported by Steve Langasek
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Fix Released
High
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

Pollinate provides various bits of information in the user agent to allow gathering of statistics about Ubuntu clients. Unfortunately, the 'subiquity' tag is only added (via curtin->cloud-init) to the user agent tag in the *target* system; the live environment, which also runs pollinate for entropy gathering, does not have any such tag. This makes it impossible to distinguish booted live server images from other "generic" clients in the data.

It would be valuable to have a tag identifying the live server image for statistical and debugging purposes.

I would suggest using 'live/<serial>' as a tag, where <serial> is the image build serial from /mnt/.disk/info.

This probably needs to be done by casper reading the file and synthesizing the content on the live overlay.

[Test Case]

 * Boot subiquity live session
 * Run $ pollinate --print-user-agent
 * Check that it contains ISO .disk/info information

[Regression Potential]

 * User-agent configuration support is in place in bionic and used by other images (i.e. cloud). This completes configuring pollinate in subiquity images, in a similar way as is done on other images.

Steve Langasek (vorlon)
affects: livecd-rootfs (Ubuntu) → casper (Ubuntu)
summary: - /etc/pollinate/add-user-agent should be populated in the (server live
+ /etc/pollinate/add-user-agent should be populated (in the server live
env) to allow better identification of live clients
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

In general I would prefer to do more things in livecd-rootfs and fewer in casper, but if you need the device serial then yeah, I guess we need to do this in casper.

Changed in casper (Ubuntu):
status: New → Triaged
tags: added: rls-ff-incoming
tags: removed: rls-ff-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package casper - 1.436

---------------
casper (1.436) focal; urgency=medium

  * Configure pollinate, if installed, in the live session to include image
    serial in the user agent. (LP: #1853912)

 -- Michael Hudson-Doyle <email address hidden> Wed, 18 Dec 2019 09:53:24 +1300

Changed in casper (Ubuntu Focal):
status: Triaged → Fix Released
tags: added: id-5ddc59e338350f56f906d247
description: updated
Changed in casper (Ubuntu Bionic):
milestone: none → ubuntu-18.04.4
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → High
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Steve, or anyone else affected,

Accepted casper into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/casper/1.394.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. To properly test it you will need to obtain and boot a daily build of a Live CD for bionic. 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 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.

Changed in casper (Ubuntu Bionic):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-bionic
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

The package in bionic-proposed lacked the executable bit on the new script. Have reuploaded it with that bit set.

tags: added: verification-failed-bionic
removed: verification-needed verification-needed-bionic
Revision history for this message
Adam Conrad (adconrad) wrote :

Hello Steve, or anyone else affected,

Accepted casper into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/casper/1.394.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. To properly test it you will need to obtain and boot a daily build of a Live CD for bionic. 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 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 verification-needed-bionic
removed: verification-failed-bionic
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

That one works better, picture attached.

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

This bug was fixed in the package casper - 1.394.2

---------------
casper (1.394.2) bionic; urgency=medium

  * Add +x bit to scripts/casper-bottom/57pollinate.

casper (1.394.1) bionic; urgency=medium

  [ Michael Hudson-Doyle ]
  * Configure pollinate, if installed, in the live session to include image
    serial in the user agent. (LP: #1853912)

 -- Michael Hudson-Doyle <email address hidden> Thu, 23 Jan 2020 10:05:42 +1300

Changed in casper (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for casper 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.

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.