<div dir="ltr">Morning all
<div><br></div><div>I'm trying to test for charm reconfiguration if the leader goes AWOL.</div><div><br></div><div>Adam suggested that I watch the status waiting for the next leader election hook the wait on that and then check my service configs.</div><div><br></div><div>Sounds sane! Implementation though has been a pain. </div><div><br></div><div>From Amulet I assume I need to call </div><div><br></div><div>sentry.wait_for_messages() ?</div><div><br></div><div>I looked at my juju debug-log and pulled out a line that said "Initializing Leadership Layer (is follower)" which I figured would work. Is that a message and what Amulet watches? I assume so but I don't really know and I can't find a way to query juju to ask for what messages it's logged.</div><div><br></div><div>Anyway </div><div><br></div><div><div>self.d.sentry.wait_for_messages(</div><div> {'pdi': 'Initializing Leadership Layer'</div><div> ' (is follower)'})</div></div><div><br></div><div>Fails with a timeout. So anyone got any suggestions? :)</div><div><br></div><div>Thanks</div><div><br></div><div>Tom</div></div>