Spawn instances in nova availability zone 69/23169/1
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>
Thu, 13 Oct 2016 11:42:48 +0000 (14:42 +0300)
committerJose Lausuch <jose.lausuch@ericsson.com>
Fri, 14 Oct 2016 14:27:53 +0000 (14:27 +0000)
Change-Id: I9dc3a00b3c96cf23916388a52efd610e4649dfff
Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
(cherry picked from commit bc72396bf41892ad31f0680da80c6ef347a0ba6b)

testcases/features/sfc/sfc.py
testcases/features/sfc/sfc_colorado1.py

index f96ee43..8905b56 100755 (executable)
@@ -175,7 +175,8 @@ def main():
     instance = os_utils.create_instance_and_wait_for_active(FLAVOR,
                                                             image_id,
                                                             network_id,
-                                                            INSTANCE_NAME)
+                                                            INSTANCE_NAME,
+                                                            av_zone='nova')
 
     if instance is None:
         logger.error("Error while booting instance.")
@@ -215,7 +216,8 @@ def main():
     instance_2 = os_utils.create_instance_and_wait_for_active(FLAVOR,
                                                               image_id,
                                                               network_id,
-                                                              INSTANCE_NAME_2)
+                                                              INSTANCE_NAME_2,
+                                                              av_zone='nova')
 
     if instance_2 is None:
         logger.error("Error while booting instance.")
index 5577842..28b8c35 100755 (executable)
@@ -173,10 +173,12 @@ def main():
         logger.debug(
             "Configuration:\n name=%s \n flavor=%s \n image=%s \n "
             "network=%s \n" % (INSTANCE_NAME, FLAVOR, image_id, network_id))
-        instance = os_utils.create_instance_and_wait_for_active(FLAVOR,
-                                                                image_id,
-                                                                network_id,
-                                                                INSTANCE_NAME)
+        instance = os_utils.create_instance_and_wait_for_active(
+            FLAVOR,
+            image_id,
+            network_id,
+            INSTANCE_NAME,
+            av_zone='nova')
 
         if instance is None:
             logger.error("Error while booting instance.")
@@ -222,7 +224,8 @@ def main():
             FLAVOR,
             image_id,
             network_id,
-            INSTANCE_NAME_2)
+            INSTANCE_NAME_2,
+            av_zone='nova')
 
         if instance_2 is None:
             logger.error("Error while booting instance.")