Skip to content

Commit 26b3a2f

Browse files
authored
Merge pull request #238 from rayashworth/update-node-check
changing node check and reduce timeout
2 parents cc22462 + da4fab7 commit 26b3a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ansible/roles/csi_cephfs_fyre/files/csi-ceph.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ echo "Exit from cluster.yaml $?"
8383

8484
num_worker_nodes=$(oc get no | tr -s ' ' | cut -f3 -d' ' | grep worker | wc -l)
8585
echo "Check for the number of ceph nodes running is equal to numbers of worker nodes - wait up to 2 hour"
86-
ceph_sleep_count=120
86+
ceph_sleep_count=60
8787
while [[ $ceph_sleep_count -ne 0 ]]; do
8888
num_ceph_nodes=$(oc get po -n rook-ceph | grep rook-ceph-osd | grep -v prepare | grep -e Running | wc -l)
89-
if [[ $num_worker_nodes -ne $num_ceph_nodes ]] ; then
89+
if [[ $num_ceph_nodes -ge $num_worker_nodes ]] ; then
9090
echo "Waiting for ceph nodes to come active"
9191
sleep 1m
9292
((ceph_sleep_count--))

0 commit comments

Comments
 (0)