I think we're missing an is_leader() check in the following code:
@hooks.hook('cloud-compute-relation-changed') def compute_changed(rid=None, unit=None): ...
if is_cellv2_init_ready() and is_db_initialised(): add_hosts_to_cell()
More thorough look at code: https://paste.ubuntu.com/p/9K7Xt3YwWt/
I think we're missing an is_leader() check in the following code:
@hooks. hook('cloud- compute- relation- changed' ) changed( rid=None, unit=None):
def compute_
...
if is_cellv2_ init_ready( ) and is_db_initialis ed():
add_hosts_ to_cell( )
More thorough look at code: https:/ /paste. ubuntu. com/p/9K7Xt3YwW t/