Merge "[ceph-osd] wait for only osd pods from post apply job"
This commit is contained in:
commit
aa26614df4
@ -15,6 +15,6 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Ceph OSD
|
||||
name: ceph-osd
|
||||
version: 0.1.1
|
||||
version: 0.1.2
|
||||
home: https://github.com/ceph/ceph
|
||||
...
|
||||
|
@ -48,7 +48,7 @@ function wait_for_pods() {
|
||||
min_osds="add | if .true >= (.false + .true)*${REQUIRED_PERCENT_OF_OSDS}/100 \
|
||||
then \"pass\" else \"fail\" end"
|
||||
while true; do
|
||||
unhealthy_pods=$(kubectl get pods --namespace="${1}" -o json | jq -c "${query}")
|
||||
unhealthy_pods=$(kubectl get pods --namespace="${1}" -o json -l component=osd| jq -c "${query}")
|
||||
if [[ -z "${unhealthy_pods}" ]]; then
|
||||
break
|
||||
fi
|
||||
@ -56,7 +56,7 @@ function wait_for_pods() {
|
||||
|
||||
if [ $(date -u +%s) -gt $end ] ; then
|
||||
echo -e "Containers failed to start after $timeout seconds\n"
|
||||
kubectl get pods --namespace "${1}" -o wide
|
||||
kubectl get pods --namespace "${1}" -o wide -l component=osd
|
||||
# Leaving while loop if minimum amount of OSDs are ready.
|
||||
# It allows to proceed even if some OSDs are not ready
|
||||
# or in "CrashLoopBackOff" state
|
||||
|
Loading…
Reference in New Issue
Block a user