Skip to content

Commit 1ac37f2

Browse files
committed
collect podman inspect logs
Signed-off-by: Nagoor Shaik <nshaik@redhat.com>
1 parent d67f858 commit 1ac37f2

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

sos/report/plugins/aap_containerized.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,18 @@ def setup(self):
9797
# Collect AAP container names
9898
aap_containers = self._get_aap_container_names(username)
9999

100-
# Copy podman container log files in plugin sub directory
101-
# under aap_containers_log
100+
# Copy podman container log and inspect files
101+
# into their respective sub directories
102102
for container in aap_containers:
103-
log_file = f"{container}.log"
104103
self.add_cmd_output(
105104
f"su - {username} -c 'podman logs {container}'",
106-
suggest_filename=f"{log_file}",
107-
subdir="aap_containers_log"
105+
suggest_filename=f"{container}.log",
106+
subdir="aap_container_logs"
107+
)
108+
self.add_cmd_output(
109+
f"su - {username} -c 'podman inspect {container}'",
110+
suggest_filename=container,
111+
subdir="podman_inspect_logs"
108112
)
109113

110114
if "automation-controller-task" in aap_containers:

0 commit comments

Comments
 (0)