From: Sage Weil Date: Tue, 18 May 2021 14:54:42 +0000 (-0500) Subject: qa/tasks/rook: ROOK_HOSTPATH_REQUIRES_PRIVILEGED=true on centos X-Git-Tag: v17.1.0~1921^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f765677b8138ab5b57cd4d4113f402d89c3d9dfd;p=ceph.git qa/tasks/rook: ROOK_HOSTPATH_REQUIRES_PRIVILEGED=true on centos This fixes OSD creation on centos. Signed-off-by: Sage Weil --- diff --git a/qa/tasks/rook.py b/qa/tasks/rook.py index 29cb6ef1e0dfc..bdd9e58dcd3f6 100644 --- a/qa/tasks/rook.py +++ b/qa/tasks/rook.py @@ -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: