From 6161209993d3f12b70432013ff69f7ce1eda78b5 Mon Sep 17 00:00:00 2001 From: Jamo Luhrsen Date: Thu, 15 Nov 2018 22:10:41 -0800 Subject: [PATCH] Make ${OS_NODE_CNT} a suite variable Without making it a suite variable, it seems the changed value is only local to that keyword, and outside of that keyword it will remain the value as assigned in the above *** Variables *** section, which is ${1} example of the value getting changed to 3: https://logs.opendaylight.org/sandbox/vex-yul-odl-jenkins-2/jamo-netvirt-csit-1node-0cmb-1ctl-2cmp-apex-queens-gate-snat-conntrack-oxygen/42/robot-plugin/log_full.html.gz#s1-k1-k1-k4-k2-k4 two keywords later in that same job, you can see it's incorrectly back to 1: https://logs.opendaylight.org/sandbox/vex-yul-odl-jenkins-2/jamo-netvirt-csit-1node-0cmb-1ctl-2cmp-apex-queens-gate-snat-conntrack-oxygen/42/robot-plugin/log_full.html.gz#s1-k1-k1-k4-k2-k6-k2 Change-Id: I6e8cc9eb73acc8efef8a61342546d2de1205e4bb Signed-off-by: Jamo Luhrsen --- csit/libraries/DevstackUtils.robot | 1 + 1 file changed, 1 insertion(+) diff --git a/csit/libraries/DevstackUtils.robot b/csit/libraries/DevstackUtils.robot index 044050dd50..3f5ef5debb 100644 --- a/csit/libraries/DevstackUtils.robot +++ b/csit/libraries/DevstackUtils.robot @@ -104,5 +104,6 @@ Get DevStack Nodes Data ... ELSE IF "${OPENSTACK_TOPO}" == "1cmb-0ctl-1cmp" DevstackUtils.Set Node Data For Control And Compute Node Setup ... ELSE IF "${OPENSTACK_TOPO}" == "0cmb-1ctl-2cmp" DevstackUtils.Set Node Data For Control And Two Compute Node Setup ${OS_NODE_CNT} = BuiltIn.Get Length ${OS_ALL_IPS} + BuiltIn.Set Suite Variable ${OS_NODE_CNT} DevstackUtils.Get DevStack Hostnames DevstackUtils.Log Devstack Nodes Data -- 2.36.6