Fix L2GW CSIT 75/67175/1
authorVictor Pickard <vpickard@redhat.com>
Mon, 15 Jan 2018 21:42:49 +0000 (16:42 -0500)
committerVictor Pickard <vpickard@redhat.com>
Mon, 15 Jan 2018 21:42:49 +0000 (16:42 -0500)
Some recent changes to OpenStackOperations require adjustments
in this suite.

Change-Id: Ia5c1fc68f83d547f7c29e52fc7c61bf4c38590b3
Signed-off-by: Victor Pickard <vpickard@redhat.com>
csit/suites/l2gw/01_Configure_verify_l2gateway.robot

index d9c5293b0f8f4e364f1220e75bb29cadc0bba737..2cbe9298a7ce15048e69ad879db482de3a661fea 100644 (file)
@@ -34,7 +34,8 @@ TC03 Update Port For Hwvtep And Attach Port To Namespace
 
 TC04 Create Vms On Compute Node
     OpenStackOperations.Create Nano Flavor
-    OpenStackOperations.Create Vm Instance With Port On Compute Node    ${OVS_PORT_1}    ${OVS_VM1_NAME}    ${OVS_IP}
+    ${hostname_compute_node}=    Get Hypervisor Hostname From IP    ${OVS_IP}
+    OpenStackOperations.Create Vm Instance With Port On Compute Node    ${OVS_PORT_1}    ${OVS_VM1_NAME}    ${hostname_compute_node}
     ${vm_ip}=    Wait Until Keyword Succeeds    60s    2s    L2GatewayOperations.Verify Nova VM IP    ${OVS_VM1_NAME}
     Log    ${vm_ip}
     Should Contain    ${vm_ip}    ${port_ip_list[0]}
@@ -91,7 +92,8 @@ TC09 Additional Network Subnet Port Creation
 TC10 Update And Attach Second Port To Hwvtep Create L2gw Connection
     L2GatewayOperations.Update Port For Hwvtep    ${HWVTEP_PORT_2}
     Wait Until Keyword Succeeds    30s    2s    L2GatewayOperations.Attach Port To Hwvtep Namespace    ${port_mac_list[3]}    ${HWVTEP_NS2}    ${NS2_TAP1}
-    OpenStackOperations.Create Vm Instance With Port On Compute Node    ${OVS_PORT_2}    ${OVS_VM2_NAME}    ${OVS_IP}
+    ${hostname_compute_node}=    Get Hypervisor Hostname From IP    ${OVS_IP}
+    OpenStackOperations.Create Vm Instance With Port On Compute Node    ${OVS_PORT_2}    ${OVS_VM2_NAME}    ${hostname_compute_node}
     ${vm_ip}=    Wait Until Keyword Succeeds    60s    2s    L2GatewayOperations.Verify Nova VM IP    ${OVS_VM2_NAME}
     Log    ${vm_ip}
     Should Contain    ${vm_ip}    ${port_ip_list[2]}