Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Workarround for VOL-339 issue
  • Loading branch information
iovacatalin committed May 22, 2020
1 parent 1f536fe commit d63aeda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions seba-in-a-box/Makefile
Expand Up @@ -221,6 +221,12 @@ $(M)/etcd-operator-ready: | $(WORKSPACE)/cord/helm-charts $(M)/helm-init
$(M)/voltha-running: | $(M)/voltha
timeout 450s bash -c "until kubectl get pod|grep etcd-cluster|grep 1/1|wc -l|grep 3; do echo 'Waiting for etcd-cluster to be ready'; sleep 10; done"
$(WORKSPACE)/cord/helm-charts/scripts/wait_for_pods.sh voltha
timeout 2m bash -c "until http GET http://127.0.0.1:30125/health|jq '.state'|grep -q HEALTHY; do echo 'Waiting for VOLTHA to be HEALTHY'; sleep 10; done" || true
if ! (http GET http://127.0.0.1:30125/health|jq '.state'|grep -q HEALTHY); \
then \
echo "Voltha core not healthy or unresponsive. Resetting pod vcore-0."; \
kubectl -n voltha delete pod vcore-0; \
fi
touch $@

$(M)/ponnet: | $(M)/voltha
Expand Down

0 comments on commit d63aeda

Please sign in to comment.