List index out of range when departing a cluster
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Router Charm |
Fix Released
|
Medium
|
Unassigned | ||
mysql-shared charm interface |
Fix Released
|
Medium
|
David Ames |
Bug Description
Hello everybody,
I fell through an issue today spilling out the following error message, getting my mysql-router in an error state and preventing cleanup of the unit.
unit-keystone-
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
instance.
File "lib/charm/
unit = sending_
File "/var/lib/
return super()
IndexError: list index out of range
The juju model contains the following :
Every 5.0s: juju status --color keystone juju-playground: Mon Jun 1 13:14:09 2020
Model Controller Cloud/Region Version SLA Timestamp
dsi-r1-openstack dsi-juju-controller dsi-maas/default 2.7.6 unsupported 13:14:10Z
App Version Status Scale Charm Store Rev OS Notes
keystone 17.0.0 waiting 3 keystone jujucharms 314 ubuntu
keystone-ha blocked 2 hacluster jujucharms 68 ubuntu
keystone-ldap-ict 17.0.0 active 2 keystone-ldap jujucharms 29 ubuntu
keystone-
Unit Workload Agent Machine Public address Ports Message
keystone/1* blocked executing 0/lxd/9 172.30.200.6 5000/tcp Missing relations: database, Allowed_units list provided but this unit not present
keystone-
keystone/2 blocked idle 3/lxd/4 172.30.200.56 5000/tcp Database not initialised
keystone-ha/1* blocked idle 172.30.200.56 Resource: res_ks_
keystone-
keystone-
keystone/3 blocked idle 0/lxd/10 172.30.200.9 5000/tcp Database not initialised
keystone-ha/2 blocked idle 172.30.200.9 Resource: res_ks_
keystone-
keystone-
Machine State DNS Inst id Series AZ Message
0 started 10.80.0.10 rh-09 focal SFO-02 Deployed
0/lxd/9 started 172.30.200.6 juju-92b05d-0-lxd-9 focal SFO-02 Container started
0/lxd/10 started 172.30.200.9 juju-92b05d-
3 started 10.80.0.3 rh-06 focal SFO-02 Deployed
3/lxd/4 started 172.30.200.56 juju-92b05d-3-lxd-4 focal SFO-02 Container started
tags: | added: scaleback |
Changed in charm-mysql-router: | |
status: | New → Triaged |
tags: |
added: scale-back removed: scaleback |
tags: |
added: scaleback removed: scale-back |
Changed in charm-mysql-router: | |
importance: | Undecided → Medium |
milestone: | none → 20.08 |
Changed in charm-mysql-router: | |
milestone: | 20.08 → none |
Changed in charm-mysql-router: | |
status: | Triaged → In Progress |
assignee: | nobody → Aurelien Lourot (aurelien-lourot) |
Changed in charm-interface-mysql-shared: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → David Ames (thedac) |
milestone: | none → 20.10 |
Changed in charm-mysql-router: | |
milestone: | none → 20.10 |
Changed in charm-mysql-router: | |
assignee: | Aurelien Lourot (aurelien-lourot) → nobody |
Changed in charm-mysql-router: | |
status: | Fix Committed → Fix Released |
Same here, /pastebin. ubuntu. com/p/zHzkhkkmY c/
https:/
2020-07-17 12:05:27 DEBUG shared- db-relation- departed Traceback (most recent call last): db-relation- departed File "/var/lib/ juju/agents/ unit-keystone- mysql-router- 0/charm/ hooks/shared- db-relation- departed" , line 22, in <module> db-relation- departed main() db-relation- departed File "/var/lib/ juju/agents/ unit-keystone- mysql-router- 0/.venv/ lib/python3. 8/site- packages/ charms/ reactive/ __init_ _.py", line 74, in main db-relation- departed bus.dispatch( restricted= restricted_ mode) db-relation- departed File "/var/lib/ juju/agents/ unit-keystone- mysql-router- 0/.venv/ lib/python3. 8/site- packages/ charms/ reactive/ bus.py" , line 390, in dispatch db-relation- departed _invoke( other_handlers) db-relation- departed File "/var/lib/ juju/agents/ unit-keystone- mysql-router- 0/.venv/ lib/python3. 8/site- packages/ charms/ reactive/ bus.py" , line 359, in _invoke db-relation- departed handler.invoke() db-relation- departed File "/var/lib/ juju/agents/ unit-keystone- mysql-router- 0/.venv/ lib/python3. 8/site- packages/ charms/ reactive/ bus.py" , line 181, in invoke db-relation- departed self._action(*args) db-relation- departed File "/var/lib/ juju/agents/ unit-keystone- mysql-router- 0/charm/ reactive/ mysql_router_ handlers. py", line 102, in proxy_shared_ db_responses db-relation- departed instance. proxy_db_ and_user_ responses( db_router, shared_db) db-relation- departed File "lib/charm/ openstack/ mysql_router. py", line 481, in proxy_db_ and_user_ responses db-relation- departed unit = sending_ interface. all_joined_ units[0] db-relation- departed File "/var/lib/ juju/agents/ unit-keystone- mysql-router- 0/.venv/ lib/python3. 8/site- packages/ charms/ reactive/ endpoints. py", line 582, in __getitem__ db-relation- departed return super() .__getitem_ _(self. _translate_ key(key) ) db-relation- departed IndexError: list index out of range
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-
2020-07-17 12:05:27 DEBUG shared-