add lshw cmd into sosreport's hardware plugin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sosreport (Ubuntu) |
Fix Released
|
Low
|
Heather Lemon | ||
Xenial |
Fix Released
|
Low
|
Heather Lemon | ||
Bionic |
Fix Released
|
Low
|
Heather Lemon | ||
Eoan |
Fix Released
|
Low
|
Heather Lemon | ||
Focal |
Fix Released
|
Low
|
Heather Lemon | ||
Groovy |
Fix Released
|
Low
|
Heather Lemon |
Bug Description
[Impact]
lshw(1) https:/
* 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
- cd <sosreport folder>
- 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:/
/
- 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:/
[Original description]
* This is a wishlist to add the cmd 'lshw' into the hardware's sosreport plugin
tags: | added: sts sts-sponsor-volunteer |
Changed in sosreport (Ubuntu Focal): | |
status: | New → In Progress |
assignee: | nobody → Heather Lemon (hypothetical-lemon) |
Changed in sosreport (Ubuntu Eoan): | |
status: | New → In Progress |
Changed in sosreport (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in sosreport (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in sosreport (Ubuntu Eoan): | |
assignee: | nobody → Heather Lemon (hypothetical-lemon) |
Changed in sosreport (Ubuntu Bionic): | |
assignee: | nobody → Heather Lemon (hypothetical-lemon) |
Changed in sosreport (Ubuntu Xenial): | |
assignee: | nobody → Heather Lemon (hypothetical-lemon) |
importance: | Undecided → Wishlist |
Changed in sosreport (Ubuntu Bionic): | |
importance: | Undecided → Wishlist |
Changed in sosreport (Ubuntu Eoan): | |
importance: | Undecided → Wishlist |
Changed in sosreport (Ubuntu Focal): | |
importance: | Undecided → Wishlist |
description: | updated |
description: | updated |
tags: |
added: sts-sponsor-slashd removed: sts-sponsor-volunteer |
Changed in sosreport (Ubuntu Focal): | |
importance: | Wishlist → Low |
Changed in sosreport (Ubuntu Eoan): | |
importance: | Wishlist → Low |
Changed in sosreport (Ubuntu Bionic): | |
importance: | Wishlist → Low |
Changed in sosreport (Ubuntu Xenial): | |
importance: | Wishlist → Low |
debdiff for focal lshw command patch