openstack-charmers / charm-zookeeper-k8s

Zookeeper k8s sidecar charm
Apache License 2.0
1 stars 1 forks source link

Client relation counter isn't reset to 0 when client relation is terminated #2

Open LCVcode opened 3 years ago

LCVcode commented 3 years ago

When relating a charm to zookeeper-k8s via the "client" relation, a client relation counter is incremented to prevent multiple client connections. When this relation is removed, either by removing the relation directly or destroying the related application, this client connection counter never returns to 0.

As a result, one "client" relation my be related to zookeeper-k8s one time. Removing this relation requires redeployment of zookeeper-k8s to reset this counter and allow subsequent client relations.

LCVcode commented 3 years ago

I have run into this same problem in another context, which indicates that this issue is not specific to the zookeeper-k8s charm. This issue belongs somewhere else. I suggest we mark this issue as resolved.