aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Walker <kwalker@redhat.com>2020-02-13 14:52:34 -0500
committerBryn M. Reeves <bmr@redhat.com>2020-02-14 19:16:20 +0000
commit58031c8779750e6162628bdb9730d4f23c283ce3 (patch)
treed7da06061e8b13ed4a1077444408c3acf014340e
parent75e921157bb7b63642648fabeeac7f9795a1940f (diff)
downloadsos-58031c8779750e6162628bdb9730d4f23c283ce3.tar.gz
[yum] Add "yum -C repolist --verbose" command output
Following the upstream DNF commit below, the "yum -C repolist" command output will no longer include package count information: c4f57476 Do not load metadata for repolist commands... This information is helpful for those searching for client-side mismatches to upstream repositories. Such as in the case of two repositories, where one is missing content that another includes, this information can be crucial for determinining the source of the problem. This change includes a "yum -C repolist --verbose" command in the resulting sosreport which includes information such as the following: Repo-id : <repoid> Repo-name : <full reponame> Repo-revision : <version> Repo-updated : <datestamp> Repo-pkgs : <total repo package count> Repo-available-pkgs: <package count> Repo-size : <size> Repo-baseurl : <url> Repo-expire : <datestamp> Repo-filename : <path> Resolves: #1951 Signed-off-by: Kyle Walker <kwalker@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/yum.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sos/plugins/yum.py b/sos/plugins/yum.py
index cc0ddfda..f0d7c60c 100644
--- a/sos/plugins/yum.py
+++ b/sos/plugins/yum.py
@@ -41,6 +41,10 @@ class Yum(Plugin, RedHatPlugin):
# Get a list of channels the machine is subscribed to.
self.add_cmd_output("yum -C repolist")
+ # Get the same list, but with various statistics related to its
+ # contents such as package count.
+ self.add_cmd_output("yum -C repolist --verbose")
+
# Get list of available plugins and their configuration files.
if os.path.exists(YUM_PLUGIN_PATH) and os.path.isdir(YUM_PLUGIN_PATH):
plugins = ""