Server list info when waiting NS
Adds output of opentstack server list to the check for ns instance
so that way we can see if there is any mismatch between the state
of Openstack and the LCM.
Change-Id: I3c7a47b254c9ded037a8bbcc44d7b0f8e8e6d92a
Signed-off-by: beierlm <mark.beierl@canonical.com>
diff --git a/robot-systest/lib/ns_lib.robot b/robot-systest/lib/ns_lib.robot
index ed6e699..0747bc1 100644
--- a/robot-systest/lib/ns_lib.robot
+++ b/robot-systest/lib/ns_lib.robot
@@ -118,6 +118,8 @@
Check For Ns Instance To Configured
[arguments] ${ns_name}
+ ${rc} ${stdout}= Run and Return RC and Output openstack server list
+ log ${stdout}
${rc} ${stdout}= run and return rc and output osm ns-list --filter name="${ns_name}"
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
@@ -126,6 +128,8 @@
Check For NS Instance For Failure
[Arguments] ${ns_name}
+ ${rc} ${stdout}= Run and Return RC and Output openstack server list
+ log ${stdout}
${rc} ${stdout}= Run and Return RC and Output osm ns-list --filter name="${ns_name}"
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
@@ -134,6 +138,8 @@
Check For NS Instance To Be Deleted
[Arguments] ${ns}
+ ${rc} ${stdout}= Run and Return RC and Output openstack server list
+ log ${stdout}
${rc} ${stdout}= Run and Return RC and Output osm ns-list | awk '{print $2}' | grep ${ns}
Should Not Be Equal As Strings ${stdout} ${ns}