mirror of https://github.com/ceph/ceph-ansible.git
ceph-handler: restart existed rgw daemons
This is needed for new instances are the restart might trigger before the deployment Signed-off-by: Seena Fallah <seenafallah@gmail.com>pull/7481/head
parent
29b64ec974
commit
7cbe837cb4
|
@ -74,7 +74,16 @@ check_rest() {
|
|||
|
||||
for ((i=0; i<${RGW_NUMS}; i++)); do
|
||||
# First, restart the daemon
|
||||
systemctl restart ceph-radosgw@rgw.${HOST_NAME}.${INSTANCES_NAME[i]}
|
||||
|
||||
# Check if systemd unit exists
|
||||
# This is needed for new instances are the restart might trigger before the deployment
|
||||
if systemctl list-units --full --all | grep -q "ceph-radosgw@rgw.${HOST_NAME}.${INSTANCES_NAME[i]}"; then
|
||||
systemctl restart ceph-radosgw@rgw.${HOST_NAME}.${INSTANCES_NAME[i]}
|
||||
else
|
||||
echo "Systemd unit ceph-radosgw@rgw.${HOST_NAME}.${INSTANCES_NAME[i]} does not exist."
|
||||
continue
|
||||
fi
|
||||
|
||||
# Check socket files
|
||||
check_socket ${i}
|
||||
# Check rest
|
||||
|
|
Loading…
Reference in New Issue