]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
Change roles to role when searching for ceph-mon 67/head
authorgit-harry <git-harry@live.co.uk>
Thu, 26 Sep 2013 09:28:04 +0000 (10:28 +0100)
committergit-harry <git-harry@live.co.uk>
Thu, 26 Sep 2013 09:28:04 +0000 (10:28 +0100)
roles searches the expanded run list. This isn't
available for other nodes to search until the
run completes. This means you must run chef on
one mon at a time and your initial mons can only
be one mon. If more than one mon is used the
chef run get stuck trying to get the bootstrap
osd keyring.

libraries/default.rb

index 5367744b9afea6d4f1be5ad58c79485252d09eef..a3bd7fc78cc72676932d89953901a932179d29f3 100644 (file)
@@ -13,7 +13,7 @@ def get_mon_nodes(extra_search=nil)
       search_string = "(#{search_string}) AND ceph_config_environment:#{node['ceph']['config']['environment']}"
     end
   else
-    search_string = "roles:ceph-mon AND chef_environment:#{node.chef_environment}"
+    search_string = "role:ceph-mon AND chef_environment:#{node.chef_environment}"
   end
 
   if not extra_search.nil?