]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: Set default caps for 'osd' type in generate_caps() 41731/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Wed, 25 Aug 2021 07:20:23 +0000 (12:50 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 13 Sep 2021 11:24:48 +0000 (16:54 +0530)
Assign the default caps for osds to be the same as what the AuthMonitor
sets for a new osd. See AuthMonitor::validate_osd_new() which sets the
following caps for a new osd:

 mon='allow profile osd'
 mgr='allow profile osd'
 osd=''allow *'

When an actual real world cluster is deployed, the above caps are applied.
Unless the user modifies the defaults, a cluster will operate with the
above caps. Therefore, it makes sense to use the defaults when testing
Ceph so that issues if any due to the default settings may be caught and
fixed.

Therefore, the caps for the 'osd' type is reset to the default in
generate_caps(). The caps for 'mgr' already reflects the system defaults.
The caps for 'mds' type is not changed in this commit and will be
investigated and changed if necessary later.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit 4b0dba28b62bcc89c46e1f5ff0dab8583af4397c)

qa/tasks/ceph.py

index 9894addd7f1449acb1f10441bee77a1af3100ce3..48e2f91cb8b4d56876964aea8d9931a421c3e86f 100644 (file)
@@ -46,8 +46,8 @@ def generate_caps(type_):
     """
     defaults = dict(
         osd=dict(
-            mon='allow *',
-            mgr='allow *',
+            mon='allow profile osd',
+            mgr='allow profile osd',
             osd='allow *',
         ),
         mgr=dict(