Collect VM IP Addresses
[Arguments] ${fail_on_none} @{vm_list}
- [Documentation] Using nova console-log on the provided ${vm_list} to search for the string "obtained" which
+ [Documentation] Using the console-log on the provided ${vm_list} to search for the string "obtained" which
... correlates to the instance receiving it's IP address via DHCP. Also retrieved is the ip of the nameserver
... if available in the console-log output. The keyword will also return a list of the learned ips as it
... finds them in the console log output, and will have "None" for Vms that no ip was found.
Collect VM IPv6 SLAAC Addresses
[Arguments] ${fail_on_none} ${prefix} @{vm_list}
- [Documentation] Using nova console-log on the provided ${vm_list} to search for the string "inet6" which
+ [Documentation] Using the console-log on the provided ${vm_list} to search for the string "inet6" which
... correlates to the instance generated IPv6 address, based on the ${prefix} received from ODL (SLAAC mode).
${ip_list} Create List @{EMPTY}
: FOR ${vm} IN @{vm_list}
\ Log ${vm}
- \ ${rc} ${vm_ip_line}= Run And Return Rc And Output nova console-log ${vm} | grep -i "inet6"
+ \ ${rc} ${vm_ip_line}= Run And Return Rc And Output openstack console log show ${vm} | grep -i "inet6"
\ Log ${vm_ip_line}
\ Log ${rc}
\ @{vm_ip_list} Get Regexp Matches ${vm_ip_line} ${prefix}
[Arguments] ${vm_instance_names}
[Documentation] View Console log of the created vm instances using nova show.
: FOR ${VmElement} IN @{vm_instance_names}
- \ ${rc} ${output}= Run And Return Rc And Output nova show ${VmElement}
+ \ ${rc} ${output}= Run And Return Rc And Output openstack server show ${VmElement}
\ Log ${output}
\ Should Not Be True ${rc}
\ ${rc} ${output}= Run And Return Rc And Output openstack console log show ${VmElement}
${LOOP_COUNT} Get Length ${VM_INSTANCES_NET10}
: 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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Log ${VM_IP_NET10}
Set Suite Variable ${VM_IP_NET10}
Log ${VM_IP_NET20}
${LOOP_COUNT} Get Length ${VM_INSTANCES_NET10}
: 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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Log ${VM_IP_NET10}
Set Suite Variable ${VM_IP_NET10}
Log ${VM_IP_NET20}
${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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Set Suite Variable ${VM_IP_NET1}
Set Suite Variable ${VM_IP_NET2}
Set Suite Variable ${VM_IP_NET3}
${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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Log ${VM_IP_NET1}
Log ${VM_IP_NET2}
Should Not Contain ${VM_IP_NET2} None
${LOOP_COUNT} Get Length ${VM_INSTANCES}
: 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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Set Suite Variable ${NET1_VM_IPS}
Set Suite Variable ${NET2_VM_IPS}
Should Not Contain ${NET1_VM_IPS} None
${LOOP_COUNT} Get Length ${VM_INSTANCES}
: 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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Set Suite Variable ${NET1_L3_VM_IPS}
Set Suite Variable ${NET2_L3_VM_IPS}
Set Suite Variable ${NET1_DHCP_IP}
${LOOP_COUNT} Get Length ${VM_INSTANCES}
: 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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Set Suite Variable ${NET1_VM_IPS}
Set Suite Variable ${NET2_VM_IPS}
Should Not Contain ${NET1_VM_IPS} None
${LOOP_COUNT} Get Length ${VM_INSTANCES}
: 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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Set Suite Variable ${NET1_L3_VM_IPS}
Set Suite Variable ${NET1_DHCP_IP}
Set Suite Variable ${NET2_L3_VM_IPS}
${LOOP_COUNT} Get Length ${VM_INSTANCES}
: 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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Set Suite Variable ${FLOATING_VM_IPS}
Set Suite Variable ${SNAT_VM_IPS}
Should Not Contain ${FLOATING_VM_IPS} None
${LOOP_COUNT} Get Length ${VM_INSTANCES}
: 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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Set Suite Variable ${NET1_VM_IPS}
Set Suite Variable ${NET1_DHCP_IP}
Should Not Contain ${NET1_VM_IPS} None
${LOOP_COUNT} Get Length ${VM_INSTANCES}
: 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
+ \ Run Keyword If '${status}' == 'FAIL' Write Commands Until Prompt openstack console log show @{VM_INSTANCES}[${index}] 30s
Set Suite Variable ${NET1_VM_IPS}
Should Not Contain ${NET1_VM_IPS} None
Should Not Contain ${NET1_DHCP_IP} None