]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-handler: fix cluster name in socket path
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 3 Jul 2019 15:26:42 +0000 (11:26 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 8 Jul 2019 17:55:35 +0000 (13:55 -0400)
c90f605b5 introduces the default ceph cluster name value in the rgw
socket path for the rgw restart script. But this should use the
`cluster` variable instead.
This commit also fixes this in the osd restart script.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-handler/templates/restart_osd_daemon.sh.j2
roles/ceph-handler/templates/restart_rgw_daemon.sh.j2

index 7607f7f518ee4c93a2541b1527467b54c3987b76..2635f6d4112ac8be00a887eaa4ceb2a6f5495bfb 100644 (file)
@@ -29,7 +29,7 @@ check_pgs() {
 wait_for_socket_in_container() {
   osd_mount_point=$({{ container_binary }} exec "$1" df --output=target | grep '/var/lib/ceph/osd/')
   whoami=$({{ container_binary }} exec "$1" cat $osd_mount_point/whoami)
-  if ! {{ container_binary }} exec "$1" timeout 10 bash -c "while [ ! -e /var/run/ceph/ceph-osd.${whoami}.asok ]; do sleep 1 ; done"; then
+  if ! {{ container_binary }} exec "$1" timeout 10 bash -c "while [ ! -e /var/run/ceph/{{ cluster }}-osd.${whoami}.asok ]; do sleep 1 ; done"; then
     echo "Timed out while trying to look for a Ceph OSD socket."
     echo "Abort mission!"
     exit 1
index 4f27de050be9b0f846cb6e2679abaaec16deec04..65f0e315f77fc654e8fa619eaedfddaf4e20f938 100644 (file)
@@ -21,7 +21,7 @@ for ((i=0; i<${RGW_NUMS}; i++)); do
 done
 declare -a SOCKETS
 RGW_IP={{ hostvars[inventory_hostname]['_radosgw_address'] }}
-SOCKET_PREFIX="/var/run/ceph/ceph-client.rgw.${HOST_NAME}.rgw"
+SOCKET_PREFIX="/var/run/ceph/{{ cluster }}-client.rgw.${HOST_NAME}.rgw"
 
 check_socket() {
   local i=$1