MongoDB Charm Breaks Cluster Creation When Auth=True
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MongoDB Charm |
Fix Released
|
Medium
|
Jorge Merlino |
Bug Description
Trying my best to actually secure MongoDB when I deploy it via Juju. So far no luck.
I'm able deploy a 2 node cluster successfully via juju if auth default = False. I've tried following modern instructions for securing mongo post-installation by adding --auth to the systemctl unit. This causes juju to fail to be able to run commands on any of the nodes.
I'm able to deploy a 1 node cluster via juju if auth default = True. However, I have no way to authenticate against the database and can't find a username/password anywhere online. So that's useless.
If I pull down the charm and change auth default = True and deploy a 2 node cluster, the post installation steps for creating the replica set fails with:
mongodb/0* error idle 0 <my-ip-range>.96 27017/tcp,
mongodb/1 maintenance executing 1 <my-ip-range>.97 27017/tcp,
So far as I can see (and have read) the MongoDB charm is unusable in its current state. Please advise.
Thank You,
Joel
Related branches
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- James Troup (community): Needs Fixing
- BootStack Reviewers: Pending requested
-
Diff: 1157 lines (+591/-58)15 files modifiedREADME.md (+13/-0)
config.yaml (+1/-1)
hooks/hooks.py (+261/-31)
tests/functional/tests/bundles/bionic-auth.yaml (+20/-0)
tests/functional/tests/bundles/bionic-replicated-auth.yaml (+20/-0)
tests/functional/tests/bundles/bionic-replicated.yaml (+1/-0)
tests/functional/tests/bundles/bionic-shard.yaml (+1/-0)
tests/functional/tests/bundles/bionic.yaml (+1/-0)
tests/functional/tests/bundles/focal-auth.yaml (+20/-0)
tests/functional/tests/bundles/focal-replicated-auth.yaml (+20/-0)
tests/functional/tests/bundles/focal-replicated.yaml (+1/-0)
tests/functional/tests/bundles/focal.yaml (+1/-0)
tests/functional/tests/tests.yaml (+18/-0)
tests/functional/tests/tests_mongodb.py (+16/-2)
tests/unit/test_hooks.py (+197/-24)
Changed in charm-mongodb: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in charm-mongodb: | |
assignee: | nobody → Jorge Merlino (jorge-merlino) |
Changed in charm-mongodb: | |
status: | Confirmed → Fix Committed |
Changed in charm-mongodb: | |
status: | Fix Committed → Fix Released |
Joel, how did you end up getting around this show-stopper? Are you deploying your cluster manually now or using a different software suite?