|
|
4b82b4 |
From b5389aa195675f473acdd22f20017a8854ff82d0 Mon Sep 17 00:00:00 2001
|
|
|
4b82b4 |
From: Pavel Moravec <pmoravec@redhat.com>
|
|
|
4b82b4 |
Date: Wed, 16 Feb 2022 08:43:32 +0100
|
|
|
4b82b4 |
Subject: [PATCH] [man] Mention sos-help in main sos manpage
|
|
|
4b82b4 |
|
|
|
4b82b4 |
Related to #2860
|
|
|
4b82b4 |
|
|
|
4b82b4 |
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
4b82b4 |
---
|
|
|
4b82b4 |
man/en/sos.1 | 8 ++++++++
|
|
|
4b82b4 |
1 file changed, 8 insertions(+)
|
|
|
4b82b4 |
|
|
|
4b82b4 |
diff --git a/man/en/sos.1 b/man/en/sos.1
|
|
|
4b82b4 |
index ce4918f99..c335b7e10 100644
|
|
|
4b82b4 |
--- a/man/en/sos.1
|
|
|
4b82b4 |
+++ b/man/en/sos.1
|
|
|
4b82b4 |
@@ -67,6 +67,14 @@ May be invoked via either \fBsos clean\fR, \fBsos cleaner\fR, \fBsos mask\fR,
|
|
|
4b82b4 |
or via the \fB--clean\fR, \fB--cleaner\fR or \fB --mask\fR options
|
|
|
4b82b4 |
for \fBreport\fR and \fBcollect\fR.
|
|
|
4b82b4 |
|
|
|
4b82b4 |
+.TP
|
|
|
4b82b4 |
+.B help
|
|
|
4b82b4 |
+This subcommand is used to retrieve more detailed information on the various SoS
|
|
|
4b82b4 |
+commands and components than is directly available in either other manpages or
|
|
|
4b82b4 |
+--help output.
|
|
|
4b82b4 |
+
|
|
|
4b82b4 |
+See \fB sos help --help\fR and \fB man sos-help\fR for more information.
|
|
|
4b82b4 |
+
|
|
|
4b82b4 |
.SH GLOBAL OPTIONS
|
|
|
4b82b4 |
sos components provide their own set of options, however the following are available
|
|
|
4b82b4 |
to be set across all components.
|
|
|
4b82b4 |
From ac4eb48fa35c13b99ada41540831412480babf8d Mon Sep 17 00:00:00 2001
|
|
|
4b82b4 |
From: Pavel Moravec <pmoravec@redhat.com>
|
|
|
4b82b4 |
Date: Wed, 16 Feb 2022 08:44:16 +0100
|
|
|
4b82b4 |
Subject: [PATCH] [setup] Add sos-help to build process
|
|
|
4b82b4 |
|
|
|
4b82b4 |
Resolves: #2860
|
|
|
4b82b4 |
Closes: #2861
|
|
|
4b82b4 |
|
|
|
4b82b4 |
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
4b82b4 |
---
|
|
|
4b82b4 |
setup.py | 5 +++--
|
|
|
4b82b4 |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
4b82b4 |
|
|
|
4b82b4 |
diff --git a/setup.py b/setup.py
|
|
|
4b82b4 |
index 25e87a71b..8db8641f0 100644
|
|
|
4b82b4 |
--- a/setup.py
|
|
|
4b82b4 |
+++ b/setup.py
|
|
|
4b82b4 |
@@ -90,7 +90,7 @@ def copy_file (self, filename, dirname):
|
|
|
4b82b4 |
('share/man/man1', ['man/en/sosreport.1', 'man/en/sos-report.1',
|
|
|
4b82b4 |
'man/en/sos.1', 'man/en/sos-collect.1',
|
|
|
4b82b4 |
'man/en/sos-collector.1', 'man/en/sos-clean.1',
|
|
|
4b82b4 |
- 'man/en/sos-mask.1']),
|
|
|
4b82b4 |
+ 'man/en/sos-mask.1', 'man/en/sos-help.1']),
|
|
|
4b82b4 |
('share/man/man5', ['man/en/sos.conf.5']),
|
|
|
4b82b4 |
('share/licenses/sos', ['LICENSE']),
|
|
|
4b82b4 |
('share/doc/sos', ['AUTHORS', 'README.md']),
|
|
|
4b82b4 |
@@ -102,7 +102,8 @@ def copy_file (self, filename, dirname):
|
|
|
4b82b4 |
'sos.policies.package_managers', 'sos.policies.init_systems',
|
|
|
4b82b4 |
'sos.report', 'sos.report.plugins', 'sos.collector',
|
|
|
4b82b4 |
'sos.collector.clusters', 'sos.collector.transports', 'sos.cleaner',
|
|
|
4b82b4 |
- 'sos.cleaner.mappings', 'sos.cleaner.parsers', 'sos.cleaner.archives'
|
|
|
4b82b4 |
+ 'sos.cleaner.mappings', 'sos.cleaner.parsers', 'sos.cleaner.archives',
|
|
|
4b82b4 |
+ 'sos.help'
|
|
|
4b82b4 |
],
|
|
|
4b82b4 |
cmdclass=cmdclass,
|
|
|
4b82b4 |
command_options=command_options,
|
|
|
4b82b4 |
From de9b020a72d1ceda39587db4c6d5acf72cd90da2 Mon Sep 17 00:00:00 2001
|
|
|
4b82b4 |
From: Fernando Royo <froyo@redhat.com>
|
|
|
4b82b4 |
Date: Tue, 15 Feb 2022 10:00:38 +0100
|
|
|
4b82b4 |
Subject: [PATCH] [ovn_central] Rename container responsable of Red Hat
|
|
|
4b82b4 |
ovn_central plugin
|
|
|
4b82b4 |
|
|
|
4b82b4 |
ovn_central plugin is running by container with
|
|
|
4b82b4 |
name 'ovn-dbs-bundle*', a typo has been identified and
|
|
|
4b82b4 |
this cause plugin ovn_central not enabled by default as it
|
|
|
4b82b4 |
does not recognize any container responsible of this.
|
|
|
4b82b4 |
|
|
|
4b82b4 |
This patch fix this container name match, searching schema db
|
|
|
4b82b4 |
keeping backward compatibility with openvswitch.
|
|
|
4b82b4 |
---
|
|
|
4b82b4 |
sos/report/plugins/ovn_central.py | 23 ++++++++++++-----------
|
|
|
4b82b4 |
1 file changed, 12 insertions(+), 11 deletions(-)
|
|
|
4b82b4 |
|
|
|
4b82b4 |
diff --git a/sos/report/plugins/ovn_central.py b/sos/report/plugins/ovn_central.py
|
|
|
4b82b4 |
index 2f0438df3..2f34bff09 100644
|
|
|
4b82b4 |
--- a/sos/report/plugins/ovn_central.py
|
|
|
4b82b4 |
+++ b/sos/report/plugins/ovn_central.py
|
|
|
4b82b4 |
@@ -24,7 +24,7 @@ class OVNCentral(Plugin):
|
|
|
4b82b4 |
short_desc = 'OVN Northd'
|
|
|
4b82b4 |
plugin_name = "ovn_central"
|
|
|
4b82b4 |
profiles = ('network', 'virt')
|
|
|
4b82b4 |
- containers = ('ovs-db-bundle.*',)
|
|
|
4b82b4 |
+ containers = ('ovn-dbs-bundle.*',)
|
|
|
4b82b4 |
|
|
|
4b82b4 |
def get_tables_from_schema(self, filename, skip=[]):
|
|
|
4b82b4 |
if self._container_name:
|
|
|
4b82b4 |
@@ -66,7 +66,7 @@ def add_database_output(self, tables, cmds, ovn_cmd):
|
|
|
4b82b4 |
cmds.append('%s list %s' % (ovn_cmd, table))
|
|
|
4b82b4 |
|
|
|
4b82b4 |
def setup(self):
|
|
|
4b82b4 |
- self._container_name = self.get_container_by_name('ovs-dbs-bundle.*')
|
|
|
4b82b4 |
+ self._container_name = self.get_container_by_name(self.containers[0])
|
|
|
4b82b4 |
|
|
|
4b82b4 |
ovs_rundir = os.environ.get('OVS_RUNDIR')
|
|
|
4b82b4 |
for pidfile in ['ovnnb_db.pid', 'ovnsb_db.pid', 'ovn-northd.pid']:
|
|
|
4b82b4 |
@@ -110,12 +110,11 @@ def setup(self):
|
|
|
4b82b4 |
'ovn-sbctl get-connection',
|
|
|
4b82b4 |
]
|
|
|
4b82b4 |
|
|
|
4b82b4 |
- schema_dir = '/usr/share/openvswitch'
|
|
|
4b82b4 |
-
|
|
|
4b82b4 |
- nb_tables = self.get_tables_from_schema(self.path_join(
|
|
|
4b82b4 |
- schema_dir, 'ovn-nb.ovsschema'))
|
|
|
4b82b4 |
-
|
|
|
4b82b4 |
- self.add_database_output(nb_tables, nbctl_cmds, 'ovn-nbctl')
|
|
|
4b82b4 |
+ # backward compatibility
|
|
|
4b82b4 |
+ for path in ['/usr/share/openvswitch', '/usr/share/ovn']:
|
|
|
4b82b4 |
+ nb_tables = self.get_tables_from_schema(self.path_join(
|
|
|
4b82b4 |
+ path, 'ovn-nb.ovsschema'))
|
|
|
4b82b4 |
+ self.add_database_output(nb_tables, nbctl_cmds, 'ovn-nbctl')
|
|
|
4b82b4 |
|
|
|
4b82b4 |
cmds = ovsdb_cmds
|
|
|
4b82b4 |
cmds += nbctl_cmds
|
|
|
4b82b4 |
@@ -125,9 +124,11 @@ def setup(self):
|
|
|
4b82b4 |
format(self.ovn_sbdb_sock_path),
|
|
|
4b82b4 |
"output": "Leader: self"}
|
|
|
4b82b4 |
if self.test_predicate(self, pred=SoSPredicate(self, cmd_outputs=co)):
|
|
|
4b82b4 |
- sb_tables = self.get_tables_from_schema(self.path_join(
|
|
|
4b82b4 |
- schema_dir, 'ovn-sb.ovsschema'), ['Logical_Flow'])
|
|
|
4b82b4 |
- self.add_database_output(sb_tables, sbctl_cmds, 'ovn-sbctl')
|
|
|
4b82b4 |
+ # backward compatibility
|
|
|
4b82b4 |
+ for path in ['/usr/share/openvswitch', '/usr/share/ovn']:
|
|
|
4b82b4 |
+ sb_tables = self.get_tables_from_schema(self.path_join(
|
|
|
4b82b4 |
+ path, 'ovn-sb.ovsschema'), ['Logical_Flow'])
|
|
|
4b82b4 |
+ self.add_database_output(sb_tables, sbctl_cmds, 'ovn-sbctl')
|
|
|
4b82b4 |
cmds += sbctl_cmds
|
|
|
4b82b4 |
|
|
|
4b82b4 |
# If OVN is containerized, we need to run the above commands inside
|
|
|
4b82b4 |
From 7ebb2ce0bcd13c1b3aada648aceb20b5aff636d9 Mon Sep 17 00:00:00 2001
|
|
|
4b82b4 |
From: Jake Hunsaker <jhunsake@redhat.com>
|
|
|
4b82b4 |
Date: Tue, 15 Feb 2022 14:18:02 -0500
|
|
|
4b82b4 |
Subject: [PATCH] [host] Skip entire /etc/sos/cleaner directory
|
|
|
4b82b4 |
|
|
|
4b82b4 |
While `default_mapping` is typically the only file expected under
|
|
|
4b82b4 |
`/etc/sos/cleaner/` it is possible for other mapping files (such as
|
|
|
4b82b4 |
backups) to appear there.
|
|
|
4b82b4 |
|
|
|
4b82b4 |
Make the `add_forbidden_path()` spec here target the entire cleaner
|
|
|
4b82b4 |
directory to avoid ever capturing these map files.
|
|
|
4b82b4 |
|
|
|
4b82b4 |
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
|
|
|
4b82b4 |
---
|
|
|
4b82b4 |
sos/report/plugins/host.py | 2 +-
|
|
|
4b82b4 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
4b82b4 |
|
|
|
4b82b4 |
diff --git a/sos/report/plugins/host.py b/sos/report/plugins/host.py
|
|
|
4b82b4 |
index 5e21da7b8..95a3b9cd9 100644
|
|
|
4b82b4 |
--- a/sos/report/plugins/host.py
|
|
|
4b82b4 |
+++ b/sos/report/plugins/host.py
|
|
|
4b82b4 |
@@ -20,7 +20,7 @@ class Host(Plugin, IndependentPlugin):
|
|
|
4b82b4 |
|
|
|
4b82b4 |
def setup(self):
|
|
|
4b82b4 |
|
|
|
4b82b4 |
- self.add_forbidden_path('/etc/sos/cleaner/default_mapping')
|
|
|
4b82b4 |
+ self.add_forbidden_path('/etc/sos/cleaner')
|
|
|
4b82b4 |
|
|
|
4b82b4 |
self.add_cmd_output('hostname', root_symlink='hostname')
|
|
|
4b82b4 |
self.add_cmd_output('uptime', root_symlink='uptime')
|