Notify more relations when cluster is bootstrapped
Currently mon_relation only calls notify_rbd_mirrors when the cluster is
already bootstrapped which leads to broker requests not being handled
for other relations in some cases.
The change also moves the bootstrap attempt code into a separate
function and adds unit tests for mon_relation to cover different
branches for various inputs.
Reviewed: https:/ /review. opendev. org/c/openstack /charm- ceph-mon/ +/806980 /opendev. org/openstack/ charm-ceph- mon/commit/ 82743ab7e5b8d0c 98fd09a6c12ac23 110acd89ec
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 82743ab7e5b8d0c 98fd09a6c12ac23 110acd89ec
Author: Dmitrii Shcherbakov <email address hidden>
Date: Wed Sep 1 23:19:53 2021 +0300
Notify more relations when cluster is bootstrapped
Currently mon_relation only calls notify_rbd_mirrors when the cluster is
already bootstrapped which leads to broker requests not being handled
for other relations in some cases.
The change also moves the bootstrap attempt code into a separate
function and adds unit tests for mon_relation to cover different
branches for various inputs.
Closes-Bug: #1942224 d49a9a9ad9c096b 232fefd6c68
Change-Id: Id9b611d128acb7