Open nobuto-m opened 1 month ago
Thanks for reporting this @nobuto-m, taking a look
This is also the case in ceph-mon: https://opendev.org/openstack/charm-ceph-mon/src/branch/master/src/ceph_client.py#L80
It's not necessarily a problem. Depending on what the client uses to connect to the cluster (i.e: librados
), it can get the monmap by simply using a single monitor address, its username and key.
It's important to agree on what to expect both from the consumer side of the interface and the provider. As long as the consumer has an established method to list (at least) 3 MON endpoints for HA, we are good. https://bugs.launchpad.net/snap-openstack/+bug/2066167
@lmlg What happens when mon is down for some reason? Does charm-microceph detects and changes the relation data to point to another mon?
The microceph concern is that changing the behaviour of the config key might make it incompatible with pre-sunbeam clients which only expect a single address to be provided ?
In this regard, may I request you to use a new key ceph-public-addresses
(plural) which may be used to consume all the mon addrs at once.
Fix for review https://github.com/canonical/charm-microceph/pull/97
ceph-public-address in the relation data only has one IP address. https://bugs.launchpad.net/charm-microceph/+bug/2066167