Should Be Equal As Integers ${rc} ${success_return_code} msg=${stdout} values=False
${num_virtual_storage}= Convert To Integer ${stdout}
Set Suite Variable ${vnf_num_volumes} ${num_virtual_storage}
- log ${vnf_num_volumes}
+ Log ${vnf_num_volumes}
Get VNF IP Address
[Tags] verify
Variable Should Exist ${ns_id} msg=NS is not available
${ip_addr}= Get Vnf Management Ip Address ${ns_id} ${vnf_member_index}
- log ${ip_addr}
+ Log ${ip_addr}
Set Suite Variable ${vnf_ip_addr} ${ip_addr}
Variable Should Exist ${vnf_ip_addr} msg=VNF is not available
Sleep 30 seconds Wait for SSH daemon to be up
${stdout}= Execute Remote Command Check Rc Return Output ${vnf_ip_addr} ${username} ${password} ${privatekey} sudo lsblk -l
- log ${stdout}
+ Log ${stdout}
${lines}= Get Lines Containing String ${stdout} disk
${num_lines}= Get Line Count ${lines}
Run Keyword If ${num_lines} < ${vnf_num_volumes} Fail msg=Number of disks (${num_lines}) is less than specified in VDU (${vnf_num_volumes})
# [Tags] cleanup
# Variable Should Exist ${volume_id} msg=Volume is not available
# ${exists}= Check If Volume Exists ${volume_id}
-# log ${exists}
+# Log ${exists}
# IF ${exists}==0
# Fail msg=Persistent volume was deleted
# Set Suite Variable ${volume_id} ${EMPTY}}
# ELSE
-# log Persistent volume still exists, deleting...
+# Log Persistent volume still exists, deleting...
# Delete Volume ${volume_id}
# Set Suite Variable ${volume_id} ${EMPTY}}
# END