SFC tests with 2 compute nodes 62/75962/4
authorgvrangan <venkatrangang@hcl.com>
Tue, 11 Sep 2018 20:14:43 +0000 (01:44 +0530)
committerSam Hague <shague@redhat.com>
Thu, 20 Sep 2018 19:44:20 +0000 (19:44 +0000)
- SF Instance will be creaetd in Compute2 if
  2 compute nodes are used for testing

- Oxygen tests will still use one compute node
  only

Change-Id: I87e8512a654671b8e88445e5fe13c51d161874c1
Signed-off-by: gvrangan <venkatrangang@hcl.com>
csit/suites/openstack/extensions/sfc.robot

index 8c28f9d7592bff36b5a6021d252e606d65101654..8c57459b6b57d6f9ec3e657fc46b30e5c1bf7620 100644 (file)
@@ -198,11 +198,12 @@ Create Ports For Testing
     OpenStackOperations.Get Suite Debugs
 
 Create Instances For Testing
-    BuiltIn.Comment    Create one ubuntu instances and two cirros instances
+    ${SF_COMP_HOST} =    BuiltIn.Set Variable If    2 < ${NUM_OS_SYSTEM}    ${OS_CMP2_HOSTNAME}    ${OS_CMP1_HOSTNAME}
+    BuiltIn.Comment    Create one ubuntu instance and two cirros instances
     OpenStackOperations.Add New Image From Url    ${CLOUD_IMAGE}    ${CLOUD_IMAGE_NAME}
     OpenStackOperations.Create Flavor    ${CLOUD_FLAVOR_NAME}    2048    4
     OpenStackOperations.Generate And Add Keypair    sfctest    odlsfctest
-    OpenStackOperations.Create Vm Instance With Ports And Key On Compute Node    p1in    p1out    sf1    ${OS_CMP1_HOSTNAME}    image=${CLOUD_IMAGE_NAME}    flavor=${CLOUD_FLAVOR_NAME}
+    OpenStackOperations.Create Vm Instance With Ports And Key On Compute Node    p1in    p1out    sf1    ${SF_COMP_HOST}    image=${CLOUD_IMAGE_NAME}    flavor=${CLOUD_FLAVOR_NAME}
     ...    sg=${SECURITY_GROUP}    keyname=sfctest
     OpenStackOperations.Create Vm Instance With Port On Compute Node    source_vm_port    sourcevm    ${OS_CMP1_HOSTNAME}    sg=${SECURITY_GROUP}    flavor=cirros256
     OpenStackOperations.Create Vm Instance With Port On Compute Node    dest_vm_port    destvm    ${OS_CMP1_HOSTNAME}    sg=${SECURITY_GROUP}    flavor=cirros256