Scale out handler does not have enough guarding flags
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL InnoDB Cluster Charm |
Fix Released
|
High
|
David Ames |
Bug Description
Related to LP Bug #1914299 and the attempt to handle departed hooks [1] that *may* be reverted.
The reactive.
create_
configure_
add_
Leading to:
2021-02-06 22:29:08 INFO juju-log Invoking reactive handler: reactive/
2021-02-06 22:29:08 ERROR juju-log Hook error:
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'
Also related is the discussion on issue/231 [2]. That endpoint_from_flag may return None.
We should audit the charm for these edge cases and guard against None from endpoint_from_flag.
A comprehensive solution for departed/broken relationships is needed.
[0] https:/
[1] https:/
[2] https:/
Changed in charm-mysql-innodb-cluster: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-mysql-innodb-cluster: | |
status: | Fix Committed → Fix Released |
Added the 'cluster.available' flag to the scale_out handler [0]
[0] https:/ /review. opendev. org/c/openstack /charm- mysql-innodb- cluster/ +/774356