]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/rook: simplify shutdown
authorSage Weil <sage@newdream.net>
Tue, 18 May 2021 14:54:15 +0000 (09:54 -0500)
committerSage Weil <sage@newdream.net>
Tue, 18 May 2021 20:19:16 +0000 (15:19 -0500)
For some reason deleting common.yaml sometimes fails.  Not really
sure why, but since we will tear down kubernetes anyway this
cleanup isn't really needed.

Signed-off-by: Sage Weil <sage@newdream.net>
qa/tasks/rook.py

index 140794a4bae89c6d534bf7e495676432d549b5cc..29cb6ef1e0dfc4598387bc15073e1f1ff31443fd 100644 (file)
@@ -147,19 +147,22 @@ def rook_operator(ctx, config):
         raise
 
     finally:
-        log.info('Cleaning up rook')
+        log.info('Cleaning up rook operator')
         _kubectl(ctx, config, [
             'delete',
             '-f', 'operator.yaml',
         ])
-        _kubectl(ctx, config, [
-            'delete',
-            '-f', 'rook/cluster/examples/kubernetes/ceph/common.yaml',
-        ])
-        _kubectl(ctx, config, [
-            'delete',
-            '-f', 'rook/cluster/examples/kubernetes/ceph/crds.yaml',
-        ])
+        if False:
+            # don't bother since we'll tear down k8s anyway (and this mysteriously
+            # fails sometimes when deleting some of the CRDs... not sure why!)
+            _kubectl(ctx, config, [
+                'delete',
+                '-f', 'rook/cluster/examples/kubernetes/ceph/common.yaml',
+            ])
+            _kubectl(ctx, config, [
+                'delete',
+                '-f', 'rook/cluster/examples/kubernetes/ceph/crds.yaml',
+            ])
         ctx.rook[cluster_name].remote.run(args=['rm', '-rf', 'rook', 'operator.yaml'])
         if op_job:
             op_job.wait()