From 29ef7a3bc5ec8649340c6fb2dc93c7ad5faeddf3 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Tue, 11 Dec 2018 16:33:42 -0500 Subject: [vdo] Get status output individually, and collect stats output Updates the vdo plugin to grab status information for each individual volume rather than dumping everything into a single output. Additionally collect vdostats output. Resolves: #1510 Signed-off-by: Jake Hunsaker Signed-off-by: Bryn M. Reeves --- sos/plugins/vdo.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sos/plugins/vdo.py b/sos/plugins/vdo.py index 517fc12f..ac071f11 100644 --- a/sos/plugins/vdo.py +++ b/sos/plugins/vdo.py @@ -25,6 +25,12 @@ class Vdo(Plugin, RedHatPlugin): def setup(self): self.add_copy_spec(self.files) - self.add_cmd_output("vdo status") + vdos = self.get_command_output('vdo list --all') + for vdo in vdos['output'].splitlines(): + self.add_cmd_output("vdo status -n %s" % vdo) + self.add_cmd_output([ + 'vdostats --human-readable', + 'vdo list --all' + ]) # vim set et ts=4 sw=4 : -- cgit