Collect DCD file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-report (Ubuntu) |
Fix Released
|
Undecided
|
Didier Roche-Tolomelli | ||
Bionic |
Fix Released
|
Undecided
|
Didier Roche-Tolomelli |
Bug Description
[Impact]
* OEM images provided by Canonical and other companies use a tracking id called Distribution Channel Descriptor (DCD). There is interest of reporting this as part of ubuntu-report one.
[Test Case]
* Install the new version from -proposed
* run `ubuntu-report show`
-> check there are no DCD field in OEM on the outputed json
* Ship a valid DCD file as /var/lib/
* run `ubuntu-report show`
-> check that DCD field is part of the OEM stenza, and corresponds to the non commented full line string in /var/lib/
[Regression Potential]
* The only impact is for OEM shipping a DCD file. The field is ommitted if empty and have the same logic than other fields (not failing if any bug in that code path appears)
* Backed up via a lot of new and existing tests, checking corner cases like no valid file, empty file, no file, file with only commented, file with extra \n…
____
OEM use a tracking id called Distribution Channel Descriptor (DCD) located in .disk/ubuntu_
When this information exists ubuntu-report must collect the tracking id. The proposal is to store it in the OEM key:
[...]
"OEM": {
"Vendor": "Vendor Name",
"Product": "4287CTO",
"DCD": "<Tracking Id>
}
[...]
An example of content of a DCD file is:
"""""
# This is a distribution channel descriptor
# For more information see http://
canonical-
"""""
[1] https:/
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: ubuntu-report 1.2.0
ProcVersionSign
Uname: Linux 4.17.0-6-generic x86_64
ApportVersion: 2.20.10-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Aug 10 10:23:04 2018
Dependencies:
gcc-8-base 8.2.0-1ubuntu2
libc6 2.27-3ubuntu1
libgcc1 1:8.2.0-1ubuntu2
InstallationDate: Installed on 2014-07-15 (1487 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
SourcePackage: ubuntu-report
UpgradeStatus: Upgraded to cosmic on 2018-03-24 (138 days ago)
description: | updated |
description: | updated |
Changed in ubuntu-report (Ubuntu): | |
status: | New → Triaged |
Changed in ubuntu-report (Ubuntu Bionic): | |
status: | New → Triaged |
assignee: | nobody → Didier Roche (didrocks) |
Changed in ubuntu-report (Ubuntu): | |
assignee: | nobody → Didier Roche (didrocks) |
description: | updated |
I just have one question: do we keep the OEM field in ubiquity (the boolean true/false?). I think once we get DCD, this is of less value.
No need to SRU that, but maybe for bionic, WDYT?