Merge ~freyes/charm-mongodb:status-fix into ~mongodb-charmers/charm-mongodb:master
Status: | Merged |
---|---|
Merged at revision: | 8faa36725b36c34ca625ea88391420083b3a2934 |
Proposed branch: | ~freyes/charm-mongodb:status-fix |
Merge into: | ~mongodb-charmers/charm-mongodb:master |
Diff against target: |
494 lines (+175/-36) 5 files modified
hooks/hooks.py (+121/-25) hooks/update-status (+1/-0) tests/base_deploy.py (+0/-2) tests/deploy_replicaset.py (+32/-0) unit_tests/test_hooks.py (+21/-9) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
MongoDB Charm Maintainers | Pending | ||
Review via email: mp+345962@code.staging.launchpad.net |
Description of the change
Hello,
I'm adding the missing pieces on top of Mario's branch[0] as he delegated on me this functionality, because he's not able to keep working on it.
The most relevant changes I made are:
f52c8db Add functional test to check workload status
2ef8834 Log replSetGetStatus only when status not found for self
eca7ebd update-status: check replica set status when relation is made
669bf19 Set workload status before returning in update_status()
Thanks,
[0] https:/
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
This looks good. Some comments inline, mostly trivial things to fix before landing. Adding a timeout when adding a secondary probably requires more thought, and likely best deferred until later.
Pre-approved from me, or I can rereview if you feel it is necessary.