From 3f9e32e4369fc75a7500c66f374391bbd49a7423 Mon Sep 17 00:00:00 2001 From: git-harry Date: Thu, 26 Sep 2013 10:28:04 +0100 Subject: [PATCH] Change roles to role when searching for ceph-mon 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/default.rb b/libraries/default.rb index 5367744..a3bd7fc 100644 --- a/libraries/default.rb +++ b/libraries/default.rb @@ -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? -- 2.47.3