{"action":"created","issue":{"url":"https://api.github.com/repos/edelight/chef-mongodb/issues/353","labels_url":"https://api.github.com/repos/edelight/chef-mongodb/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/edelight/chef-mongodb/issues/353/comments","events_url":"https://api.github.com/repos/edelight/chef-mongodb/issues/353/events","html_url":"https://github.com/edelight/chef-mongodb/issues/353","id":47982006,"number":353,"title":"issues with replicaset configuration","user":{"login":"svanzee4cb","id":6170662,"avatar_url":"https://avatars.githubusercontent.com/u/6170662?v=3","gravatar_id":"","url":"https://api.github.com/users/svanzee4cb","html_url":"https://github.com/svanzee4cb","followers_url":"https://api.github.com/users/svanzee4cb/followers","following_url":"https://api.github.com/users/svanzee4cb/following{/other_user}","gists_url":"https://api.github.com/users/svanzee4cb/gists{/gist_id}","starred_url":"https://api.github.com/users/svanzee4cb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svanzee4cb/subscriptions","organizations_url":"https://api.github.com/users/svanzee4cb/orgs","repos_url":"https://api.github.com/users/svanzee4cb/repos","events_url":"https://api.github.com/users/svanzee4cb/events{/privacy}","received_events_url":"https://api.github.com/users/svanzee4cb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-06T16:29:35Z","updated_at":"2015-03-09T10:51:07Z","closed_at":null,"body":"I'm guessing I am missing something obvious since if this didn't work I would expect more issues about this.  I am trying to setup a cluster with replica set rs1 which consists of shard1 (shard name) and replica set rs2 which consists of shard2 (shard name).  Everything seems to work ok but I get the following error from Shard1:\r\n\r\nERROR: configuring replicaset returned: {\"errmsg\"=>\"exception: need most members up to reconfigure, not ok : shard2:27017\", \"code\"=>13144, \"ok\"=>0.0}\r\n\r\nShard2 is running and I can manually run the rs.initiate() on both systems and they work find.  It seems to me the issue is that the search for rs_nodes will return all systems that belong to a cluster regardless of what replicaset they belong to.  Am I wrong?  Am I missing something?  If so, this seems wrong or am I wrong?\r\n\r\nrs_nodes = search(\r\n      :node,\r\n      \"mongodb_cluster_name:#{new_resource.replicaset['mongodb']['cluster_name']} AND \\\r\n       mongodb_is_replicaset:true AND \\\r\n       mongodb_shard_name:#{new_resource.replicaset['mongodb']['shard_name']} AND \\\r\n       chef_environment:#{new_resource.replicaset.chef_environment}\"\r\n    )\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/edelight/chef-mongodb/issues/comments/77832867","html_url":"https://github.com/edelight/chef-mongodb/issues/353#issuecomment-77832867","issue_url":"https://api.github.com/repos/edelight/chef-mongodb/issues/353","id":77832867,"user":{"login":"triccardi-systran","id":1730297,"avatar_url":"https://avatars.githubusercontent.com/u/1730297?v=3","gravatar_id":"","url":"https://api.github.com/users/triccardi-systran","html_url":"https://github.com/triccardi-systran","followers_url":"https://api.github.com/users/triccardi-systran/followers","following_url":"https://api.github.com/users/triccardi-systran/following{/other_user}","gists_url":"https://api.github.com/users/triccardi-systran/gists{/gist_id}","starred_url":"https://api.github.com/users/triccardi-systran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triccardi-systran/subscriptions","organizations_url":"https://api.github.com/users/triccardi-systran/orgs","repos_url":"https://api.github.com/users/triccardi-systran/repos","events_url":"https://api.github.com/users/triccardi-systran/events{/privacy}","received_events_url":"https://api.github.com/users/triccardi-systran/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T10:51:07Z","updated_at":"2015-03-09T10:51:07Z","body":"@jonaldomo your issue is probably the same as #376: the server is not ready yet to accept replicaset configuration as it is not fully started yet."}}