Comment 1 for bug 1536083

Revision history for this message
Derek Higgins (derekh) wrote :

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.