diff --git a/devstack/functions.sh b/devstack/functions.sh index 8d8a4bf15..ca2da4403 100644 --- a/devstack/functions.sh +++ b/devstack/functions.sh @@ -85,3 +85,13 @@ function configure_flavor_for_advanced_image { 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 +} diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 7a4601437..2e3ac20bd 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -20,6 +20,7 @@ if [[ "$1" == "stack" ]]; then test-config) echo_summary "Configuring neutron-tempest-plugin tempest options" configure_advanced_image + create_flavor_for_advance_image ntp_image_384M 384 4 1 configure_flavor_for_advanced_image esac fi diff --git a/zuul.d/base.yaml b/zuul.d/base.yaml index 04fe32368..880e64f98 100644 --- a/zuul.d/base.yaml +++ b/zuul.d/base.yaml @@ -112,7 +112,7 @@ CIRROS_VERSION: 0.5.1 IMAGE_URLS: https://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img ADVANCED_IMAGE_NAME: ubuntu-18.04-server-cloudimg-amd64 - ADVANCED_INSTANCE_TYPE: ds512M + ADVANCED_INSTANCE_TYPE: ntp_image_384M ADVANCED_INSTANCE_USER: ubuntu BUILD_TIMEOUT: 784 tempest_concurrency: 3 # out of 4 diff --git a/zuul.d/master_jobs.yaml b/zuul.d/master_jobs.yaml index 64283b586..58a1d37b6 100644 --- a/zuul.d/master_jobs.yaml +++ b/zuul.d/master_jobs.yaml @@ -491,7 +491,7 @@ CIRROS_VERSION: 0.5.1 IMAGE_URLS: https://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img ADVANCED_IMAGE_NAME: ubuntu-18.04-server-cloudimg-amd64 - ADVANCED_INSTANCE_TYPE: ds512M + ADVANCED_INSTANCE_TYPE: ntp_image_384M ADVANCED_INSTANCE_USER: ubuntu BUILD_TIMEOUT: 784 Q_AGENT: openvswitch diff --git a/zuul.d/rocky_jobs.yaml b/zuul.d/rocky_jobs.yaml index 11e4c9ae5..47f88f2ff 100644 --- a/zuul.d/rocky_jobs.yaml +++ b/zuul.d/rocky_jobs.yaml @@ -435,7 +435,7 @@ CIRROS_VERSION: 0.5.1 IMAGE_URLS: https://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img ADVANCED_IMAGE_NAME: ubuntu-18.04-server-cloudimg-amd64 - ADVANCED_INSTANCE_TYPE: ds512M + ADVANCED_INSTANCE_TYPE: ntp_image_384M ADVANCED_INSTANCE_USER: ubuntu BUILD_TIMEOUT: 784 TEMPEST_PLUGINS: /opt/stack/neutron-tempest-plugin