Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions hadoop-ozone/dist/src/main/k8s/examples/testlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ grep_log() {

wait_for_startup(){
print_phase "Waiting until the k8s cluster is running"
retry all_pods_are_running
retry grep_log scm-0 "SCM exiting safe mode."
retry grep_log om-0 "HTTP server of ozoneManager listening"
print_phase "Cluster is up and running"
if retry all_pods_are_running \
&& retry grep_log scm-0 "SCM exiting safe mode." \
&& retry grep_log om-0 "HTTP server of ozoneManager listening"; then
print_phase "Cluster is up and running"
else
return 1
fi
}

all_pods_are_running() {
Expand Down