]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
install: Unmount /var/lib/ceph itself if needed 1116/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 4 Oct 2017 19:44:43 +0000 (15:44 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 5 Oct 2017 15:09:50 +0000 (11:09 -0400)
We plan to mount a small logical volume to /var/lib/ceph.

Fixes: http://tracker.ceph.com/issues/20910
Signed-off-by: David Galloway <dgallowa@redhat.com>
teuthology/task/install/__init__.py

index e9fe7dd36435e4947b53946c0702992f110d8c6c..c6ff24878447138ca42537547cbcf34fcea29b84 100644 (file)
@@ -93,6 +93,10 @@ def _purge_data(remote):
         '-maxdepth', '2',
         '-type', 'd',
         '-exec', 'umount', '{}', ';',
+        run.Raw('&&'),
+        'sudo', 'umount', '/var/lib/ceph',
+        run.Raw('||'),
+        'true',
         run.Raw(';'),
         'sudo',
         'rm', '-rf', '--one-file-system', '--', '/var/lib/ceph',