Skip to content

Commit

Permalink
OCTOPUS-434: Audit timing of the automation
Browse files Browse the repository at this point in the history
Signed-off-by: Chandan.Abhyankar <[email protected]>
  • Loading branch information
Chandan-Abhyankar authored and prb112 committed Aug 28, 2023
1 parent 4c40b5c commit 403ce7b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions modules/4_pvs_support/pvs_support.tf
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,18 @@ oc get network cluster -o yaml | grep -i mtu
oc get mcp
echo 'verifying worker mc'
while ! oc get mc 00-worker -o yaml | grep MTU=9000
start_counter=0
timeout_counter=10
mtu_output=`oc get mc 00-worker -o yaml | grep MTU=9000`
# While loop waits for MTU=9000 till timeout has not reached
while [[ ( $mtu_output == "" ) && ( $start_counter -lt $timeout_counter ) ]];
do
echo "waiting on worker"
sleep 60
sleep 30
mtu_output=`oc get mc 00-worker -o yaml | grep MTU=9000`
start_counter=`expr $start_counter + 1`
done
oc wait mcp/worker --for condition=updated --timeout=5m || true
#oc wait mcp/worker --for condition=updated --timeout=5m || true
echo '-checking mtu-'
[[ "$( oc get network cluster -o yaml | grep clusterNetworkMTU | awk '{print $NF}')" == "9000" ]] || false
Expand Down Expand Up @@ -321,4 +327,4 @@ ANSIBLE_LOG_PATH=/root/.openshift/ocp4-upi-compute-powervs-support.log ansible-p
EOF
]
}
}
}

0 comments on commit 403ce7b

Please sign in to comment.