You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Puppet.debug"Checking replicaset member #{host} ..."
174
172
begin
175
173
status=rs_status(host)
176
-
Puppet.debug('XXXXXXXXXXXXXX should not get here since I dont have a replicaset')
177
174
raisePuppet::Error,"Can't configure replicaset #{name}, host #{host} is not supposed to be part of a replicaset."ifstatus.key?('errmsg') && status['errmsg'] == 'not running with --replSet'
178
175
179
-
# if auth_enabled && status.key?('errmsg')
180
-
# Puppet.debug "In auth_enabled && status.key?('errmsg')"
181
-
# if status['errmsg'].include?('requires authentication') || status['errmsg'].include?('not authorized on admin') || status['errmsg'].include?('Authentication failed')
182
-
# Puppet.debug "In auth_enabled && status.key?('errmsg') need authentication"
183
-
# Puppet.warning "Host #{host} is available, but you are unauthorized because of authentication is enabled: #{auth_enabled}"
184
-
# alive.push(member)
185
-
# elsif status['errmsg'].include?('no replset config has been received')
186
-
# Puppet.debug 'Mongo rs.status() RS not initialized output'
187
-
# alive.push(member)
188
-
# end
189
-
# end
190
-
191
176
ifstatus.key?('set')
192
177
raisePuppet::Error,"Can't configure replicaset #{name}, host #{host} is already part of another replicaset."ifstatus['set'] != name
193
178
@@ -199,7 +184,6 @@ def get_hosts_status(members)
199
184
alive.push(member)
200
185
end
201
186
rescuePuppet::ExecutionFailure=>e
202
-
Puppet.debug('XXXXXXXXXXXX in rescue checking connection mebers')
0 commit comments