]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
make all monitor roles wait until they join quorum before succeeding
authorGreg Farnum <greg@inktank.com>
Mon, 27 Aug 2012 18:36:08 +0000 (11:36 -0700)
committerGreg Farnum <greg@inktank.com>
Mon, 27 Aug 2012 18:36:08 +0000 (11:36 -0700)
recipes/mon.rb

index c9e4d190598fac52ebb6f2845d8e5afaf1d0d56a..5f262a6321fafac93a1fd76e6f7aca7b38bde643 100644 (file)
@@ -52,6 +52,15 @@ ruby_block "tell ceph-mon about its peers" do
   end
 end
 
+ruby_block "wait until quorum is formed" do
+  block do
+    if not have_quorum? then
+      #sleep
+      sleep(1)
+    end
+  end
+end
+
 ruby_block "create client.admin keyring" do
   block do
     if not ::File.exists?('/etc/ceph/ceph.client.admin.keyring') then