Create a 384MB flavor for advance image
In order to reduce the CI memory consuption, this patch creates a 384MB
flavor to replace the 512MB previously used for the advance image
(Ubuntu 18.04).
Flavor specs:
- 384MB RAM: aroung 100MB are used when the VM is started.
- 4GB disk: around 1,1GB are used when the VM is started.
- 1 VCPU.
Change-Id: I267a848d57183ddc39128f12d40b076360dfd3bc
Partial-Bug: #1940243
diff --git a/devstack/functions.sh b/devstack/functions.sh
index 8d8a4bf..ca2da44 100644
--- a/devstack/functions.sh
+++ b/devstack/functions.sh
@@ -85,3 +85,13 @@
fi
iniset $TEMPEST_CONFIG neutron_plugin_options advanced_image_flavor_ref $flavor_ref
}
+
+
+function create_flavor_for_advance_image {
+ local name=$1
+ local ram=$2
+ local disk=$3
+ local vcpus=$4
+
+ openstack flavor create --ram $ram --disk $disk --vcpus $vcpus $name
+}