/etc/pollinate/add-user-agent should be populated (in the server live env) to allow better identification of live clients
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.
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 |
tags: | added: rls-ff-incoming |
tags: | removed: rls-ff-incoming |
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 |
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.