mirror of https://github.com/ceph/ceph-ansible.git
handler: remove some leftover in restart_*_daemon.sh.j2
Remove some legacy in those restart script. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/3238/head
parent
fc6f1ae099
commit
b953965399
|
@ -14,7 +14,6 @@ $DOCKER_EXEC test -S /var/run/ceph/{{ cluster }}-mds.{{ ansible_hostname }}.asok
|
||||||
# First, restart the daemon
|
# First, restart the daemon
|
||||||
systemctl restart ceph-mds@${MDS_NAME}
|
systemctl restart ceph-mds@${MDS_NAME}
|
||||||
|
|
||||||
COUNT=10
|
|
||||||
# Wait and ensure the socket exists after restarting the daemds
|
# Wait and ensure the socket exists after restarting the daemds
|
||||||
while [ $RETRIES -ne 0 ]; do
|
while [ $RETRIES -ne 0 ]; do
|
||||||
$DOCKER_EXEC test -S $SOCKET && exit 0
|
$DOCKER_EXEC test -S $SOCKET && exit 0
|
||||||
|
|
|
@ -15,7 +15,6 @@ systemctl reset-failed ceph-mgr@${MGR_NAME}
|
||||||
# First, restart the daemon
|
# First, restart the daemon
|
||||||
systemctl restart ceph-mgr@${MGR_NAME}
|
systemctl restart ceph-mgr@${MGR_NAME}
|
||||||
|
|
||||||
COUNT=10
|
|
||||||
# Wait and ensure the socket exists after restarting the daemds
|
# Wait and ensure the socket exists after restarting the daemds
|
||||||
while [ $RETRIES -ne 0 ]; do
|
while [ $RETRIES -ne 0 ]; do
|
||||||
$DOCKER_EXEC test -S $SOCKET && exit 0
|
$DOCKER_EXEC test -S $SOCKET && exit 0
|
||||||
|
|
|
@ -11,7 +11,6 @@ DOCKER_EXEC="docker exec ceph-nfs-{{ ansible_hostname }}"
|
||||||
# First, restart the daemon
|
# First, restart the daemon
|
||||||
{% if containerized_deployment -%}
|
{% if containerized_deployment -%}
|
||||||
systemctl restart $NFS_NAME
|
systemctl restart $NFS_NAME
|
||||||
COUNT=10
|
|
||||||
# Wait and ensure the pid exists after restarting the daemon
|
# Wait and ensure the pid exists after restarting the daemon
|
||||||
while [ $RETRIES -ne 0 ]; do
|
while [ $RETRIES -ne 0 ]; do
|
||||||
$DOCKER_EXEC test -f $PID && exit 0
|
$DOCKER_EXEC test -f $PID && exit 0
|
||||||
|
|
|
@ -14,7 +14,6 @@ $DOCKER_EXEC test -S /var/run/ceph/{{ cluster }}-client.rbd-mirror.{{ ansible_ho
|
||||||
# First, restart the daemon
|
# First, restart the daemon
|
||||||
systemctl restart ceph-rbd-mirror@rbd-mirror.${RBD_MIRROR_NAME}
|
systemctl restart ceph-rbd-mirror@rbd-mirror.${RBD_MIRROR_NAME}
|
||||||
|
|
||||||
COUNT=10
|
|
||||||
# Wait and ensure the socket exists after restarting the daemon
|
# Wait and ensure the socket exists after restarting the daemon
|
||||||
while [ $RETRIES -ne 0 ]; do
|
while [ $RETRIES -ne 0 ]; do
|
||||||
$DOCKER_EXEC test -S $SOCKET && exit 0
|
$DOCKER_EXEC test -S $SOCKET && exit 0
|
||||||
|
|
Loading…
Reference in New Issue