Hi,
We are trying to setup the replication using this module but getting following error :
Notice: /Stage[main]/Mongodb::Replset/Mongodb_replset[rsmain]/ensure: created Warning: Can't connect to replicaset member 192.168.33.5:8080. Warning: Can't connect to replicaset member 192.168.33.6:8080. Warning: Can't connect to replicaset member 192.168.33.7:8080. Error: /Stage[main]/Mongodb::Replset/Mongodb_replset[rsmain]: Could not evaluate: Can't connect to any member of replicaset rsmain.
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 5.3.2
- Ruby: 2..0.0
- Distribution: Centos 7.4.1708 (Core)
- Module version: 2.1.2
How to reproduce (e.g Puppet code you use)
- Create three AWS EC2 instances with port 8080 open
- Set the replication configuration :
class { 'mongodb::server': auth => false, verbose => true, port => $port, dbpath => $dbpath, logpath => $logpath, service_ensure => stopped, replset => 'rsmain', replset_config => { 'rsmain' => { ensure => present, members => ['192.168.33.5:8080', '192.168.33.6:8080', '192.168.33.7:8080'] } } }
- Execute Puppet Apply
What are you seeing
Error: /Stage[main]/Mongodb::Replset/Mongodb_replset[rsmain]: Could not evaluate: Can't connect to any member of replicaset rsmain.
What behaviour did you expect instead
Replication should work
Output log
Please refer to the attached file for debug log
Error_Log.txt
Any additional information you'd like to impart
Hi,
We are trying to setup the replication using this module but getting following error :
Notice: /Stage[main]/Mongodb::Replset/Mongodb_replset[rsmain]/ensure: created Warning: Can't connect to replicaset member 192.168.33.5:8080. Warning: Can't connect to replicaset member 192.168.33.6:8080. Warning: Can't connect to replicaset member 192.168.33.7:8080. Error: /Stage[main]/Mongodb::Replset/Mongodb_replset[rsmain]: Could not evaluate: Can't connect to any member of replicaset rsmain.Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
class { 'mongodb::server': auth => false, verbose => true, port => $port, dbpath => $dbpath, logpath => $logpath, service_ensure => stopped, replset => 'rsmain', replset_config => { 'rsmain' => { ensure => present, members => ['192.168.33.5:8080', '192.168.33.6:8080', '192.168.33.7:8080'] } } }What are you seeing
Error: /Stage[main]/Mongodb::Replset/Mongodb_replset[rsmain]: Could not evaluate: Can't connect to any member of replicaset rsmain.
What behaviour did you expect instead
Replication should work
Output log
Please refer to the attached file for debug log
Error_Log.txt
Any additional information you'd like to impart