removing and recreating a cmr relation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Andrew Wilkins |
Bug Description
relate mediawiki to a hosted mysql
remove the relation
add the relation again
On the consuming model (mediawiki) the relation hooks fail to run and the logs contain uniter errors. It seems there's crud left behind from when the relation was broken when it was removed the first time.
unit-mediawiki-0: 14:29:44 INFO juju.worker.uniter hooks are retried true
unit-mediawiki-0: 14:29:44 INFO juju.worker.uniter committing "relation-broken" hook
unit-mediawiki-0: 14:29:44 ERROR juju.worker.uniter resolver loop error: committing operation "skip run relation-broken (0) hook": unknown relation: 0
unit-mediawiki-0: 14:29:44 INFO juju.worker.uniter unit "mediawiki/0" shutting down: committing operation "skip run relation-broken (0) hook": unknown relation: 0
unit-mediawiki-0: 14:29:44 ERROR juju.worker.
unit-mediawiki-0: 14:29:47 INFO worker.uniter.jujuc ensure jujuc symlinks in /var/lib/
unit-mediawiki-0: 14:29:47 INFO worker.uniter.jujuc was a symlink, now looking at /var/lib/
unit-mediawiki-0: 14:29:47 INFO juju.worker.uniter unit "mediawiki/0" started
unit-mediawiki-0: 14:29:47 INFO juju.worker.uniter hooks are retried true
unit-mediawiki-0: 14:29:47 INFO juju.worker.uniter committing "relation-broken" hook
unit-mediawiki-0: 14:29:47 ERROR juju.worker.uniter resolver loop error: committing operation "skip run relation-broken (0) hook": unknown relation: 0
unit-mediawiki-0: 14:29:47 INFO juju.worker.uniter unit "mediawiki/0" shutting down: committing operation "skip run relation-broken (0) hook": unknown relation: 0
unit-mediawiki-0: 14:29:47 ERROR juju.worker.
unit-mediawiki-0: 14:29:50 INFO worker.uniter.jujuc ensure jujuc symlinks in /var/lib/
tags: | added: cross-model |
Changed in juju: | |
assignee: | nobody → Andrew Wilkins (axwalk) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I had a bunch of issues when adding/ removing/ adding, eventually reproduce this one. The errors listed in the bug description were preceded with:
unit-mediawiki-0: 12:44:23 INFO juju.worker. uniter. operation skipped "db-relation- broken" hook (missing) dependency "uniter" manifold worker returned unexpected error: committing operation "run relation-broken (11) hook": permission denied
unit-mediawiki-0: 12:44:23 ERROR juju.worker.uniter resolver loop error: committing operation "run relation-broken (11) hook": permission denied
unit-mediawiki-0: 12:44:23 INFO juju.worker.uniter unit "mediawiki/0" shutting down: committing operation "run relation-broken (11) hook": permission denied
unit-mediawiki-0: 12:44:23 ERROR juju.worker.
AFAICS, that would be coming from the LeaveScope call.