Add rbd_exclusive_cinder_pool option
Change-Id: Iee9971179810b16feffbbceb1a9b6501867477ef
Related-Prod: https://mirantis.jira.com/browse/PROD-23228
diff --git a/cinder/files/backend/_ceph.conf b/cinder/files/backend/_ceph.conf
index 75c7dd6..8438dbf 100644
--- a/cinder/files/backend/_ceph.conf
+++ b/cinder/files/backend/_ceph.conf
@@ -43,6 +43,16 @@
# megabytes). (integer value)
#rbd_store_chunk_size=4
+# Set to True if the pool is used exclusively by Cinder. On exclusive use
+# driver won't query images' provisioned size as they will match the value
+# calculated by the Cinder core code for allocated_capacity_gb. This reduces
+# the load on the Ceph cluster as well as on the volume service. (boolean
+# value)
+#rbd_exclusive_cinder_pool = false
+{%- if backend.rbd_exclusive_cinder_pool is defined %}
+rbd_exclusive_cinder_pool = {{ backend.rbd_exclusive_cinder_pool }}
+{%- endif %}
+
# Timeout value (in seconds) used when connecting to ceph
# cluster. If value < 0, no timeout is set and default
# librados value is used. (integer value)
diff --git a/tests/pillar/ceph_single.sls b/tests/pillar/ceph_single.sls
index c12365b..b4882b3 100644
--- a/tests/pillar/ceph_single.sls
+++ b/tests/pillar/ceph_single.sls
@@ -67,6 +67,7 @@
user: cinder
secret_uuid: password
client_cinder_key: password
+ rbd_exclusive_cinder_pool: true
identity:
engine: keystone
host: 127.0.0.1
diff --git a/tests/pillar/client.sls b/tests/pillar/client.sls
index 4dfd0bd..e72b57d 100644
--- a/tests/pillar/client.sls
+++ b/tests/pillar/client.sls
@@ -14,5 +14,6 @@
ceph:
type_name: standard-iops
engine: ceph
+ rbd_exclusive_cinder_pool: false
key:
conn_speed: fibre-10G