Juju status stuck in 'Allowed_units list provided but this unit not present'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Router Charm |
Expired
|
Undecided
|
Unassigned | ||
OpenStack Keystone Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In an process of moving (remove-unit then add-unit) a kestone unit, the new unit 'keystone-
With some debug with is_db_ready() in charmhelpers/
This is confirmed by looking the relation in juju where keystone-
'''
- relation-id: 122
endpoint: shared-db
related-
application
related-units:
keystone-
in-scope: true
data:
db_host: 127.0.0.1
db_port: "3306"
password: ****
keystone-
in-scope: true
data:
db_host: 127.0.0.1
db_port: "3306"
password: ****
keystone-
in-scope: true
data:
db_host: 127.0.0.1
db_port: "3306"
password: ****
'''
Versions informations bellow :
'''
keystone 17.0.1 waiting 3 keystone stable 330 no Some units are not ready
keystone-
'''
I am not sure that there wasnt a "juju remove-unit --force" issued.
Also before the unit remove/add process, the keystone-
Please advice if more information is needed.
description: | updated |
description: | updated |
Changed in charm-mysql-router: | |
status: | Expired → Confirmed |
Changed in charm-mysql-router: | |
status: | Confirmed → Incomplete |
Changed in charm-mysql-router: | |
status: | Incomplete → Expired |
I'm also hitting this bug I've tried manually adding the missing allowed_unit data back into the relation data with "juju run -u keystone- mysql-router/ <Unit no> -- "relation-set -r shared-db:579 allowed_ units=' keystone/ <unit no>'"" and it fixes it for around 5 mins then juju deletes the allowed_unit and then complains its missing again. I'm running the following charm version on focal.
keystone 658
mysql-router 111