Show Debugs
[Arguments] ${vm_indices}
[Documentation] Run these commands for debugging, it can list state of VM instances and ip information in control node
+ ${devstack_conn_id}= Get ControlNode Connection
+ Switch Connection ${devstack_conn_id}
${output}= Write Commands Until Prompt sudo ip netns list
Log ${output}
: FOR ${index} IN @{vm_indices}
Documentation Test suite to verify packet flows between vm instances.
Suite Setup Devstack Suite Setup Tests source_pwd=yes
Suite Teardown Close All Connections
+Test Teardown Run Keywords Show Debugs ${NET_1_VM_IPS}
+... AND Show Debugs ${NET_2_VM_IPS}
+... AND Get OvsDebugInfo
Library SSHLibrary
Library OperatingSystem
Library RequestsLibrary
[Documentation] Create Vm instances using flavor and image names for a network.
Log ${devstack_conn_id}
OpenStackOperations.Create Vm Instances l2_net_1 ${NET_1_VM_INSTANCES} sg=csit
- [Teardown] OpenStackOperations.Show Debugs ${NET_1_VM_INSTANCES}
Bring Up ODL1
[Documentation] Bring up ODL1 again
Create Vm Instances For l2_net_2
[Documentation] Create Vm instances using flavor and image names for a network.
OpenStackOperations.Create Vm Instances l2_net_2 ${NET_2_VM_INSTANCES} sg=csit
- [Teardown] OpenStackOperations.Show Debugs ${NET_2_VM_INSTANCES}
Bring Up ODL2
[Documentation] Bring up ODL2 again
Ping Vm Instance1 In l2_net_1
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l2_net_1 @{NET_1_VM_IPS}[0]
Ping Vm Instance2 In l2_net_1
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l2_net_1 @{NET_1_VM_IPS}[1]
Ping Vm Instance3 In l2_net_1
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l2_net_1 @{NET_1_VM_IPS}[2]
Ping Vm Instance1 In l2_net_2
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l2_net_2 @{NET_2_VM_IPS}[0]
Ping Vm Instance2 In l2_net_2
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l2_net_2 @{NET_2_VM_IPS}[1]
Ping Vm Instance3 In l2_net_2
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l2_net_2 @{NET_2_VM_IPS}[2]
Take Down ODL3
[Documentation] Logging to the vm instance using generated key pair.
${dst_ip_list}= Create List @{NET_1_VM_IPS}[1] @{DHCP_IPS}[0] @{NET_1_VM_IPS}[2]
Log ${dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l2_net_1 @{NET_1_VM_IPS}[0] ${dst_ip_list}
Connectivity Tests From Vm Instance2 In l2_net_1
[Documentation] Logging to the vm instance using generated key pair.
${dst_ip_list}= Create List @{NET_1_VM_IPS}[0] @{DHCP_IPS}[0] @{NET_1_VM_IPS}[2]
Log ${dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l2_net_1 @{NET_1_VM_IPS}[1] ${dst_ip_list}
Connectivity Tests From Vm Instance3 In l2_net_1
[Documentation] Logging to the vm instance using generated key pair.
${dst_ip_list}= Create List @{NET_1_VM_IPS}[0] @{DHCP_IPS}[0] @{NET_1_VM_IPS}[1]
Log ${dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l2_net_1 @{NET_1_VM_IPS}[2] ${dst_ip_list}
Bring Up ODL3
[Documentation] Logging to the vm instance using generated key pair.
${dst_ip_list}= Create List @{NET_2_VM_IPS}[1] @{DHCP_IPS}[1] @{NET_2_VM_IPS}[2]
Log ${dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l2_net_2 @{NET_2_VM_IPS}[0] ${dst_ip_list}
Connectivity Tests From Vm Instance2 In l2_net_2
[Documentation] Logging to the vm instance using generated key pair.
${dst_ip_list}= Create List @{NET_2_VM_IPS}[0] @{DHCP_IPS}[1] @{NET_2_VM_IPS}[2]
Log ${dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l2_net_2 @{NET_2_VM_IPS}[1] ${dst_ip_list}
Connectivity Tests From Vm Instance3 In l2_net_2
[Documentation] Logging to the vm instance using generated key pair.
${dst_ip_list}= Create List @{NET_2_VM_IPS}[0] @{DHCP_IPS}[1] @{NET_2_VM_IPS}[1]
Log ${dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l2_net_2 @{NET_2_VM_IPS}[2] ${dst_ip_list}
Bring Up ODL1 and ODL2
Documentation Test suite to check connectivity in L3 using routers.
Suite Setup Devstack Suite Setup Tests source_pwd=yes
Suite Teardown Close All Connections
-Library SSHLibrary
+Test Teardown Run Keywords Show Debugs ${NET_1_VM_IPS}
+... AND Show Debugs ${NET_2_VM_IPS}
+... AND Get OvsDebugInfoLibrary SSHLibrary
Library OperatingSystem
Library RequestsLibrary
Resource ../../../libraries/Utils.robot
Ping Vm Instance1 In l3_net_2 From l3_net_1
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l3_net_1 @{NET_2_VM_IPS}[0]
Ping Vm Instance2 In l3_net_2 From l3_net_1
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l3_net_1 @{NET_2_VM_IPS}[1]
Ping Vm Instance3 In l3_net_2 From l3_net_1
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l3_net_1 @{NET_2_VM_IPS}[2]
Ping Vm Instance1 In l3_net_1 From l3_net_2
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l3_net_2 @{NET_1_VM_IPS}[0]
Ping Vm Instance2 In l3_net_1 From l3_net_2
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l3_net_2 @{NET_1_VM_IPS}[1]
Ping Vm Instance3 In l3_net_1 From l3_net_2
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
OpenStackOperations.Ping Vm From DHCP Namespace l3_net_2 @{NET_1_VM_IPS}[2]
Take Down ODL1 and ODL2
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{NET_2_VM_IPS}[0] @{DHCP_IPS}[1] @{NET_2_VM_IPS}[2] @{NET_2_VM_IPS}[1]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l3_net_1 @{NET_1_VM_IPS}[0] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Connectivity Tests From Vm Instance2 In l3_net_1
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{NET_2_VM_IPS}[0] @{DHCP_IPS}[1] @{NET_2_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l3_net_1 @{NET_1_VM_IPS}[1] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Connectivity Tests From Vm Instance3 In l3_net_1
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{NET_2_VM_IPS}[0] @{DHCP_IPS}[1] @{NET_2_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l3_net_1 @{NET_1_VM_IPS}[2] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Bring Up ODL1 and ODL2
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{NET_1_VM_IPS}[0] @{DHCP_IPS}[0] @{NET_1_VM_IPS}[1] @{NET_1_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l3_net_2 @{NET_2_VM_IPS}[0] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Connectivity Tests From Vm Instance2 In l3_net_2
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{NET_1_VM_IPS}[0] @{DHCP_IPS}[0] @{NET_1_VM_IPS}[1] @{NET_1_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l3_net_2 @{NET_2_VM_IPS}[1] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Connectivity Tests From Vm Instance3 In l3_net_2
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{NET_1_VM_IPS}[0] @{DHCP_IPS}[0] @{NET_1_VM_IPS}[1] @{NET_1_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
OpenStackOperations.Test Operations From Vm Instance l3_net_2 @{NET_2_VM_IPS}[2] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Bring Up ODL2 and ODL3
Suite Setup Devstack Suite Setup Tests
Suite Teardown Close All Connections
Test Setup Log Testcase Start To Controller Karaf
+Test Teardown Run Keywords Show Debugs ${NET_1_VM_IPS}
+... AND Show Debugs ${NET_2_VM_IPS}
+... AND Get OvsDebugInfo
Library SSHLibrary
Library OperatingSystem
Library RequestsLibrary
Create Vm Instances For l2_network_1
[Documentation] Create Four Vm instances using flavor and image names for a network.
Create Vm Instances l2_network_1 ${NET_1_VM_INSTANCES} sg=csit
- [Teardown] Show Debugs ${NET_1_VM_INSTANCES}
Create Vm Instances For l2_network_2
[Documentation] Create Four Vm instances using flavor and image names for a network.
Create Vm Instances l2_network_2 ${NET_2_VM_INSTANCES} sg=csit
- [Teardown] Show Debugs ${NET_2_VM_INSTANCES}
- Get OvsDebugInfo
Ping Vm Instance1 In l2_network_1
[Documentation] Check reachability of vm instances by pinging to them.
Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_1 @{NET_1_VM_IPS}[0]
- Get OvsDebugInfo
Ping Vm Instance2 In l2_network_1
[Documentation] Check reachability of vm instances by pinging to them.
Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_1 @{NET_1_VM_IPS}[1]
- Get OvsDebugInfo
Ping Vm Instance3 In l2_network_1
[Documentation] Check reachability of vm instances by pinging to them.
Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_1 @{NET_1_VM_IPS}[2]
- Get OvsDebugInfo
Ping Vm Instance1 In l2_network_2
[Documentation] Check reachability of vm instances by pinging to them.
Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_2 @{NET_2_VM_IPS}[0]
- Get OvsDebugInfo
Ping Vm Instance2 In l2_network_2
[Documentation] Check reachability of vm instances by pinging to them.
Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_2 @{NET_2_VM_IPS}[1]
- Get OvsDebugInfo
Ping Vm Instance3 In l2_network_2
[Documentation] Check reachability of vm instances by pinging to them.
Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_2 @{NET_2_VM_IPS}[2]
- Get OvsDebugInfo
Connectivity Tests From Vm Instance1 In l2_network_1
[Documentation] Logging to the vm instance1
Log ${dst_ip_list}
Get OvsDebugInfo
Test Operations From Vm Instance l2_network_1 @{NET_1_VM_IPS}[0] ${dst_ip_list}
- Get OvsDebugInfo
Connectivity Tests From Vm Instance2 In l2_network_1
[Documentation] Logging to the vm instance2
Log ${dst_ip_list}
Get OvsDebugInfo
Test Operations From Vm Instance l2_network_1 @{NET_1_VM_IPS}[1] ${dst_ip_list}
- Get OvsDebugInfo
Connectivity Tests From Vm Instance3 In l2_network_1
[Documentation] Logging to the vm instance2
Log ${dst_ip_list}
Get OvsDebugInfo
Test Operations From Vm Instance l2_network_1 @{NET_1_VM_IPS}[2] ${dst_ip_list}
- Get OvsDebugInfo
Connectivity Tests From Vm Instance1 In l2_network_2
[Documentation] Logging to the vm instance using generated key pair.
Log ${dst_ip_list}
Get OvsDebugInfo
Test Operations From Vm Instance l2_network_2 @{NET_2_VM_IPS}[0] ${dst_ip_list}
- Get OvsDebugInfo
Connectivity Tests From Vm Instance2 In l2_network_2
[Documentation] Logging to the vm instance using generated key pair.
Log ${dst_ip_list}
Get OvsDebugInfo
Test Operations From Vm Instance l2_network_2 @{NET_2_VM_IPS}[1] ${dst_ip_list}
- Get OvsDebugInfo
Connectivity Tests From Vm Instance3 In l2_network_2
[Documentation] Logging to the vm instance using generated key pair.
Log ${dst_ip_list}
Get OvsDebugInfo
Test Operations From Vm Instance l2_network_2 @{NET_2_VM_IPS}[2] ${dst_ip_list}
- Get OvsDebugInfo
Delete A Vm Instance
[Documentation] Delete Vm instances using instance names.
[Documentation] Check non reachability of deleted vm instances by pinging to them.
Get OvsDebugInfo
${output}= Ping From DHCP Should Not Succeed l2_network_1 @{NET_1_VM_IPS}[0]
- Get OvsDebugInfo
Delete Vm Instances In l2_network_1
[Documentation] Delete Vm instances using instance names in l2_network_1.
[Documentation] Delete Networks with neutron request.
: FOR ${NetworkElement} IN @{NETWORKS_NAME}
\ Delete Network ${NetworkElement}
- Get OvsDebugInfo
Suite Setup Devstack Suite Setup Tests
Suite Teardown Close All Connections
Test Setup Log Testcase Start To Controller Karaf
+Test Teardown Run Keywords Show Debugs ${NET_1_VM_IPS}
+... AND Show Debugs ${NET_2_VM_IPS}
+... AND Get OvsDebugInfo
Library SSHLibrary
Library OperatingSystem
Library RequestsLibrary
Create Vm Instances For network_1
[Documentation] Create Four Vm instances using flavor and image names for a network.
Create Vm Instances network_1 ${NET_1_VM_INSTANCES} sg=csit
- [Teardown] Show Debugs ${NET_1_VM_INSTANCES}
Create Vm Instances For network_2
[Documentation] Create Four Vm instances using flavor and image names for a network.
Create Vm Instances network_2 ${NET_2_VM_INSTANCES} sg=csit
- [Teardown] Show Debugs ${NET_2_VM_INSTANCES}
Create Routers
[Documentation] Create Router
Ping Vm Instance1 In network_2 From network_1
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace network_1 @{NET_2_VM_IPS}[0]
Ping Vm Instance2 In network_2 From network_1
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace network_1 @{NET_2_VM_IPS}[1]
Ping Vm Instance3 In network_2 From network_1
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace network_1 @{NET_2_VM_IPS}[2]
Ping Vm Instance1 In network_1 From network_2
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace network_2 @{NET_1_VM_IPS}[0]
Ping Vm Instance2 In network_1 From network_2
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace network_2 @{NET_1_VM_IPS}[1]
Ping Vm Instance3 In network_1 From network_2
[Documentation] Check reachability of vm instances by pinging to them after creating routers.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace network_2 @{NET_1_VM_IPS}[2]
Connectivity Tests From Vm Instance1 In network_1
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{DHCP_IPS}[1] @{NET_2_VM_IPS}[0] @{NET_2_VM_IPS}[1] @{NET_2_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance network_1 @{NET_1_VM_IPS}[0] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Connectivity Tests From Vm Instance2 In network_1
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{DHCP_IPS}[1] @{NET_2_VM_IPS}[0] @{NET_2_VM_IPS}[1] @{NET_2_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance network_1 @{NET_1_VM_IPS}[1] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Connectivity Tests From Vm Instance3 In network_1
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{DHCP_IPS}[1] @{NET_2_VM_IPS}[0] @{NET_2_VM_IPS}[1] @{NET_2_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance network_1 @{NET_1_VM_IPS}[2] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Connectivity Tests From Vm Instance1 In network_2
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{DHCP_IPS}[0] @{NET_1_VM_IPS}[0] @{NET_1_VM_IPS}[1] @{NET_1_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance network_2 @{NET_2_VM_IPS}[0] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Connectivity Tests From Vm Instance2 In network_2
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{DHCP_IPS}[0] @{NET_1_VM_IPS}[0] @{NET_1_VM_IPS}[1] @{NET_1_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance network_2 @{NET_2_VM_IPS}[1] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Connectivity Tests From Vm Instance3 In network_2
Log ${dst_ip_list}
${other_dst_ip_list}= Create List @{DHCP_IPS}[0] @{NET_1_VM_IPS}[0] @{NET_1_VM_IPS}[1] @{NET_1_VM_IPS}[2]
Log ${other_dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance network_2 @{NET_2_VM_IPS}[2] ${dst_ip_list} l2_or_l3=l3 list_of_external_dst_ips=${other_dst_ip_list}
Delete Vm Instances In network_1