juju remove-relation mysql owncloud does not work.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
owncloud (Juju Charms Collection) |
Fix Released
|
Undecided
|
José Antonio Rey |
Bug Description
I am doing a review of an owncloud merge proposal and found an unrelated bug.
Here are the steps I ran:
juju deploy owncloud
juju set owncloud domain="10.0.3.171"
(used owncloud in standalone mode)
juju deploy mysql
juju add-relation mysql owncloud
(used owncloud in external database mode)
juju remove-relation mysql owncloud
I attempted to use owncloud after this and got the following error.
[1044] SQLSTATE[42000] [1044] Access denied for user 'paethaicieniaj
Is it possible to go back to standalone mode with sqlite? If so we should fix this by adding a db-relation-removed hook that does the right cleanup. If that is not possible, perhaps just install owncloud again so it "looks" right with no errors.
If both those things are not possible we should document this as a known limitation in the README.md file.
Related branches
- Charles Butler (community): Approve
- Matt Bruzek (community): Needs Fixing
-
Diff: 2050 lines (+1592/-251)18 files modifiedREADME.md (+110/-33)
charm-helpers.yaml (+5/-0)
config.yaml (+28/-0)
hooks/charmhelpers/contrib/ssl/__init__.py (+78/-0)
hooks/charmhelpers/contrib/ssl/service.py (+267/-0)
hooks/charmhelpers/core/hookenv.py (+401/-0)
hooks/charmhelpers/core/host.py (+297/-0)
hooks/config-changed (+153/-9)
hooks/db-relation-changed (+9/-0)
hooks/db-relation-departed (+13/-0)
hooks/install (+45/-23)
hooks/ssl (+19/-0)
hooks/start (+6/-2)
hooks/upgrade-charm (+43/-39)
hooks/website-relation-joined (+1/-2)
metadata.yaml (+1/-1)
tests/100-deploy.py (+116/-0)
tests/100_deploy.test (+0/-142)
Changed in owncloud (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Matt,
I'm going to go ahead and try to find a solution for this bug.
Thanks for letting us know!