summaryrefslogtreecommitdiff
path: root/lib/ceph/broker.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ceph/broker.py')
-rw-r--r--lib/ceph/broker.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ceph/broker.py b/lib/ceph/broker.py
index 0b6d3e2..3e857d2 100644
--- a/lib/ceph/broker.py
+++ b/lib/ceph/broker.py
@@ -81,6 +81,10 @@ POOL_KEYS = {
81 "cache_min_flush_age": [int], 81 "cache_min_flush_age": [int],
82 "cache_min_evict_age": [int], 82 "cache_min_evict_age": [int],
83 "fast_read": [bool], 83 "fast_read": [bool],
84 "allow_ec_overwrites": [bool],
85 "compression_mode": [str, ["none", "passive", "aggressive", "force"]],
86 "compression_algorithm": [str, ["lz4", "snappy", "zlib", "zstd"]],
87 "compression_required_ratio": [float, [0.0, 1.0]],
84} 88}
85 89
86CEPH_BUCKET_TYPES = [ 90CEPH_BUCKET_TYPES = [
@@ -251,7 +255,8 @@ def pool_permission_list_for_service(service):
251 for prefix in prefixes: 255 for prefix in prefixes:
252 permissions.append("allow {} object_prefix {}".format(permission, 256 permissions.append("allow {} object_prefix {}".format(permission,
253 prefix)) 257 prefix))
254 return ["mon", "allow r", "osd", ', '.join(permissions)] 258 return ['mon', 'allow r, allow command "osd blacklist"',
259 'osd', ', '.join(permissions)]
255 260
256 261
257def get_service_groups(service, namespace=None): 262def get_service_groups(service, namespace=None):