Otherwise the command will hang if the mount is broken.
Fixes: http://tracker.ceph.com/issues/36184
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
d4b8f94cf8d95ebb277b550fc6ebc3468052a39c)
finally:
log.info('Stopping %s on %s...', tests, role)
args=['sudo', 'rm', '-rf', '--', workunits_file, clonedir]
- if cleanup:
- log.info("and cleaning up scratch: {}".format(scratch_tmp))
- args.append(scratch_tmp)
+ # N.B. don't cleanup scratch_tmp! If the mount is broken then rm will hang.
remote.run(
logger=log.getChild(role),
args=args,