Browse code

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

Lee Yarwood authored on 2020/05/22 21:03:15
Showing 1 changed files
... ...
@@ -203,13 +203,13 @@ function configure_tempest {
203 203
             if [[ ! ( $available_flavors =~ 'm1.nano' ) ]]; then
204 204
                 # Determine the flavor disk size based on the image size.
205 205
                 disk=$(image_size_in_gib $image_uuid)
206
-                openstack flavor create --id 42 --ram 64 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.nano
206
+                openstack flavor create --id 42 --ram 128 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.nano
207 207
             fi
208 208
             flavor_ref=42
209 209
             if [[ ! ( $available_flavors =~ 'm1.micro' ) ]]; then
210 210
                 # Determine the alt flavor disk size based on the alt image size.
211 211
                 disk=$(image_size_in_gib $image_uuid_alt)
212
-                openstack flavor create --id 84 --ram 128 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.micro
212
+                openstack flavor create --id 84 --ram 192 --disk $disk --vcpus 1 --property hw_rng:allowed=True m1.micro
213 213
             fi
214 214
             flavor_ref_alt=84
215 215
         else