Skip to content

Commit

Permalink
Update the 0.7.0 CAST YAMLs in the maya installer
Browse files Browse the repository at this point in the history
The default CAST YAMLs, StoragePool and StorageClasses
installed by maya-apiserver are updated with the recent
changes done to the openebs-pre-release.yaml

As part of moving from the openebs/openebs repo, the
following changes have been made:
- use the ENV to fill up some of the default values
  like namespace, service account name, image ids, etc.,
- make the content parsable for strings from go-code, by
  making changes like:
  * Replcace back-quote ` with double quotes in jsonpath
  * Escape the . and " within jsonpath
  * replace string false with none
  * quote the replica count coming from env to string
- removed the older/deprecated CAST YAMLs from install folder

Also, updated the travis ci scripts to skip installing the
pre-release.yaml. After the 0.7.0 release is done, this
file can be re-enabled back

Signed-off-by: kmova <[email protected]>

Remove the sleep after info commands

Signed-off-by: kmova <[email protected]>
  • Loading branch information
kmova committed Aug 29, 2018
1 parent 36f6b18 commit efeb2ea
Show file tree
Hide file tree
Showing 12 changed files with 787 additions and 2,161 deletions.
29 changes: 21 additions & 8 deletions ci/install_openebs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ echo "--------------------Installing openebs operator---------------------------
sleep 10
kubectl create -f https://raw.githubusercontent.com/openebs/openebs/master/k8s/openebs-operator.yaml

#cStor tests are not yet enabled on travis.
#Deleting the NDM that gets installed by default.
kubectl delete ds -n openebs node-disk-manager

for i in $(seq 1 50) ; do
replicas=$(kubectl get deployment -n openebs maya-apiserver -o json | jq ".status.readyReplicas")
if [ "$replicas" == "1" ]; then
Expand All @@ -18,12 +22,17 @@ for i in $(seq 1 50) ; do
fi
done

MAPIPOD=$(kubectl get pods -o jsonpath='{.items[?(@.spec.containers[0].name=="maya-apiserver")].metadata.name}' -n openebs)

echo "--------------- Maya apiserver initial logs -----------------------------"
MAPIPOD=$(kubectl get pods -o jsonpath='{.items[?(@.spec.containers[0].name=="maya-apiserver")].metadata.name}' -n openebs)
kubectl logs $MAPIPOD -n openebs
printf "\n\n"

#Print the default StoragePools Created
kubectl get sp

#Print the default StoragePoolClaim Created
kubectl get spc

for i in $(seq 1 50) ; do
replicas=$(kubectl get deployment -n openebs openebs-provisioner -o json | jq ".status.readyReplicas")
if [ "$replicas" == "1" ]; then
Expand All @@ -36,8 +45,8 @@ done

kubectl get pods --all-namespaces

#echo "----------Deploy CAS templates configuration for Maya-apiserver---------"
kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/master/k8s/openebs-pre-release-features.yaml
#echo "----------Deploy Pre-release features---------"
#kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/master/k8s/openebs-pre-release-features.yaml

echo "--------------- Maya apiserver later logs -----------------------------"
kubectl logs --tail=200 $MAPIPOD -n openebs
Expand All @@ -54,24 +63,28 @@ kubectl get pvc,pv
kubectl get pods --all-namespaces

JIVACTRL=$(kubectl get deploy -l openebs.io/controller=jiva-controller --no-headers | awk {'print $1'})
for i in $(seq 1 50) ; do
for i in $(seq 1 5) ; do
replicas=$(kubectl get deployment $JIVACTRL -o json | jq ".status.readyReplicas")
if [ "$replicas" == "1" ]; then
break
else
echo "Waiting for volume ctrl to be ready"
sleep 10
kubectl logs $MAPIPOD -n openebs
printf "\n\n"
sleep 60
fi
done

JIVAREP=$(kubectl get deploy -l openebs.io/replica=jiva-replica --no-headers | awk {'print $1'})
for i in $(seq 1 50) ; do
for i in $(seq 1 5) ; do
replicas=$(kubectl get deployment $JIVAREP -o json | jq ".status.readyReplicas")
if [ "$replicas" == "1" ]; then
break
else
echo "Waiting for volume replica to be ready"
sleep 10
kubectl logs $MAPIPOD -n openebs
printf "\n\n"
sleep 60
fi
done

Expand Down
Loading

0 comments on commit efeb2ea

Please sign in to comment.