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: v16.2.5~115^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e5931d12548e45b9ae3201f93dd0c6a3179ad90;p=ceph.git qa/tasks/rook: ROOK_HOSTPATH_REQUIRES_PRIVILEGED=true on centos This fixes OSD creation on centos. Signed-off-by: Sage Weil (cherry picked from commit f765677b8138ab5b57cd4d4113f402d89c3d9dfd) --- diff --git a/qa/tasks/rook.py b/qa/tasks/rook.py index 29cb6ef1e0d..bdd9e58dcd3 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: