no nrpe check when members are out of sync
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(
"myState" : 3,
"members" : [
{
"_id" : 0,
"name" : "10.101.
"state" : 1,
},
{
"_id" : 1,
"name" : "10.101.
"state" : 3,
"self" : true
},
{
"_id" : 2,
"name" : "10.101.
"state" : 2,
}
],
"ok" : 1
}
Related branches
- Xav Paice (community): Approve
- Drew Freiberger (community): Approve
- Peter Sabaini: Pending requested
- Alvaro Uria: Pending requested
-
Diff: 499 lines (+410/-2)8 files modifiedfiles/nrpe-external-master/check_replica_sets.py (+125/-0)
hooks/hooks.py (+17/-1)
hooks/nrpe-external-master-relation-departed (+1/-0)
tests/functional/tests/bundles/focal-nrpe.yaml (+18/-0)
tests/functional/tests/tests.yaml (+1/-0)
tests/unit/requirements.txt (+1/-0)
tests/unit/test_check_replica_sets.py (+246/-0)
tox.ini (+1/-1)
- Alvaro Uria (community): Disapprove
- BootStack Reviewers: Pending requested
- David O Neill: Pending requested
-
Diff: 563 lines (+229/-121)7 files modifiedfiles/nrpe-external-master/check_replica_sets.py (+69/-41)
hooks/hooks.py (+8/-7)
tests/functional/tests/bundles/focal-nrpe.yaml (+18/-0)
tests/functional/tests/tests.yaml (+1/-0)
tests/unit/requirements.txt (+1/-1)
tests/unit/test_check_replica_sets.py (+131/-71)
tox.ini (+1/-1)
- Alvaro Uria (community): Needs Fixing
-
Diff: 356 lines (+301/-0)5 files modifiedfiles/nrpe-external-master/check_replica_sets.py (+98/-0)
hooks/hooks.py (+15/-0)
hooks/nrpe-external-master-relation-departed (+1/-0)
tests/unit/requirements.txt (+1/-0)
tests/unit/test_check_replica_sets.py (+186/-0)
Changed in charm-mongodb: | |
status: | New → Confirmed |
assignee: | nobody → David O Neill (dmzoneill) |
importance: | Undecided → Wishlist |
Changed in charm-mongodb: | |
status: | Confirmed → Fix Committed |
Changed in charm-mongodb: | |
status: | Fix Committed → In Progress |
Changed in charm-mongodb: | |
status: | In Progress → Fix Released |
milestone: | none → 21.01 |