Skip to content

Commit 955417c

Browse files
authored
NO-ISSUE: Renable xtrace for agent/06_agent_create_cluster.sh (#1771)
xtrace was inadvertently disabled in #1745 This patch moves the getRendezvousIP function out of e2e/agent-tui/utils.sh and into common.sh. e2e/agent-tui/utils.sh contains "set +x" which disables xtrace. 06_agent_create_cluster.sh no longer sources e2e/agent-tui/util.sh so that it doesn't inherit the "set +x" call.
1 parent d706859 commit 955417c

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

agent/06_agent_create_cluster.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ source $SCRIPTDIR/validation.sh
1313
source $SCRIPTDIR/release_info.sh
1414
source $SCRIPTDIR/agent/common.sh
1515
source $SCRIPTDIR/agent/iscsi_utils.sh
16-
source $SCRIPTDIR/agent/e2e/agent-tui/utils.sh
1716

1817
early_deploy_validation
1918

agent/common.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,9 @@ export AGENT_ISOLATED_NETWORK=${AGENT_ISOLATED_NETWORK:-"false"}
7979
if [ "${AGENT_E2E_TEST_BOOT_MODE}" == "ISO_NO_REGISTRY" ] ; then
8080
export AGENT_ISOLATED_NETWORK=true
8181
fi
82+
83+
function getRendezvousIP() {
84+
node_zero_mac_address=$(sudo virsh domiflist ${AGENT_RENDEZVOUS_NODE_HOSTNAME} | awk '$3 == "ostestbm" {print $5}')
85+
rendezvousIP=$(ip neigh | grep $node_zero_mac_address | awk '{print $1}')
86+
echo $rendezvousIP
87+
}

agent/e2e/agent-tui/utils.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,3 @@ function pressKeys(){
8989
_pressKey $keyCode $node
9090
done
9191
}
92-
93-
function getRendezvousIP() {
94-
node_zero_mac_address=$(sudo virsh domiflist ${AGENT_RENDEZVOUS_NODE_HOSTNAME} | awk '$3 == "ostestbm" {print $5}')
95-
rendezvousIP=$(ip neigh | grep $node_zero_mac_address | awk '{print $1}')
96-
echo $rendezvousIP
97-
}

0 commit comments

Comments
 (0)