Browse code

Increase default swift storage

Swift storage is used as glance image back-end. Tempest have cinder to
uploads 1 GiB image from cinder in twice.

In parallel execution in cause an issue, bacuse the current default size is
1_000_000 KiB.

Increasing the default swit storage size from 1_000_000 KiB 4_000_000
KiB when tempest is enabled.

Fixing bug 1225664

Change-Id: Iccd6368e4df71abb5ccfe7d361c64d86e1071d35

Attila Fazekas authored on 2013/09/17 01:35:49
Showing 1 changed files
... ...
@@ -55,7 +55,13 @@ fi
55 55
 # swift data. Set ``SWIFT_LOOPBACK_DISK_SIZE`` to the disk size in
56 56
 # kilobytes.
57 57
 # Default is 1 gigabyte.
58
-SWIFT_LOOPBACK_DISK_SIZE=${SWIFT_LOOPBACK_DISK_SIZE:-1000000}
58
+SWIFT_LOOPBACK_DISK_SIZE_DEFAULT=1048576
59
+# if tempest enabled the default size is 4 Gigabyte.
60
+if is_service_enabled tempest; then
61
+    SWIFT_LOOPBACK_DISK_SIZE_DEFAULT=${SWIFT_LOOPBACK_DISK_SIZE:-4194304}
62
+fi
63
+
64
+SWIFT_LOOPBACK_DISK_SIZE=${SWIFT_LOOPBACK_DISK_SIZE:-$SWIFT_LOOPBACK_DISK_SIZE_DEFAULT}
59 65
 
60 66
 # Set ``SWIFT_EXTRAS_MIDDLEWARE`` to extras middlewares.
61 67
 # Default is ``staticweb, tempurl, formpost``