Add internal option [DEFAULT]shared_storage to ocata
Shared storage for instances or not.
This option is used to distinguish different way to calculate disk usage
while getting hypervisor-stats.
ENABLE THIS ONLY WHEN ALL COMPUTE NODES ARE USING THE SAME SHARED STORAGE!
Otherwise stats report will be skewed.
Possible values:
* True: Average all the compute node's disk usage
* False: Sum all the compute node's disk usage
Change-Id: Ia9645cb16ea21dc62bb9ff664911c99beeeb01f4
Related-Prod: PROD-25240
diff --git a/nova/files/ocata/nova-compute.conf.Debian b/nova/files/ocata/nova-compute.conf.Debian
index aa774a7..e3707a4 100644
--- a/nova/files/ocata/nova-compute.conf.Debian
+++ b/nova/files/ocata/nova-compute.conf.Debian
@@ -3132,6 +3132,18 @@
# value means endless wait. (integer value)
#graceful_shutdown_timeout=60
+#Shared storage for instances or not.
+#This option is used to distinguish different way to calculate disk usage
+#while getting hypervisor-stats.
+#ENABLE THIS ONLY WHEN ALL COMPUTE NODES ARE USING THE SAME SHARED STORAGE!
+#Otherwise stats report will be skewed.
+#Possible values:
+#* True: Average all the compute node's disk usage
+#* False: Sum all the compute node's disk usage
+# shared_storage =
+{%- if compute.shared_storage is defined %}
+shared_storage = {{ compute.shared_storage }}
+{%- endif %}
[api]
#
diff --git a/nova/files/ocata/nova-controller.conf.Debian b/nova/files/ocata/nova-controller.conf.Debian
index 33c1627..23db54e 100644
--- a/nova/files/ocata/nova-controller.conf.Debian
+++ b/nova/files/ocata/nova-controller.conf.Debian
@@ -3111,6 +3111,19 @@
# value means endless wait. (integer value)
#graceful_shutdown_timeout=60
+#Shared storage for instances or not.
+#This option is used to distinguish different way to calculate disk usage
+#while getting hypervisor-stats.
+#ENABLE THIS ONLY WHEN ALL COMPUTE NODES ARE USING THE SAME SHARED STORAGE!
+#Otherwise stats report will be skewed.
+#Possible values:
+#* True: Average all the compute node's disk usage
+#* False: Sum all the compute node's disk usage
+# shared_storage =
+{%- if controller.shared_storage is defined %}
+shared_storage = {{ controller.shared_storage }}
+{%- endif %}
+
[api]
#