]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: don't fail if we've already cleaned up conf/keyring 61905/head
authorAdam King <adking@redhat.com>
Sat, 15 Feb 2025 18:55:12 +0000 (13:55 -0500)
committerAdam King <adking@redhat.com>
Wed, 19 Feb 2025 16:07:37 +0000 (11:07 -0500)
We run this rm command after the `cephadm rm-cluster`
which is also meant to clean these up. Honestly, I have no idea
why this wasn't already failing

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 228a566382407108028dfc2a792f466a59756665)

qa/tasks/cephadm.py

index 09638e7ea5648011b9d05775b3711a2045644ac9..796963a9ec79a5c9097736a617a889f48aabd5b5 100644 (file)
@@ -889,11 +889,14 @@ def ceph_bootstrap(ctx, config):
         )
 
         # clean up /etc/ceph
-        ctx.cluster.run(args=[
-            'sudo', 'rm', '-f',
-            '/etc/ceph/{}.conf'.format(cluster_name),
-            '/etc/ceph/{}.client.admin.keyring'.format(cluster_name),
-        ])
+        ctx.cluster.run(
+            args=[
+                'sudo', 'rm', '-f',
+                '/etc/ceph/{}.conf'.format(cluster_name),
+                '/etc/ceph/{}.client.admin.keyring'.format(cluster_name),
+            ],
+            check_status=False,  # rm-cluster above should have cleaned these up
+        )
 
 
 @contextlib.contextmanager