InconsistentUUIDError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Won't Fix
|
Undecided
|
Unassigned | ||
OpenStack Percona Cluster Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When removing all of the mysql units (with juju remove-machine --force) the UUID of the old cluster master is remembered when adding new units.
Example:
$ juju remove-machine 0/lxd/6 1/lxd/6 2/lxd/6 --force
# wait for machines and units to be removed
$ juju add-unit mysql -n 3 --to lxd:0,lxd:1,lxd:2
In the log file /var/log/
percona_
$ juju status mysql
App Version Status Scale Charm Store Rev OS Notes
hacluster-mysql blocked 1 hacluster jujucharms 46 ubuntu
mysql 5.6.37-26.21 error 3 percona-cluster jujucharms 266 ubuntu
Unit Workload Agent Machine Public address Ports Message
mysql/3 error idle 0/lxd/12 10.20.0.40 hook failed: "leader-
mysql/4 error idle 1/lxd/12 10.20.0.20 hook failed: "leader-
mysql/5* blocked idle 2/lxd/12 10.20.0.33 3306/tcp Insufficient peers to bootstrap cluster
hacluster-
# Commands to retrieve error
$ juju run --unit mysql/5 "cat /var/lib/
c312623c-
$ juju run --unit mysql/5 "leader-get bootstrap-uuid"
9a348dd2-
# Workaround
juju run --unit mysql/5 "leader-set bootstrap-
after that, all hacluster are up but mysql is never boostraped.
Bug related: https:/
description: | updated |
Given that this bug is requesting that removing all units and then adding new units be treated as a new charm, I'm re-targeting this to Juju and suggesting that it's a wishlist bug