AttributeError: 'NoneType' object has no attribute 'all_joined_units'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL InnoDB Cluster Charm |
Fix Released
|
High
|
David Ames |
Bug Description
This happens when destroying a model and the peers already went away making reactive.
unit-mysql-1: 16:54:20 ERROR unit.mysql/
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
create_
File "/var/lib/
for unit in cluster.
AttributeError: 'NoneType' object has no attribute 'all_joined_units'
unit-mysql-1: 16:54:20 ERROR juju.worker.
juju status
Model Controller Cloud/Region Version SLA Timestamp Notes
octavia freyes stsstack/stsstack 2.8.1 unsupported 17:00:35Z attempt 20 to destroy model failed (will retry): model not empty, found 1 machine, 7 applications (model not empty)
App Version Status Scale Charm Store Rev OS Notes
glance unknown 0 glance jujucharms 429 ubuntu
keystone waiting 0 keystone jujucharms 513 ubuntu
mysql 8.0.21 error 1 mysql-innodb-
neutron-api unknown 0 neutron-api jujucharms 455 ubuntu
nova-cloud-
octavia unknown 0 octavia jujucharms 84 ubuntu
placement unknown 0 placement jujucharms 28 ubuntu
Unit Workload Agent Machine Public address Ports Message
mysql/1* error idle 4 10.5.0.140 hook failed: "shared-
Machine State DNS Inst id Series AZ Message
4 stopped 10.5.0.140 ec618e8b-
Changed in charm-mysql-innodb-cluster: | |
status: | Fix Committed → Fix Released |
I think this is a bug in charms.reactive: https:/ /github. com/juju- solutions/ charms. reactive/ issues/ 231
I'm going to work around it in the charm to ensure that it doesn't crash if the return value from endpoint_ from_flag( ) is None.