From 8ef4f6d350b63b633f507116d1ea60ae6a9f30be Mon Sep 17 00:00:00 2001 From: David Galloway Date: Wed, 4 Oct 2017 15:44:43 -0400 Subject: [PATCH] install: Unmount /var/lib/ceph itself if needed We plan to mount a small logical volume to /var/lib/ceph. Fixes: http://tracker.ceph.com/issues/20910 Signed-off-by: David Galloway --- teuthology/task/install/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teuthology/task/install/__init__.py b/teuthology/task/install/__init__.py index e9fe7dd364..c6ff248784 100644 --- a/teuthology/task/install/__init__.py +++ b/teuthology/task/install/__init__.py @@ -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', -- 2.39.5