aboutsummaryrefslogtreecommitdiffstats
path: root/kud
diff options
context:
space:
mode:
Diffstat (limited to 'kud')
-rwxr-xr-xkud/tests/kubevirt.sh2
-rwxr-xr-xkud/tests/multus.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/kud/tests/kubevirt.sh b/kud/tests/kubevirt.sh
index 529a67a7..bebc8ce0 100755
--- a/kud/tests/kubevirt.sh
+++ b/kud/tests/kubevirt.sh
@@ -49,7 +49,7 @@ interval=60
for ((try=1;try<=$tries;try++)); do
echo "try $try/$tries: Wait for $interval seconds to check for ssh access"
sleep $interval
- if sshpass -p testuser ssh -o ProxyCommand="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -W %h:%p $(control_plane_ip)" -o StrictHostKeyChecking=no testuser@$(kubectl get pods $deployment_pod -o jsonpath="{.status.podIP}") -- uptime; then
+ if sshpass -p testuser ssh -o ProxyCommand="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -W %h:%p $(control_plane_ip)" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null testuser@$(kubectl get pods $deployment_pod -o jsonpath="{.status.podIP}") -- uptime; then
echo "ssh access check is success"
break
fi
diff --git a/kud/tests/multus.sh b/kud/tests/multus.sh
index 4f94791f..24c5314f 100755
--- a/kud/tests/multus.sh
+++ b/kud/tests/multus.sh
@@ -41,7 +41,7 @@ NET
function generate_CRD_for_macvlan_cni {
local csar_id=$1
- local master_name=$(ssh_cluster route | grep 'default' | awk '{print $8}' |head -n 1)
+ local master_name=$(ssh_cluster ip route | grep 'default' | awk '{print $5}' |head -n 1)
_checks_args $csar_id
pushd ${CSAR_DIR}/${csar_id}
@@ -67,7 +67,7 @@ NET
function generate_CRD_for_ipvlan_cni {
local csar_id=$1
- local master_name=$(ssh_cluster route | grep 'default' | awk '{print $8}' |head -n 1)
+ local master_name=$(ssh_cluster ip route | grep 'default' | awk '{print $5}' |head -n 1)
_checks_args $csar_id
pushd ${CSAR_DIR}/${csar_id}