From c0d3f4d246ef4065d67024e02a8289aed1c89b05 Mon Sep 17 00:00:00 2001 From: James Page Date: Mon, 18 Feb 2019 10:15:48 +0000 Subject: [PATCH] Add support for crush_rule pool key Later ceph versions allow the crush_rule to be changed on a pool; add this key with type str to the list of supported keys for the pool broker. Change-Id: I2c405f9a4956ff1ccf1edb7372a9bb11e1e591a4 --- ceph/broker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ceph/broker.py b/ceph/broker.py index 3e857d2..0d5a7e8 100644 --- a/ceph/broker.py +++ b/ceph/broker.py @@ -85,6 +85,7 @@ POOL_KEYS = { "compression_mode": [str, ["none", "passive", "aggressive", "force"]], "compression_algorithm": [str, ["lz4", "snappy", "zlib", "zstd"]], "compression_required_ratio": [float, [0.0, 1.0]], + "crush_rule": [str], } CEPH_BUCKET_TYPES = [