Browse code

Merge "Nano and Micro flavors should run really small cirros only"

Jenkins authored on 2015/10/08 01:44:16
Showing 2 changed files
... ...
@@ -408,6 +408,28 @@ these default images; in that case, you will want to populate
408 408
         IMAGE_URLS="http://foo.bar.com/image.qcow,"
409 409
         IMAGE_URLS+="http://foo.bar.com/image2.qcow"
410 410
 
411
+
412
+Instance Type
413
+-------------
414
+
415
+``DEFAULT_INSTANCE_TYPE`` can be used to configure the default instance
416
+type. When this parameter is not specified, Devstack creates additional
417
+micro & nano flavors for really small instances to run Tempest tests.
418
+
419
+For guests with larger memory requirements, ``DEFAULT_INSTANCE_TYPE``
420
+should be specified in the configuration file so Tempest selects the
421
+default flavors instead.
422
+
423
+KVM on Power with QEMU 2.4 requires 512 MB to load the firmware -
424
+`QEMU 2.4 - PowerPC <http://wiki.qemu.org/ChangeLog/2.4>`__ so users
425
+running instances on ppc64/ppc64le can choose one of the default
426
+created flavors as follows:
427
+
428
+    ::
429
+
430
+        DEFAULT_INSTANCE_TYPE=m1.tiny
431
+
432
+
411 433
 IP Version
412 434
 ----------
413 435
 
... ...
@@ -205,21 +205,12 @@ function configure_tempest {
205 205
         if  [[ -z "$DEFAULT_INSTANCE_TYPE" ]]; then
206 206
             available_flavors=$(nova flavor-list)
207 207
             if [[ ! ( $available_flavors =~ 'm1.nano' ) ]]; then
208
-                if is_arch "ppc64"; then
209
-                    # Qemu needs at least 128MB of memory to boot on ppc64
210
-                    nova flavor-create m1.nano 42 128 0 1
211
-                else
212
-                    nova flavor-create m1.nano 42 64 0 1
213
-                fi
208
+                nova flavor-create m1.nano 42 64 0 1
214 209
             fi
215 210
             flavor_ref=42
216 211
             boto_instance_type=m1.nano
217 212
             if [[ ! ( $available_flavors =~ 'm1.micro' ) ]]; then
218
-                if is_arch "ppc64"; then
219
-                    nova flavor-create m1.micro 84 256 0 1
220
-                else
221
-                    nova flavor-create m1.micro 84 128 0 1
222
-                fi
213
+                nova flavor-create m1.micro 84 128 0 1
223 214
             fi
224 215
             flavor_ref_alt=84
225 216
         else