Running puppet with --trace --debug --verbose shows this output
2016-01-20T12:21:58.192+0000 file [] doesn't exist failed to load:' Retry: '2' Debug: Executing '/bin/mongo admin --quiet --host 192.0.2.22:27017 --eval printjson(rs.status())' Debug: Request failed: 'Execution of '/bin/mongo admin --quiet --host 192.0.2.22:27017 --eval printjson(rs.status())' returned 253: { "set" : "tripleo", "date" : ISODate("2016-01-20T12:22:01Z"), "myState" : 1, "members" : [ { "_id" : 0, "name" : "192.0.2.22:27017", "health" : 1, "state" : 1, "stateStr" : "PRIMARY", "uptime" : 70984, "optime" : Timestamp(1453292495, 60), "optimeDate" : ISODate("2016-01-20T12:21:35Z"), "electionTime" : Timestamp(1453221546, 2), "electionDate" : ISODate("2016-01-19T16:39:06Z"), "self" : true } ], "ok" : 1 } 2016-01-20T12:22:01.260+0000 file [] doesn't exist failed to load:' Retry: '3' Debug: Got an exception: Could not evalute MongoDB shell command: printjson(rs.status()) Warning: Can't connect to replicaset member 192.0.2.22:27017. Debug: Alive members: [] Debug: Dead members: ["192.0.2.22:27017"] Error: /Stage[main]/Main/Mongodb_replset[tripleo]: Could not evaluate: Can't connect to any member of replicaset tripleo.
It appears that the josn being output can't be parsed due to the ISODate and Timestamp types.
Running puppet with --trace --debug --verbose shows this output
2016-01- 20T12:21: 58.192+ 0000 file [] doesn't exist rs.status( ))' rs.status( ))' returned 253: { "2016-01- 20T12:22: 01Z"),
"_id" : 0,
"name" : "192.0.2.22:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 70984,
"optime" : Timestamp( 1453292495, 60),
"optimeDate" : ISODate( "2016-01- 20T12:21: 35Z"),
"electionTim e" : Timestamp( 1453221546, 2),
"electionDat e" : ISODate( "2016-01- 19T16:39: 06Z"),
"self" : true 20T12:22: 01.260+ 0000 file [] doesn't exist rs.status( )) 2.22:27017" ] main]/Main/ Mongodb_ replset[ tripleo] : Could not evaluate: Can't connect to any member of replicaset tripleo.
failed to load:' Retry: '2'
Debug: Executing '/bin/mongo admin --quiet --host 192.0.2.22:27017 --eval printjson(
Debug: Request failed: 'Execution of '/bin/mongo admin --quiet --host 192.0.2.22:27017 --eval printjson(
"set" : "tripleo",
"date" : ISODate(
"myState" : 1,
"members" : [
{
}
],
"ok" : 1
}
2016-01-
failed to load:' Retry: '3'
Debug: Got an exception: Could not evalute MongoDB shell command: printjson(
Warning: Can't connect to replicaset member 192.0.2.22:27017.
Debug: Alive members: []
Debug: Dead members: ["192.0.
Error: /Stage[
It appears that the josn being output can't be parsed due to the ISODate and Timestamp types.