]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
install: need sudo when purging /var/lib/ceph
authorSage Weil <sage@inktank.com>
Sun, 24 Mar 2013 03:53:51 +0000 (20:53 -0700)
committerSage Weil <sage@inktank.com>
Sun, 24 Mar 2013 03:53:51 +0000 (20:53 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/install.py

index af2c2e3046bafcc4f92d0e935d3e9135ea2eb251..aa98fc2be77d5ec6af8c558fe14e0fcb81fc8118 100644 (file)
@@ -169,18 +169,21 @@ def purge_data(ctx):
 def _purge_data(remote):
     log.info('Purging /var/lib/ceph on %s', remote)
     remote.run(args=[
+            'sudo',
             'rm', '-rf', '--one-file-system', '--', '/var/lib/ceph',
             run.Raw('||'),
             'true',
             run.Raw(';'),
             'test', '-d', '/var/lib/ceph',
             run.Raw('&&'),
+            'sudo',
             'find', '/var/lib/ceph',
             '-mindepth', '1',
             '-maxdepth', '2',
             '-type', 'd',
             '-exec', 'umount', '{}', ';',
             run.Raw(';'),
+            'sudo',
             'rm', '-rf', '--one-file-system', '--', '/var/lib/ceph',
             ])