sts-sponsors team mailing list archive
-
sts-sponsors team
-
Mailing list archive
-
Message #01797
[Bug 1871494] Re: add lshw cmd into sosreport's hardware plugin
Hello Eric, or anyone else affected,
Accepted sosreport into focal-proposed. The package will build now and
be available at
https://launchpad.net/ubuntu/+source/sosreport/3.9-1ubuntu2.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.
** Changed in: sosreport (Ubuntu Focal)
Status: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-focal
--
You received this bug notification because you are a member of STS
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1871494
Title:
add lshw cmd into sosreport's hardware plugin
Status in sosreport package in Ubuntu:
Fix Released
Status in sosreport source package in Xenial:
In Progress
Status in sosreport source package in Bionic:
In Progress
Status in sosreport source package in Eoan:
In Progress
Status in sosreport source package in Focal:
Fix Committed
Status in sosreport source package in Groovy:
Fix Released
Bug description:
[Impact]
lshw(1) https://linux.die.net/man/1/lshw
* lshw is a small tool to extract detailed information on the hardware
configuration of the machine. It can report exact memory configuration,
firmware version, mainboard configuration, CPU version and speed,
cache configuration, bus speed, etc. on DMI-capable x86 or IA-64
systems and on some PowerPC machines (PowerMac G4 is known to work).
* Adding 'lshw' will help Canonical or third-party vendor using the
sosreport package to not having to ask 'lshw' in addition to sosreport.
This is a frequent command to run to troubleshoot/debug things
* Including hardware information is a helpful debug step to determine
issues found
[Test Case]
* Run sosreport in different customer scenarios:
server, desktop, cloud, hypervisor, instance (container, vm),
physical server, since this is specifically listing hardware
informations.
* For all distros:
- install sosreport from the proposed pocket
- run sosreport with default settings `sudo sosreport -a --config
sos.conf`
Or to just test hardware plugin `sosreport -o hardware --config
sos.conf`
* Extract archive and look at contents
- untar report file in /tmp/<sosreport.tar.gz>
- cd <sosreport folder>/sos_commands/hardware/
- less lshw
-- the ouput is information about the system's hardware
- look under "sos_logs" for warnings/errors.
- look under "sos_reports" for full report.
* Run `simple.sh`: A quick port of the travis unit tests to bash.
Generates various types of sosreports collection.
* Ensure simple.sh test passes
- wget https://raw.githubusercontent.com/sosreport/sos/master
/test/simple.sh
- execute command `sudo tests/simple.sh`
[Regression Potential]
* Command implicitly slows down python script
* Unit test failures
* Only affects the hardware plugin and won't affect core functionalities nor other plugins
* Lshw that is commonly used on system, the command cannot create any harm on the system (read only)
* If the command doesn't exist sosreport will continue and move on
* Lshw must be run as super user or it will only report partial information
[Other Info]
* Upstream commit:
https://github.com/sosreport/sos/pull/1994/commits/2dd5cd45a8381fa36ea99c85b526f9d79e526d91
[Original description]
* This is a wishlist to add the cmd 'lshw' into the hardware's
sosreport plugin
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/1871494/+subscriptions