no nrpe check when members are out of sync

Bug #1892122 reported by Joe Guo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MongoDB Charm
Fix Released
Wishlist
David O Neill

Bug Description

In one of our clouds, a mongodb member was out of sync since April 2019.
We need a nrpe check to detect this.

myset:RECOVERING> rs.status()
{
    "set" : "myset",
    "date" : ISODate("2020-08-18T05:05:33Z"),
    "myState" : 3,
    "members" : [
        {
            "_id" : 0,
            "name" : "10.101.52.8:27017",
            "health" : 1,
            "state" : 1,
            "stateStr" : "PRIMARY",
            "uptime" : 15071152,
            "optime" : Timestamp(1597727090, 2169),
            "optimeDate" : ISODate("2020-08-18T05:04:50Z"),
            "lastHeartbeat" : ISODate("2020-08-18T05:05:31Z"),
            "lastHeartbeatRecv" : ISODate("2020-08-18T05:05:33Z"),
            "pingMs" : 0,
            "syncingTo" : "10.101.52.22:27017"
        },
        {
            "_id" : 1,
            "name" : "10.101.52.32:27017",
            "health" : 1,
            "state" : 3,
            "stateStr" : "RECOVERING",
            "uptime" : 17838930,
            "optime" : Timestamp(1556398523, 1),
            "optimeDate" : ISODate("2019-04-27T20:55:23Z"),
            "errmsg" : "still syncing, not yet to minValid optime 5f2dbb39:ed",
            "self" : true
        },
        {
            "_id" : 2,
            "name" : "10.101.52.22:27017",
            "health" : 1,
            "state" : 2,
            "stateStr" : "SECONDARY",
            "uptime" : 15070966,
            "optime" : Timestamp(1597727090, 2169),
            "optimeDate" : ISODate("2020-08-18T05:04:50Z"),
            "lastHeartbeat" : ISODate("2020-08-18T05:05:31Z"),
            "lastHeartbeatRecv" : ISODate("2020-08-18T05:05:33Z"),
            "pingMs" : 0,
            "syncingTo" : "10.101.52.8:27017"
        }
    ],
    "ok" : 1
}

Related branches

Changed in charm-mongodb:
status: New → Confirmed
assignee: nobody → David O Neill (dmzoneill)
importance: Undecided → Wishlist
Changed in charm-mongodb:
status: Confirmed → Fix Committed
Alvaro Uria (aluria)
Changed in charm-mongodb:
status: Fix Committed → In Progress
Celia Wang (ziyiwang)
Changed in charm-mongodb:
status: In Progress → Fix Released
milestone: none → 21.01
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.