Skip to content

Commit

Permalink
Avoid OSD bootstrap loop
Browse files Browse the repository at this point in the history
Every time an osd_ceph_disk container is restarted the OSD_DEVICE is
bootstrapped.
  • Loading branch information
h0tbird committed Jul 28, 2015
1 parent a057011 commit f06a653
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion daemon/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ function start_osd {
osd_directory
;;
disk)
osd_disk
if [ -n "$(find /var/lib/ceph/osd -prune -empty)" ]; then
echo "No bootstrapped OSDs found; trying ceph-disk on ${OSD_DEVICE}"
osd_disk
else
echo "Bootstrapped OSD(s) found; ${OSD_DEVICE} won't be bootstrapped this time"
osd_activate
fi
;;
activate)
osd_activate
Expand Down

0 comments on commit f06a653

Please sign in to comment.