Browse Source

DevStack: Support setting default quotas

As tempest is creating and deleting zones, it does not wait
for all zones to be deleted before moving onto the next test.

This can lead to having a large number of pending delete zones
which consume all/most of the default quotas, and tests begin
failing.

By setting the default quotas higher in DevStack, we allow the
tests to proceed.

Change-Id: I3652bb06724fb8b89bb341c9d9f61b1dde056119
Kiall Mac Innes 2 years ago
parent
commit
bef53dbe93
2 changed files with 14 additions and 0 deletions
  1. 7
    0
      devstack/plugin.sh
  2. 7
    0
      devstack/settings

+ 7
- 0
devstack/plugin.sh View File

@@ -57,6 +57,13 @@ function configure_designate {
57 57
     iniset $DESIGNATE_CONF DEFAULT root-helper sudo designate-rootwrap $DESIGNATE_ROOTWRAP_CONF
58 58
     iniset $DESIGNATE_CONF storage:sqlalchemy connection `database_connection_url designate`
59 59
 
60
+    # Quota Configuration
61
+    iniset $DESIGNATE_CONF DEFAULT quota_zones $DESIGNATE_QUOTA_ZONES
62
+    iniset $DESIGNATE_CONF DEFAULT quota_zone_recordsets $DESIGNATE_QUOTA_ZONE_RECORDSETS
63
+    iniset $DESIGNATE_CONF DEFAULT quota_zone_records $DESIGNATE_QUOTA_ZONE_RECORDS
64
+    iniset $DESIGNATE_CONF DEFAULT quota_recordset_records $DESIGNATE_QUOTA_RECORDSET_RECORDS
65
+    iniset $DESIGNATE_CONF DEFAULT quota_api_export_size $DESIGNATE_QUOTA_API_EXPORT_SIZE
66
+
60 67
     # Coordination Configuration
61 68
     if [[ -n "$DESIGNATE_COORDINATION_URL" ]]; then
62 69
         iniset $DESIGNATE_CONF coordination backend_url $DESIGNATE_COORDINATION_URL

+ 7
- 0
devstack/settings View File

@@ -10,6 +10,13 @@ DESIGNATE_PERIODIC_RECOVERY_INTERVAL=${DESIGNATE_PERIODIC_RECOVERY_INTERVAL:-120
10 10
 DESIGNATE_PERIODIC_SYNC_INTERVAL=${DESIGNATE_PERIODIC_SYNC_INTERVAL:-1800}
11 11
 DESIGNATE_COORDINATION_URL=${DESIGNATE_COORDINATION_URL:-}
12 12
 
13
+# Quota Options
14
+DESIGNATE_QUOTA_ZONES=${DESIGNATE_QUOTA_ZONES:-100}
15
+DESIGNATE_QUOTA_ZONE_RECORDSETS=${DESIGNATE_QUOTA_ZONE_RECORDSETS:-500}
16
+DESIGNATE_QUOTA_ZONE_RECORDS=${DESIGNATE_QUOTA_ZONE_RECORDS:-500}
17
+DESIGNATE_QUOTA_RECORDSET_RECORDS=${DESIGNATE_QUOTA_RECORDSET_RECORDS:-20}
18
+DESIGNATE_QUOTA_API_EXPORT_SIZE=${DESIGNATE_QUOTA_API_EXPORT_SIZE:-1000}
19
+
13 20
 # Default APIs and Extensions
14 21
 DESIGNATE_ENABLE_API_V1=${DESIGNATE_ENABLE_API_V1:-"True"}
15 22
 DESIGNATE_ENABLE_API_V2=${DESIGNATE_ENABLE_API_V2:-"True"}

Loading…
Cancel
Save