"So the only is_leader() ... leader_set() code path is the one that was quoted, and the only call out, that isn't Juju related, is "ceph.generate_monitor_secret()" which is very quick.
So, I'm wondering if the charm does manage to call leader_set() in time, but the controller doesn't 'see' the leader_set until several minutes later?"
I'll also take a look at the log files/crash-dump.
This is my comment from: https:/ /bugs.launchpad .net/charm- ceph-mon/ +bug/1760138/ comments/ 5
The relevance is:
"So the only is_leader() ... leader_set() code path is the one that was quoted, and the only call out, that isn't Juju related, is "ceph.generate_ monitor_ secret( )" which is very quick.
So, I'm wondering if the charm does manage to call leader_set() in time, but the controller doesn't 'see' the leader_set until several minutes later?"
I'll also take a look at the log files/crash-dump.