Allow to set quota for designate zones
In some cases default quotas are not sufficient (e.g for
tempest tests), we need to have ability to customize them.
Change-Id: Ieb688393135214ebad80c5a652a0f88c97122f97
Related-Prod: https://mirantis.jira.com/browse/PROD-15521
diff --git a/README.rst b/README.rst
index 9ca7da7..943fbea 100644
--- a/README.rst
+++ b/README.rst
@@ -77,6 +77,8 @@
rndc_host: 127.0.0.1
rndc_port: 953
rndc_key_file: /etc/designate/rndc.key
+ quota:
+ zones: 40
worker:
enabled: true
.. note::
@@ -103,6 +105,11 @@
In releases starting from Newton, only Designate pool manager service still allows live syncs
with Power DNS server for now.
+.. note::
+ *server:quota:zones* allows to set default value for zones quota for all projects and users.
+ In case with Designate tempest plugin (0.2.0) zones quota should be increased to 40, so all
+ tests can pass.
+
Pools pillar for BIND9 master and multiple slaves setup:
.. code:: yaml
diff --git a/designate/files/liberty/designate.conf.Debian b/designate/files/liberty/designate.conf.Debian
index 2f4218c..bcba3ae 100644
--- a/designate/files/liberty/designate.conf.Debian
+++ b/designate/files/liberty/designate.conf.Debian
@@ -35,6 +35,13 @@
{%- endif %}
{%- endif %}
+{%- if server.quota is defined %}
+# Default quotas
+{%- if server.quota.zones is defined %}
+quota_zones = {{ server.quota.zones }}
+{%- endif %}
+{%- endif %}
+
# Use "sudo designate-rootwrap /etc/designate/rootwrap.conf" to use the real
# root filter facility.
# Change to "sudo" to skip the filtering and just run the comand directly
diff --git a/designate/files/mitaka/designate.conf.Debian b/designate/files/mitaka/designate.conf.Debian
index a913fd9..ba1a21c 100644
--- a/designate/files/mitaka/designate.conf.Debian
+++ b/designate/files/mitaka/designate.conf.Debian
@@ -35,6 +35,13 @@
{%- endif %}
{%- endif %}
+{%- if server.quota is defined %}
+# Default quotas
+{%- if server.quota.zones is defined %}
+quota_zones = {{ server.quota.zones }}
+{%- endif %}
+{%- endif %}
+
# Use "sudo designate-rootwrap /etc/designate/rootwrap.conf" to use the real
# root filter facility.
# Change to "sudo" to skip the filtering and just run the comand directly
diff --git a/designate/files/ocata/designate.conf.Debian b/designate/files/ocata/designate.conf.Debian
index 35680d3..5dc78ef 100644
--- a/designate/files/ocata/designate.conf.Debian
+++ b/designate/files/ocata/designate.conf.Debian
@@ -36,6 +36,13 @@
{%- endif %}
{%- endif %}
+{%- if server.quota is defined %}
+# Default quotas
+{%- if server.quota.zones is defined %}
+quota_zones = {{ server.quota.zones }}
+{%- endif %}
+{%- endif %}
+
# Use "sudo designate-rootwrap /etc/designate/rootwrap.conf" to use the real
# root filter facility.
# Change to "sudo" to skip the filtering and just run the command directly
diff --git a/tests/pillar/designate_ocata.sls b/tests/pillar/designate_ocata.sls
index 0656fd9..68ce620 100644
--- a/tests/pillar/designate_ocata.sls
+++ b/tests/pillar/designate_ocata.sls
@@ -68,6 +68,8 @@
also_notifies:
- host: 127.0.3.1
port: 53
+ quota:
+ zones: 40
worker:
enabled: true
mysql: