From 870e1f82f65f4917baeb9e5c3e32aadc8773c8e7 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Wed, 20 Mar 2019 11:22:31 -0400 Subject: [kubernetes] Collect vm/vmi information if CNV is in use If CNV is installed ontop of the base kubernetes installation, collect output for the 'vms' and 'vmis' resources as well as virtctl. Resolves: #1599 Signed-off-by: Jake Hunsaker Signed-off-by: Bryn M. Reeves --- sos/plugins/kubernetes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sos/plugins/kubernetes.py b/sos/plugins/kubernetes.py index 74f56ccb..8045fe81 100644 --- a/sos/plugins/kubernetes.py +++ b/sos/plugins/kubernetes.py @@ -97,6 +97,11 @@ class kubernetes(Plugin, RedHatPlugin): "{} get --raw /metrics".format(kube_cmd) ]) + # CNV is not part of the base installation, but can be added + if self.is_installed('kubevirt-virtctl'): + resources.extend(['vms', 'vmis']) + self.add_cmd_output('virtctl version') + for n in knsps: knsp = '--namespace=%s' % n if self.get_option('all'): -- cgit