From 54edc7aeef97df768477b5fa14f8fc45266a9c2e Mon Sep 17 00:00:00 2001 From: Lee Yarwood Date: Fri, 22 May 2020 13:03:15 +0100 Subject: [PATCH] tempest: Increase m1.nano and m1.micro RAM by 64MB to avoid tmpfs exhaustion tmpfs exhaustion has long been suspected as the root issue behind failures to load ssh keys and other metadata from local config drives as documented in bug #1808010. This can also lead to failures fetching metadata from n-metadata-api leaving Tempest unable to SSH into instances. This change increases the RAM of the m1.nano and m1.micro flavors by 64MB to hopefully avoid these errors going forward. This is also ahead of our eventual upgrade to Cirros 0.5.0 where 128MB becomes a requirement. Related-Bug: #1808010 Change-Id: I4b597579cf89939955d3c110c0bd58ca05de61f0 --- lib/tempest | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tempest b/lib/tempest index 37b22065b4..05fcb1f1f3 100644 --- a/lib/tempest +++ b/lib/tempest @@ -203,13 +203,13 @@ function configure_tempest { if [[ ! ( $available_flavors =~ 'm1.nano' ) ]]; then # Determine the flavor disk size based on the image size. disk=$(image_size_in_gib $image_uuid) - openstack flavor create --id 42 --ram 64 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.nano + openstack flavor create --id 42 --ram 128 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.nano fi flavor_ref=42 if [[ ! ( $available_flavors =~ 'm1.micro' ) ]]; then # Determine the alt flavor disk size based on the alt image size. disk=$(image_size_in_gib $image_uuid_alt) - openstack flavor create --id 84 --ram 128 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.micro + openstack flavor create --id 84 --ram 192 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.micro fi flavor_ref_alt=84 else