Browse code

increase heat guests

heat is booting a real fedora, which makes m1.tiny completely not
appropriate. We want to limit disk io, so boot as a 2 vcpu 1G guest
to try to get some better performance out of these guests when
tested in tempest.

Change-Id: I80de67080a5106c2d8921e146c37c614ee5f8abf

Sean Dague authored on 2014/04/04 00:28:01
Showing 1 changed files
... ...
@@ -320,9 +320,18 @@ function configure_tempest {
320 320
     iniset $TEMPEST_CONFIG boto http_socket_timeout 30
321 321
     iniset $TEMPEST_CONFIG boto ssh_user ${DEFAULT_INSTANCE_USER:-cirros}
322 322
 
323
-    # Orchestration test image
324
-    if [[ ! -z "$HEAT_CFN_IMAGE_URL" ]]; then
325
-        iniset $TEMPEST_CONFIG orchestration image_ref $(basename "$HEAT_CFN_IMAGE_URL" ".qcow2")
323
+    # Orchestration Tests
324
+    if is_service_enabled heat; then
325
+        if [[ ! -z "$HEAT_CFN_IMAGE_URL" ]]; then
326
+            iniset $TEMPEST_CONFIG orchestration image_ref $(basename "$HEAT_CFN_IMAGE_URL" ".qcow2")
327
+        fi
328
+        # build a specialized heat flavor that is likely to be fast
329
+        available_flavors=$(nova flavor-list)
330
+        if [[ ! ( $available_flavors =~ 'm1.heat' ) ]]; then
331
+            nova flavor-create m1.heat 451 1024 0 2
332
+        fi
333
+        iniset $TEMPEST_CONFIG orchestration instance_type "m1.heat"
334
+        iniset $TEMPEST_CONFIG orchestration build_timeout 900
326 335
     fi
327 336
 
328 337
     # Scenario