Files in scratch_tmp may not be owned by ubuntu.
Fixes: http://tracker.ceph.com/issues/36165
Introduced-by: de824f74dd8ac909e47335ccd53d7a085e388e41
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
1eaf78a75498d0f739b40bf310d036c851465fad)
)
finally:
log.info('Stopping %s on %s...', tests, role)
- args=['rm', '-rf', '--', workunits_file, clonedir]
+ args=['sudo', 'rm', '-rf', '--', workunits_file, clonedir]
if cleanup:
log.info("and cleaning up scratch: {}".format(scratch_tmp))
args.append(scratch_tmp)