Previously when an instance was removed the leadership settings and
charms.reactive flags remained for that instance's IP address. If a new
instance was subsequently added and happened to have the same IP address
the charm would never add the new instance to the cluster because it
believed the instance was already configured and clustered based on
leader settings.
Clear leader settings flags for instance cluster configured and
clustered.
Due to a bug in Juju the previous use of IP addresses with '.' were
unable to be unset. Transform dotted flags to use '-' instead.
Reviewed: https:/ /review. opendev. org/c/openstack /charm- mysql-innodb- cluster/ +/799953 /opendev. org/openstack/ charm-mysql- innodb- cluster/ commit/ 6d9a50774c4a1c7 875bd2d90fe66b5 cb5dafe63a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/21.04
commit 6d9a50774c4a1c7 875bd2d90fe66b5 cb5dafe63a
Author: David Ames <email address hidden>
Date: Wed Apr 14 11:42:18 2021 -0700
Remove instance flags when instance removed
Previously when an instance was removed the leadership settings and
charms.reactive flags remained for that instance's IP address. If a new
instance was subsequently added and happened to have the same IP address
the charm would never add the new instance to the cluster because it
believed the instance was already configured and clustered based on
leader settings.
Clear leader settings flags for instance cluster configured and
clustered.
Due to a bug in Juju the previous use of IP addresses with '.' were
unable to be unset. Transform dotted flags to use '-' instead.
Change-Id: If3ffa9e9191c05 7ac7e3d96bfcf84 d8a3a2ad45a 92edb3a9b1e1783 5555590d1a)
Closes-Bug: #1922394
Related-Bug: #1889792
(cherry picked from commit f22ca3b5b4dde7f