]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: ignore --keep-logs failure 40888/head
authorSage Weil <sage@newdream.net>
Fri, 16 Apr 2021 19:12:49 +0000 (14:12 -0500)
committerSage Weil <sage@newdream.net>
Fri, 16 Apr 2021 19:12:49 +0000 (14:12 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
qa/tasks/cephadm.py

index 4b0d26b228a3e3902e8e7b530c4c705a0016de61..c1b6970c86741263ed04ae551177033b1807a767 100644 (file)
@@ -481,14 +481,17 @@ def ceph_bootstrap(ctx, config):
                 raise
 
         # tear down anything left (but leave the logs behind)
-        ctx.cluster.run(args=[
-            'sudo',
-            ctx.cephadm,
-            'rm-cluster',
-            '--fsid', fsid,
-            '--force',
-            '--keep-logs',
-        ])
+        ctx.cluster.run(
+            args=[
+                'sudo',
+                ctx.cephadm,
+                'rm-cluster',
+                '--fsid', fsid,
+                '--force',
+                '--keep-logs',
+            ],
+            check_status=False,  # may fail if upgrading from old cephadm
+        )
 
         # clean up /etc/ceph
         ctx.cluster.run(args=[