Even when ctx.archive is False, ceph logging
need the destination directory exist, so
/tmp/cephtest/archive has to be created (and
thus removed) unconditionally.
continue
proc.exitstatus.get()
- log.info('Removing archived files...')
- run.wait(
- ctx.cluster.run(
- args=[
- 'rm',
- '-rf',
- '--',
- '/tmp/cephtest/archive',
- ],
- wait=False,
- ),
- )
+ log.info('Removing archive directory...')
+ run.wait(
+ ctx.cluster.run(
+ args=[
+ 'rm',
+ '-rf',
+ '--',
+ '/tmp/cephtest/archive',
+ ],
+ wait=False,
+ ),
+ )
@contextlib.contextmanager
def coredump(ctx, config):