Browse code

Merge "increase heat guests"

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