TC04 Create Vms On Compute Node
OpenStackOperations.Create Nano Flavor
${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}
+ OpenStackOperations.Create Vm Instance With Port On Compute Node ${OVS_PORT_1} ${OVS_VM1_NAME} ${hostname_compute_node} sg=${SECURITY_GROUP_L2GW}
${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]}
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}
${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}
+ OpenStackOperations.Create Vm Instance With Port On Compute Node ${OVS_PORT_2} ${OVS_VM2_NAME} ${hostname_compute_node} sg=${SECURITY_GROUP_L2GW}
${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]}