after remove/add mysql units, unit becomes blocked with 'shared-db' missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi Charm |
Fix Released
|
Critical
|
David Ames | ||
OpenStack AODH Charm |
Fix Released
|
Critical
|
David Ames | ||
OpenStack Designate Charm |
Fix Released
|
Critical
|
David Ames | ||
mysql-shared charm interface |
Fix Released
|
Critical
|
David Ames |
Bug Description
Charm 18.08, Juju 2.4, Xenial and Queens.
Deployed 3 units of mysql, 3 of Gnocchi, aodh and designate, added relations, all was good. All use hacluster with a VIP set.
Added 2 new units of mysql (mysql/3, mysql/4)
Removed 2 older units of mysql (mysql/1 and mysql/2)
Now the gnocchi, aodh and Designate units sit with Workload "blocked" and the message "'shared-db' missing".
From the logs, it looks like the relation-departed hooks have set the status incorrectly, as there's still suitable database config in the gnocchi.conf.
2018-10-24 04:34:43 INFO juju.worker.
2018-10-24 04:34:43 DEBUG juju.worker.
2018-10-24 04:39:39 INFO juju.worker.
2018-10-24 04:39:39 DEBUG juju.worker.
2018-10-24 05:02:31 INFO juju.worker.
2018-10-24 05:02:31 DEBUG juju.worker.
2018-10-24 05:02:37 INFO juju.worker.
2018-10-24 05:02:37 DEBUG juju.worker.
summary: |
- after remove/add mysql units, unit becomes blocked with'shared-db' + after remove/add mysql units, unit becomes blocked with 'shared-db' missing |
Changed in charm-interface-mysql-shared: | |
milestone: | 18.11 → 19.04 |
Changed in charm-interface-mysql-shared: | |
assignee: | nobody → David Ames (thedac) |
status: | In Progress → Fix Committed |
Changed in charm-gnocchi: | |
status: | New → Confirmed |
Changed in charm-aodh: | |
status: | New → Confirmed |
Changed in charm-designate: | |
assignee: | nobody → David Ames (thedac) |
status: | New → Confirmed |
Changed in charm-gnocchi: | |
assignee: | nobody → David Ames (thedac) |
Changed in charm-aodh: | |
importance: | Undecided → Critical |
Changed in charm-designate: | |
importance: | Undecided → Critical |
Changed in charm-aodh: | |
assignee: | nobody → David Ames (thedac) |
Changed in charm-gnocchi: | |
importance: | Undecided → Critical |
Changed in charm-gnocchi: | |
status: | In Progress → Fix Committed |
Changed in charm-designate: | |
status: | In Progress → Fix Committed |
Changed in charm-aodh: | |
status: | In Progress → Fix Committed |
Changed in charm-gnocchi: | |
milestone: | none → 19.04 |
Changed in charm-aodh: | |
milestone: | none → 19.04 |
Changed in charm-designate: | |
milestone: | none → 19.04 |
Changed in charm-gnocchi: | |
status: | Fix Committed → Fix Released |
Changed in charm-aodh: | |
status: | Fix Committed → Fix Released |
Changed in charm-designate: | |
status: | Fix Committed → Fix Released |
Changed in charm-interface-mysql-shared: | |
status: | Fix Committed → Fix Released |
The interface- mysql-shared may need to unset the following on shared-db departed:
shared-db.available
shared-db.connected
db.synched
Triage:
Handle the case:
juju remove-relation $REACTIVE_CHARM mysql
Determine if the departed hook is the last unit in the shared-db relation
If so, unset all flags pertaining to the shared-db relation