summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-31Extra Linting completed for 20.08 charm releaselint-20.08Drew Freiberger
TODO: docstrings for D101, D102, and D103
2020-07-31Blackened repository to 88 linesblacken-20.08Drew Freiberger
2020-07-31Imported standard Makefile and tox.ini and fixed up testsmakefile-20.08Drew Freiberger
2020-07-24Add python3-pip to install hook to support trusty fresh installs.Drew Freiberger
Reviewed-on: https://code.launchpad.net/~afreiberger/charm-mongodb/+git/mongodb-charm/+merge/387959 Reviewed-by: Xav Paice <xav.paice@canonical.com> Reviewed-by: Giuseppe Petralia <giuseppe.petralia@canonical.com>
2020-07-23Add python3-pip to list of installed packagesadd-py3pip-to-install-hookDrew Freiberger
2020-07-23Add try/except around pip import and reorder distro import.Zachary Zehring
This ensures python3-pip is installed as this package is missing from trusty series, which will break upgrades from older charm revisions.
2020-07-20Remove Trusty support, remove perfXav Paice
Reviewed-on: https://code.launchpad.net/~xavpaice/charm-mongodb/+git/charm-mongodb/+merge/387639 Reviewed-by: Paul Goins <paul.goins@canonical.com> Reviewed-by: Joe Guo <joe.guo@canonical.com>
2020-07-20Remove Trusty support, remove perfXav Paice
The charms.benchmark support and charm has been dead since Trusty, therefore the action for this should be removed entirely along with Trusty support in the charm Fixes-bug: LP:#1526990
2020-06-26Make quotaFiles configurableAndrea Ieri
Reviewed-on: https://code.launchpad.net/~aieri/charm-mongodb/+git/charm-mongodb/+merge/386345 Reviewed-by: Alvaro Uria <alvaro.uria@canonical.com> Reviewed-by: Zachary Zehring <zachary.zehring@canonical.com>
2020-06-26Remove obsolete optionsAndrea Ieri
Reviewed-on: https://code.launchpad.net/~aieri/charm-mongodb/+git/charm-mongodb/+merge/386220 Reviewed-by: Alvaro Uria <alvaro.uria@canonical.com> Reviewed-by: Zachary Zehring <zachary.zehring@canonical.com>
2020-06-24Make quotaFiles configurableAndrea Ieri
Closes-Bug: 1581023
2020-06-22Remove obsolete optionsAndrea Ieri
Note: turning on these options prevents mongo from starting, even in Trusty; there is therefore no reason to deprecate them first since noone could possibly be using them. Closes-Bug: 1580962
2020-05-22Merge branch 'review/ziyiwang/review/aluria/348391'Alvaro Uria
This branch contains two subbranches: * ziyiwang/bug/1879803 * ziyiwang/bug/1879842 Reviewed-on: https://code.launchpad.net/~ziyiwang/charm-mongodb/+git/charm-mongodb/+merge/384400 Reviewed-by: Alvaro Uria <alvaro.uria@canonical.com> Signed-off-by: Alvaro Uria <alvaro.uria@canonical.com>
2020-05-22FIXME: Comment out shard func testAlvaro Uria
* configsvr, mongos and shard1/2/3 to scale out mongo deployments does not work at this point. * related func test has been disabled
2020-05-22Fix unit test and add focal functional testCelia Wang
2020-05-21Sync charmhelpers for release 20.05Xiyue Wang
Reviewed-on: https://code.launchpad.net/~ziyiwang/charm-mongodb/+git/charm-mongodb/+merge/384328 Reviewed-by: Paul Goins <paul.goins@canonical.com>
2020-05-21Fix func tests (except bionic-shard)Alvaro Uria
2020-05-21Fix unit testsAlvaro Uria
2020-05-21Fix lint testsAlvaro Uria
2020-05-21Add focal supportCelia Wang
- add focal - fix some python2 only syntax - fix lint for actions and hooks directory
2020-05-21Sync charmhelpers for release 20.05Celia Wang
- Fix the sync command in Makefile - contrib/python is moved to fetch/python
2020-04-16Functional testing updatePeter Sabaini
Reviewed-on: https://code.launchpad.net/~peter-sabaini/charm-mongodb/+git/charm-mongodb/+merge/382331 Reviewed-by: Adam Dyess <adam.dyess@canonical.com> Reviewed-by: Paul Goins <paul.goins@canonical.com>
2020-04-16Address review commentsPeter Sabaini
Also remove some leftover
2020-04-15Functional testing updatePeter Sabaini
- Excise amulet tests, add zaza based functional testing - Setup tox for functests - Remove some python2-isms - Increase mongoclient timeout to make install more robust under load
2020-02-28Add LMA to maintainer in metadata.yamlpeppepetra86
2020-02-20Fix multiline description for bind_ip in config.yamlGiuseppe Petralia
Reviewed-on: https://code.launchpad.net/~peppepetra86/charm-mongodb/+git/charm-mongodb/+merge/379577 Reviewed-by: Alvaro Uria <alvaro.uria@canonical.com>
2020-02-20Fix multiline description for bind_ip in config.yamlpeppepetra86
2020-02-20Add support for localhost in bind_ip and improve description of bind_ip ↵Giuseppe Petralia
configuration parameter. Reviewed-on: https://code.launchpad.net/~peppepetra86/charm-mongodb/+git/charm-mongodb/+merge/379564 Reviewed-by: Alvaro Uria <alvaro.uria@canonical.com>
2020-02-20Refactor bind_ip selection and improve param description.peppepetra86
2020-02-20Add support for localhost in bind_ip and improve description of bind_ippeppepetra86
configuration parameter.
2020-02-20Fix unit tests when bind_ip is equal to default valueGiuseppe Petralia
Reviewed-on: https://code.launchpad.net/~peppepetra86/charm-mongodb/+git/charm-mongodb/+merge/379529 Reviewed-by: Alvaro Uria <alvaro.uria@canonical.com>
2020-02-20Fix unit tests when bind_ip is equal to default valuepeppepetra86
2020-02-19Change default value for bind_ip and logicGiuseppe Petralia
Reviewed-on: https://code.launchpad.net/~peppepetra86/charm-mongodb/+git/charm-mongodb/+merge/379489 Reviewed-by: Alvaro Uria <alvaro.uria@canonical.com>
2020-02-19Changed default value for bind_ip and logicpeppepetra86
- Address review comments MP #378219 Closes-Bug: #1806050
2020-01-29Changed default value for bind_ip and logicDiko Parvanov
Re-written charm config to remove the 'all' option and put a default 0.0.0.0 for bind_ip. Added missing hooks symlinks causing some hooks to fail. Added hook.template because of charm build requirements. Closes-Bug: #1806050
2019-09-20Share MongoDB version with clientPaul Goins
Reviewed-on: https://code.launchpad.net/~vultaire/mongodb-charm/+git/mongodb-charm/+merge/373023 Reviewed-by: Jeremy Lounder <jeremy.lounder@canonical.com> Reviewed-by: Giuseppe Petralia <giuseppe.petralia@canonical.com>
2019-09-19Share MongoDB version with clientPaul Goins
2019-01-28Reduce the amount of unnecessary service restarts.Martin Hilton
Reviewed-on: https://code.launchpad.net/~martin-hilton/mongodb-charm/+git/mongodb-charm/+merge/362290 Reviewed-by: Stuart Bishop <stuart.bishop@canonical.com>
2019-01-28[r=stub] Reduce mongodb restartsMartin Hilton
Make the hooks less likely to restart the mongodb server. Excessive restarts had been seen to cause problems on bionic hosts.
2018-12-04Fix lint with exception of complexity failuresTom Haddon
Reviewed-on: https://code.launchpad.net/~mthaddon/mongodb-charm/+git/mongodb-charm/+merge/359932 Reviewed-by: Stuart Bishop <stuart.bishop@canonical.com>
2018-11-30Fix lint with execption of complexity failuresTom Haddon
2018-11-13Fix bionic IP address bindingMartin Hilton
Reviewed-on: https://code.launchpad.net/~martin-hilton/mongodb-charm/+git/mongodb-charm/+merge/358450 Reviewed-by: Tom Haddon <tom.haddon@canonical.com>
2018-11-13fix bionic IP address bindingMartin Hilton
2018-11-12Fix unit tests for bionic and later lp#1802926Tom Haddon
Reviewed-on: https://code.launchpad.net/~mthaddon/mongodb-charm/+git/mongodb-charm/+merge/358641 Reviewed-by: Jamon Camisso <jamon.camisso@canonical.com> Reviewed-by: Martin Hilton <martin.hilton@canonical.com>
2018-11-12Fix unit tests for bionic and later lp#1802926Tom Haddon
2018-10-31Series UpgradeDavid Ames
Implement the series-upgrade feature allowing to move between Ubuntu series. Reviewed-on: https://code.launchpad.net/~thedac/mongodb-charm/+git/mongodb-charm/+merge/356867 Reviewed-by: Xav Paice <xav.paice@canonical.com>
2018-10-31Ensure bind_ip=all listens externally on bionicDrew Freiberger
Reviewed-on: https://code.launchpad.net/~afreiberger/mongodb-charm/+git/mongodb-charm/+merge/358133 Reviewed-by: Xav Paice <xav.paice@canonical.com>
2018-10-31Ensure bind_ip=all listens externally on bionicHEADmasterlp1800208Drew Freiberger
Mongodb by default on bionic only listens on localhost, which means no relations to mongodb can connect to the database by default when using charm default configs of bind_ip=all and replicaset_master=auto. This issue was mitigated for HA deployments of mongodb in commit 7b2828638b3dad83776fef60b0dc96825ec4e10e, but did not solve client connectivity. This patch resolves the issue for HA and non HA deploys. Closes-Bug: #1800208
2018-10-19Add docstring to step_down_replset_primaryDavid Ames
2018-10-19Do not us an infinite loopDavid Ames
Try only 10 times to stop being the primary and then raise an Exception.