~rgildein/charm-mongodb:stable/21.01

Last commit made on 2021-01-21
Get this branch:
git clone -b stable/21.01 https://git.launchpad.net/~rgildein/charm-mongodb
Only Robert Gildein can upload to this branch. If you are Robert Gildein please log in for upload directions.

Branch merges

Branch information

Name:
stable/21.01
Repository:
lp:~rgildein/charm-mongodb

Recent commits

c30e079... by Peter Sabaini

Add checks for replica sets

Reviewed-on: https://code.launchpad.net/~peter-sabaini/charm-mongodb/+git/charm-mongodb/+merge/396580
Reviewed-by: Xav Paice <email address hidden>
Reviewed-by: Drew Freiberger <email address hidden>

3a03dc6... by Peter Sabaini

Test fix

Fix unittests, update a reference string

Also minor style updates

731f080... by Edin S

Add unit test for checking replication set critical state

a3c41eb... by Edin S

Unit test: fix WARN string

7df1a94... by Edin S

Unit test: fix OK string

a702dea... by Edin S

Unit test: add tab to mongodb.conf ini file to force failure of YAML parsing

9d015fe... by Edin S

Unit tests: provide more descriptive test names and docstrings

5405fc4... by Edin S

Rewrite check code to be more robust

1. Previously the code counted members in the "RECOVERING" state, and
exit as okay otherwise. There are now a set of OK/CRIT states, and all
other unknown states raise a WARN instead.
2. The code now provides slightly more useful information
about which which members are in errored states, and their specific
state.

53b56c4... by Edin S

Handle exception where MongoDB conf is ini, and cannot be parsed as YAML

7f7d64d... by Edin S

Refactor Nagios exit codes as constants/vars

Note: the removed comment explaining the various exit codes was
incorrect.