Gate: Attempt to fix a memory allocation error

This random error is due to the different swap space at different
test hosts. In particular, there is a provider who provides VMs with
0 swap space, while other providers provide VMs with 8G swap space.
As a result, Magnum jobs failed at VMs with 0 swap space.

This commit reduces memory consumption of Magnum jobs by reducing the
bay node flavor from 2G to 1G. I consider this as a temporary fix.
A permanent fix should be from infra side to make the swap space
consistent across test nodes.

Partial-Bug: #1521237
Change-Id: Ia043fab1f7665f7299e4094634e02c42b43dcce1
This commit is contained in:
Hongbin Lu 2015-12-09 11:50:06 -05:00
parent aa82107e7b
commit 958e63341a
3 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ Create the necessary keypair and flavor::
source /opt/stack/devstack/openrc admin admin
nova keypair-add --pub-key ~/.ssh/id_rsa.pub default
nova flavor-create m1.magnum 100 2048 8 1
nova flavor-create m1.magnum 100 1024 8 1
source /opt/stack/devstack/openrc demo demo
nova keypair-add --pub-key ~/.ssh/id_rsa.pub default

View File

@ -94,7 +94,7 @@ nova keypair-add --pub-key ~/.ssh/id_rsa.pub default
# Create magnum specific flavor for use in functional tests.
echo_summary "Create a flavor"
nova flavor-create m1.magnum 100 2048 8 1
nova flavor-create m1.magnum 100 1024 8 1
# Run functional tests
# Currently we support functional-api, functional-k8s, will support swarm,

View File

@ -117,6 +117,7 @@ class BaseMagnumClient(base.TestCase):
external_network_id=cls.nic_id,
image_id=cls.image_id,
flavor_id=cls.flavor_id,
master_flavor_id=cls.flavor_id,
docker_volume_size=docker_volume_size,
network_driver=network_driver,
coe=coe,