From 875ce7b1f60b2dd16e2b51cb9c15fd0b1fb19d4d Mon Sep 17 00:00:00 2001 From: Vaishnavi Bhat Date: Tue, 8 Oct 2024 15:18:46 +0530 Subject: [PATCH] Install sosreport package Install the required packages for collecting sosreport Signed-off-by: Vaishnavi Bhat --- common/OpTestUtil.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/OpTestUtil.py b/common/OpTestUtil.py index e34d2edc..ddaa361c 100644 --- a/common/OpTestUtil.py +++ b/common/OpTestUtil.py @@ -2191,6 +2191,7 @@ def __gather_os_command_logs(self, list_of_commands=[], collect_sosreport=False, if collect_sosreport: if 'rhel' in self.distro_name(): + host.host_run_command("yum install sos -y") cmd = 'yes "" | sosreport' str_msg = "Your sosreport has been generated and saved in:" elif 'sles' in self.distro_name():