diff --git a/roles/ceph-handler/templates/restart_osd_daemon.sh.j2 b/roles/ceph-handler/templates/restart_osd_daemon.sh.j2 index 2635f6d41..3e5b79daa 100644 --- a/roles/ceph-handler/templates/restart_osd_daemon.sh.j2 +++ b/roles/ceph-handler/templates/restart_osd_daemon.sh.j2 @@ -45,7 +45,7 @@ get_container_id_from_dev_name() { local count count=10 while [ $count -ne 0 ]; do - id=$({{ container_binary }} ps -q -f "name=${1}$") + id=$({{ container_binary }} ps | grep -E "${1}$" | cut -d' ' -f1) test "$id" != "" && break sleep $DELAY let count=count-1