From 2c4640d109517c5b3bdeee0ed83d877d85ce4938 Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Sat, 3 Apr 2021 13:17:31 -0700 Subject: [PATCH] Allow rbd mirroring mode to be set to none Allow the rbd-mirroring-mode for a Ceph pool to be specified as 'none'. This allows a charm to be able to explicitly disable rbd mirroring when it knows it will be creating a pool type which is not supported. The example for this, is when erasure coded pools are being created for RBD use. Two pools are created, one for erasure coded data and one for RBD metadata. Neither pool should be mirrored, so the charm can explicitly specify this. Closes-Bug: #1898504 (cherry picked from commit c3bd490b67a53d86a40382ef644e41acf67d0b6a) --- charmhelpers/contrib/storage/linux/ceph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charmhelpers/contrib/storage/linux/ceph.py b/charmhelpers/contrib/storage/linux/ceph.py index d1c617545..881578f6d 100644 --- a/charmhelpers/contrib/storage/linux/ceph.py +++ b/charmhelpers/contrib/storage/linux/ceph.py @@ -268,7 +268,7 @@ class BasePool(object): 'compression-max-blob-size': (int, None), 'compression-max-blob-size-hdd': (int, None), 'compression-max-blob-size-ssd': (int, None), - 'rbd-mirroring-mode': (str, ('image', 'pool')) + 'rbd-mirroring-mode': (str, ('image', 'pool', 'none')) } def __init__(self, service, name=None, percent_data=None, app_name=None,