Commit 59b372c
committed
Introduce a new option to mark plugins optional
ServiceReport by default runs all the plugins available inside the
validate package. The validate package does have some workload specific
plugin which may not required to run all the time. For example HTX plugin
has limited use case (in testing OpenPOWER systems) and we may not
required to test HTX configuration on every machine by default.
This patch adds an infrastructure to mark plugins optional which are
specific to a particular workload and may not required to run by default.
If a plugin is marked optional then it will not get executed by default.
The format of listing the applicable plugins using -l (--list) option has
changed. A new column (Tag) has been introduced that shows a plugin is
optional or mandatory.
Listing applicable plugins:
$ ./servicereport -l
servicereport 2.2.1
The following plugins are applicable:
Name Tags Description
daemon M Daemon availability checks
fadump M FADump configuration check
htx M HTX configuration check
package M Package availability check
Tag Info:
M: Mandatory plugin (runs by default)
O: Optional plugin (use -o option to enable)
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>1 parent c9feebe commit 59b372c
3 files changed
Lines changed: 100 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
59 | 105 | | |
60 | 106 | | |
61 | 107 | | |
62 | 108 | | |
63 | | - | |
| 109 | + | |
64 | 110 | | |
| 111 | + | |
65 | 112 | | |
66 | | - | |
67 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
68 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
69 | 123 | | |
70 | 124 | | |
71 | 125 | | |
| |||
82 | 136 | | |
83 | 137 | | |
84 | 138 | | |
85 | | - | |
| 139 | + | |
86 | 140 | | |
87 | 141 | | |
88 | 142 | | |
| |||
95 | 149 | | |
96 | 150 | | |
97 | 151 | | |
98 | | - | |
99 | 152 | | |
100 | 153 | | |
101 | 154 | | |
| |||
108 | 161 | | |
109 | 162 | | |
110 | 163 | | |
111 | | - | |
| 164 | + | |
112 | 165 | | |
113 | | - | |
| 166 | + | |
114 | 167 | | |
115 | | - | |
| 168 | + | |
116 | 169 | | |
117 | 170 | | |
118 | 171 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
0 commit comments