Should Contain ${SUB_LIST} ${SUBNETS[1]}
Wait Until Keyword Succeeds 3s 1s Check For Elements At URI ${SUBNETWORK_URL} ${SUBNETS}
Neutron Security Group Create sg-vpnservice1
- Neutron Security Group Rule Create sg-vpnservice1 direction=ingress port_range_max=65535 port_range_min=1 protocol=tcp remote_ip_prefix=0.0.0.0/0
- Neutron Security Group Rule Create sg-vpnservice1 direction=egress port_range_max=65535 port_range_min=1 protocol=tcp remote_ip_prefix=0.0.0.0/0
- Neutron Security Group Rule Create sg-vpnservice1 direction=ingress protocol=icmp remote_ip_prefix=0.0.0.0/0
- Neutron Security Group Rule Create sg-vpnservice1 direction=egress protocol=icmp remote_ip_prefix=0.0.0.0/0
- Neutron Security Group Rule Create sg-vpnservice1 direction=ingress port_range_max=65535 port_range_min=1 protocol=udp remote_ip_prefix=0.0.0.0/0
- Neutron Security Group Rule Create sg-vpnservice1 direction=egress port_range_max=65535 port_range_min=1 protocol=udp remote_ip_prefix=0.0.0.0/0
+ Neutron Security Group Rule Create sg-vpnservice1 direction=ingress port_range_max=65535 port_range_min=1 protocol=tcp
+ Neutron Security Group Rule Create sg-vpnservice1 direction=egress port_range_max=65535 port_range_min=1 protocol=tcp
+ Neutron Security Group Rule Create sg-vpnservice1 direction=ingress protocol=icmp
+ Neutron Security Group Rule Create sg-vpnservice1 direction=egress protocol=icmp
+ Neutron Security Group Rule Create sg-vpnservice1 direction=ingress port_range_max=65535 port_range_min=1 protocol=udp
+ Neutron Security Group Rule Create sg-vpnservice1 direction=egress port_range_max=65535 port_range_min=1 protocol=udp
Log Create four ports under previously created subnets
Create Port ${NETWORKS[0]} ${PORT_LIST[0]} sg=sg-vpnservice1
Create Port ${NETWORKS[0]} ${PORT_LIST[1]} sg=sg-vpnservice1
Create Vm Instance With Port On Compute Node ${PORT_LIST[3]} ${VM_INSTANCES_NET2[1]} ${OS_COMPUTE_2_IP} sg=sg-vpnservice1
Verify VMs received IP
- [Documentation] Verify VM received IP
- ${VM_IP_NET1} ${DHCP_IP1} Verify VMs Received DHCP Lease @{VM_INSTANCES_NET1}
+ [Documentation] Verify VMs received IP
+ ${status} ${message} Run Keyword And Ignore Error Wait Until Keyword Succeeds 60s 5s Collect VM IP Addresses
+ ... true @{VM_INSTANCES_NET1}
+ ${status} ${message} Run Keyword And Ignore Error Wait Until Keyword Succeeds 60s 5s Collect VM IP Addresses
+ ... true @{VM_INSTANCES_NET2}
+ ${VM_IP_NET1} ${NET1_DHCP_IP} Collect VM IP Addresses false @{VM_INSTANCES_NET1}
+ ${VM_IP_NET2} ${NET2_DHCP_IP} Collect VM IP Addresses false @{VM_INSTANCES_NET2}
+ ${VM_INSTANCES}= Collections.Combine Lists ${VM_INSTANCES_NET1} ${VM_INSTANCES_NET2}
+ ${VM_IPS}= Collections.Combine Lists ${VM_IP_NET1} ${VM_IP_NET2}
+ ${LOOP_COUNT} Get Length ${VM_INSTANCES_NET1}
+ : FOR ${index} IN RANGE 0 ${LOOP_COUNT}
+ \ ${status} ${message} Run Keyword And Ignore Error Should Not Contain @{VM_IPS}[${index}] None
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt nova console-log @{VM_INSTANCES}[${index}] 30s
Log ${VM_IP_NET1}
- ${VM_IP_NET2} ${DHCP_IP2} Verify VMs Received DHCP Lease @{VM_INSTANCES_NET2}
Log ${VM_IP_NET2}
Should Not Contain ${VM_IP_NET2} None
Should Not Contain ${VM_IP_NET1} None