Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
ctx.summary['failure_reason'] = \
"'{error}' in syslog".format(error=stdout)
+ log.info('Gathering journactl...')
+ run.wait(
+ cluster.run(
+ args=[
+ 'sudo', 'journalctl',
+ run.Raw('>'),
+ f'{archive_dir}/syslog/journalctl.log',
+ ],
+ wait=False,
+ )
+ )
+
log.info('Compressing syslogs...')
run.wait(
cluster.run(
)
)
- log.info('Gathering journactl ...')
- run.wait(
- cluster.run(
- args=[
- 'sudo', 'journalctl',
- run.Raw('|'),
- 'gzip', '-9',
- run.Raw('>'),
- f'{archive_dir}/syslog/journalctl-b0.gz',
- ],
- wait=False,
- )
- )