Adding the following in the reactive/gnocchi_handlers.py file is the work around and root cause.
@reactive.when('cluster.available')
def update_peers(cluster):
"""Inform peers about this unit"""
with charm.provide_charm_instance() as charm_instance: charm_instance.update_peers(cluster)
This is a proof of concept fix. My team and I will discuss if this ought to live in layer-openstack-api as this problem affects multiple reactive api charms.
Adding the following in the reactive/ gnocchi_ handlers. py file is the work around and root cause.
@reactive. when('cluster. available' ) peers(cluster) : charm_instance( ) as charm_instance:
charm_ instance. update_ peers(cluster)
def update_
"""Inform peers about this unit"""
with charm.provide_
This is a proof of concept fix. My team and I will discuss if this ought to live in layer-openstack-api as this problem affects multiple reactive api charms.
https:/ /review. opendev. org/714792