]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/rook: ROOK_HOSTPATH_REQUIRES_PRIVILEGED=true on centos
authorSage Weil <sage@newdream.net>
Tue, 18 May 2021 14:54:42 +0000 (09:54 -0500)
committerSage Weil <sage@newdream.net>
Thu, 20 May 2021 23:11:05 +0000 (18:11 -0500)
This fixes OSD creation on centos.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit f765677b8138ab5b57cd4d4113f402d89c3d9dfd)

qa/tasks/rook.py

index 29cb6ef1e0dfc4598387bc15073e1f1ff31443fd..bdd9e58dcd3f6a68ff06083e635fc19265fd83ff 100644 (file)
@@ -116,6 +116,14 @@ def rook_operator(ctx, config):
             '-f', 'operator.yaml',
         ])
 
+        # on centos:
+        if teuthology.get_distro(ctx) == 'centos':
+            _kubectl(ctx, config, [
+                '-n', 'rook-ceph',
+                'set', 'env', 'deploy/rook-ceph-operator',
+                'ROOK_HOSTPATH_REQUIRES_PRIVILEGED=true'
+            ])
+
         # wait for operator
         op_name = None
         with safe_while(sleep=10, tries=90, action="wait for operator") as proceed: