Code Review
/
it
/
dep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
36491a7
)
Merge "Handled the delay in chartmuseum server initialization"
author
Zhe Huang
<zhehuang@research.att.com>
Fri, 2 Apr 2021 15:42:55 +0000
(15:42 +0000)
committer
Gerrit Code Review
<gerrit@o-ran-sc.org>
Fri, 2 Apr 2021 15:42:55 +0000
(15:42 +0000)
bin/prepare-common-templates
patch
|
blob
|
history
diff --git
a/bin/prepare-common-templates
b/bin/prepare-common-templates
index
bfdd3d2
..
8743260
100755
(executable)
--- a/
bin/prepare-common-templates
+++ b/
bin/prepare-common-templates
@@
-35,6
+35,18
@@
then
fi
fi
+# Check if servecm plugin is ready to serve request
+command='curl --silent --output /dev/null http://127.0.0.1:8879/charts'
+for i in $(seq 1 5)
+do $command && s=0 && break || s=$? && echo "Error connecting chartmuseum server. Retrying after 5s" && sleep 5;
+done
+
+if [ $s -gt 0 ]
+then
+ echo "Cmd to test chartmuseum failed with ($s): $command"
+ exit $s
+fi
+
# Package common templates and serve it using Helm local repo
if [ $IS_HELM3 ]
then