Add information from lscpu

Bug #1777651 reported by Jean-Baptiste Lallement
8
This bug affects 1 person
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]
 * We have some missing information on our reporting tool to determine reliably the CPU type without a manual mapping. Having those ones through lspcu is a conventient way to gather them instead of using /proc/cpuinfo.

[Test Case]
 1. Install new ubuntu-report
 2. ubuntu-report show
   -> check that "CPU" contains something similar to:
"CPU": {
    "OpMode": "32-bit, 64-bit",
    "CPUs": "8",
    "Threads": "2",
    "Cores": "4",
    "Sockets": "1",
    "Vendor": "Genuine",
    "Family": "6",
    "Model": "158",
    "Stepping": "10",
    "Name": "Intius Corus i5-8300H CPU @ 2.30GHz",
    "Virtualization": "VT-x"
  },
 3. Test as well under a vm and check for additional "Hypervisor" and "VirtualizationType" fields.

[Regression Potential]
 * Test software is heavily tested. We updated the tests and control via golden files that the output is what we expect in multiple case
 * In case of an error (parsing or command), the entire field "CPU" is ignored, and not part of the report, but doesn't block sending the overall report.

----

lscpu is a convenient way to gather information about the cpu and provide information that is currently difficult to calculate or guess like the name of the cpu or the type of hypervisor.

Could you add something similar to the following information to the json? It's a slightly modified version of the output of lscpu -J

"lscpu": [
    "Architecture": "x86_64",
    "OpMode": "32-bit, 64-bit",
    "CPU": "6",
    "Vendor": "AuthenticAMD",
    "Family": "16",
    "Model": "10",
    "Name": "AMD Phenom(tm) II X6 1055T Processor",
    "Stepping": "0",
    "Virtualization": "AMD-V",
    "Hypervisor": "KVM",
}

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: ubuntu-report 1.1.0cosmic
ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17
Uname: Linux 4.15.0-22-generic x86_64
ApportVersion: 2.20.10-0ubuntu3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Jun 19 15:05:01 2018
Dependencies:
 gcc-8-base 8.1.0-5ubuntu1
 libc6 2.27-3ubuntu1
 libgcc1 1:8.1.0-5ubuntu1
InstallationDate: Installed on 2014-07-15 (1435 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
SourcePackage: ubuntu-report
UpgradeStatus: Upgraded to cosmic on 2018-03-24 (86 days ago)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
description: updated
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Removed architecture as it's been agreed to keep it outside.
Also, "CPU" as "CPUS".

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

This bug was fixed in the package ubuntu-report - 1.2.0

---------------
ubuntu-report (1.2.0) cosmic; urgency=medium

  * Add more information to determine CPU (LP: #1777651)
  * Refactor some test helpers to enable running lscpu command instead
    of looking at /proc/cpuinfo
  * Fix some typos and increase some timeouts in tests.

 -- Didier Roche <email address hidden> Wed, 20 Jun 2018 12:22:34 +0200

Changed in ubuntu-report (Ubuntu):
status: New → Fix Released
Changed in ubuntu-report (Ubuntu):
assignee: nobody → Didier Roche (didrocks)
Changed in ubuntu-report (Ubuntu Bionic):
assignee: nobody → Didier Roche (didrocks)
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Jean-Baptiste, or anyone else affected,

Accepted ubuntu-report into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-report/1.2.0~bionic 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 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!

Changed in ubuntu-report (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-bionic
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

SRU verification for Bionic:
I have reproduced the problem with ubuntu-report 1.1.0 in bionic-updates and have verified that the version of ubuntu-report 1.2.0~bionic in -proposed fixes the issue.

Marking as verification-done

tags: added: verification-done verification-done-bionic
removed: verification-needed verification-needed-bionic
Revision history for this message
Robie Basak (racb) wrote : Update Released

The verification of the Stable Release Update for ubuntu-report has completed successfully and the package has now been 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-report - 1.2.0~bionic

---------------
ubuntu-report (1.2.0~bionic) bionic; urgency=medium

  * Add more information to determine CPU (LP: #1777651)
  * Refactor some test helpers to enable running lscpu command instead
    of looking at /proc/cpuinfo
  * Fix some typos and increase some timeouts in tests.
  * debian/gbp.conf: remove prebuild hook as exported in build-already now.
    This avoid unrelated files like Travis artefacts.

 -- Didier Roche <email address hidden> Wed, 20 Jun 2018 12:59:38 +0200

Changed in ubuntu-report (Ubuntu Bionic):
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.