]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
internal: Be okay with an empty /var/lib/ceph dir 1117/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 5 Oct 2017 17:36:46 +0000 (13:36 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 5 Oct 2017 17:36:46 +0000 (13:36 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
teuthology/task/internal/__init__.py

index 2e16423adea2f3deee6b9968be322bd54733215d..747b8936e516bae27789512a1deb41869f729307 100644 (file)
@@ -252,11 +252,11 @@ def serialize_remote_roles(ctx, config):
 
 def check_ceph_data(ctx, config):
     """
-    Check for old /var/lib/ceph directories and detect staleness.
+    Check for old /var/lib/ceph subdirectories and detect staleness.
     """
-    log.info('Checking for old /var/lib/ceph...')
+    log.info('Checking for non-empty /var/lib/ceph...')
     processes = ctx.cluster.run(
-        args=['test', '!', '-e', '/var/lib/ceph'],
+        args='test -z $(ls -A /var/lib/ceph)',
         wait=False,
     )
     failed = False