linux-ras / ServiceReport

ServiceReport
GNU General Public License v2.0
5 stars 9 forks source link

Added support as cmdline provided plugin can be repaired by the tool #6

Closed PraveenPenguin closed 4 years ago

PraveenPenguin commented 4 years ago

This Patch add support that using -rp option user can provide single or multiple plugin and based on if plugin avilable it will repair and based on processing it print plugin status

Signed-off-by: Praveen K Pandey praveen@linux.vnet.ibm.com

PraveenPenguin commented 4 years ago

LOG:

root@system ServiceReport]# ./servicereport -rp KDump Package servicereport 2.2.1

Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Last metadata expiration check: 0:04:28 ago on Wed 04 Mar 2020 02:28:26 PM IST. Dependencies resolved.

Package Architecture Version Repository Size

Installing: sos noarch 3.7-6.el8_1 rhel8-repo-1 508 k

Transaction Summary

Install 1 Package

Total download size: 508 k Installed size: 1.5 M Downloading Packages: sos-3.7-6.el8_1.noarch.rpm 58 MB/s | 508 kB 00:00

Total 50 MB/s | 508 kB 00:00
Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : sos-3.7-6.el8_1.noarch 1/1 Running scriptlet: sos-3.7-6.el8_1.noarch 1/1 Verifying : sos-3.7-6.el8_1.noarch 1/1 Installed products updated.

Installed: sos-3.7-6.el8_1.noarch

Complete! Package availability check PASS

ppc64-diag PASS irqbalance PASS perf PASS sos PASS powerpc-utils PASS

[root@system ServiceReport]#

sourabhjains commented 4 years ago

Thanks, @PraveenPenguin for the contribution I will review your patch soon.

sourabhjains commented 4 years ago

Hello @PraveenPenguin

IIUC you want to add a new option that will allow users to run a subset of applicable plugins in both validate and repair mode? If yes then how this new option is different from --plugins option along with --repair?

For example: ./servicereport --plugins kdump package --repair

Thanks, Sourabh Jain