Skip to content

Commit 6df5371

Browse files
committed
bump guest ram to prevent kernel panics
one observation we had in down stream ci is sometimes the cirros 0.6.2 image appared to crash when using 128MB of ram. upstream we have been dealing with semi random kernel panics which are losely corralated with cinder volume usage. Recently we optimisted the devstack jobs by using zswap this has reduced memory pressure in the jobs. This patch increase the ram allocated to a flavor to see if we can afford that with the current conncurnace level in an attempt to reduce kernel panics. Two new parmaters are added to allow jobs or users to set the desired ram size. TEMPEST_FLAVOR_RAM=${TEMPEST_FLAVOR_RAM:-192} TEMPEST_FLAVOR_ALT_RAM=${TEMPEST_FLAVOR_ALT_RAM:-256} Change-Id: Ib6a2d5ab61a771d4f85bd2c2412052efadc77ac5
1 parent 1d48d2f commit 6df5371

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

lib/tempest

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ TEMPEST_USE_TEST_ACCOUNTS=$(trueorfalse False TEMPEST_USE_TEST_ACCOUNTS)
102102
# it will run tempest with
103103
TEMPEST_CONCURRENCY=${TEMPEST_CONCURRENCY:-$(nproc)}
104104

105+
TEMPEST_FLAVOR_RAM=${TEMPEST_FLAVOR_RAM:-192}
106+
TEMPEST_FLAVOR_ALT_RAM=${TEMPEST_FLAVOR_ALT_RAM:-256}
107+
105108
# Functions
106109
# ---------
107110

@@ -295,13 +298,15 @@ function configure_tempest {
295298
if [[ ! ( $available_flavors =~ 'm1.nano' ) ]]; then
296299
# Determine the flavor disk size based on the image size.
297300
disk=$(image_size_in_gib $image_uuid)
298-
openstack --os-cloud devstack-admin flavor create --id 42 --ram 128 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.nano
301+
ram=${TEMPEST_FLAVOR_RAM}
302+
openstack --os-cloud devstack-admin flavor create --id 42 --ram ${ram} --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.nano
299303
fi
300304
flavor_ref=42
301305
if [[ ! ( $available_flavors =~ 'm1.micro' ) ]]; then
302306
# Determine the alt flavor disk size based on the alt image size.
303307
disk=$(image_size_in_gib $image_uuid_alt)
304-
openstack --os-cloud devstack-admin flavor create --id 84 --ram 192 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.micro
308+
ram=${TEMPEST_FLAVOR_ALT_RAM}
309+
openstack --os-cloud devstack-admin flavor create --id 84 --ram ${ram} --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.micro
305310
fi
306311
flavor_ref_alt=84
307312
else

0 commit comments

Comments
 (0)