Update ceph-rook.sh script
While we are waiting for Ceph cluster to be ready we check Ceph status in a loop using tools pod provided by Rook. We have to get this tools pod name every iteration within the loop because K8s can terminate the pod for some reason and this is expected behavior. Change-Id: Iabb98e94d7470fe996091bf77787637f3e8f4798
This commit is contained in:
parent
baed887c72
commit
d2a98c293d
@ -364,11 +364,6 @@ EOF
|
||||
|
||||
helm upgrade --install --create-namespace --namespace ceph rook-ceph-cluster --set operatorNamespace=rook-ceph rook-release/rook-ceph-cluster --version ${ROOK_RELEASE} -f /tmp/ceph.yaml
|
||||
|
||||
TOOLS_POD=$(kubectl get pods \
|
||||
--namespace=ceph \
|
||||
--selector="app=rook-ceph-tools" \
|
||||
--no-headers | awk '{ print $1; exit }')
|
||||
|
||||
helm osh wait-for-pods rook-ceph
|
||||
|
||||
kubectl wait --namespace=ceph --for=condition=ready pod --selector=app=rook-ceph-tools --timeout=600s
|
||||
@ -393,7 +388,11 @@ RGW_POD=$(kubectl get pods \
|
||||
--no-headers | awk '{print $1; exit}')
|
||||
while [[ -z "${RGW_POD}" ]]
|
||||
do
|
||||
sleep 5
|
||||
sleep 10
|
||||
TOOLS_POD=$(kubectl get pods \
|
||||
--namespace=ceph \
|
||||
--selector="app=rook-ceph-tools" \
|
||||
--no-headers | grep Running | awk '{ print $1; exit }')
|
||||
echo "=========== CEPH STATUS ============"
|
||||
kubectl exec -n ceph ${TOOLS_POD} -- ceph -s
|
||||
echo "=========== CEPH OSD POOL LIST ============"
|
||||
|
Loading…
x
Reference in New Issue
Block a user