charm-helpers icon indicating copy to clipboard operation
charm-helpers copied to clipboard

distributed_wait maintenance message could use status updates when set to long values.

Open afreiberger opened this issue 5 years ago • 0 comments

In charmhelpers/contrib/hahelpers/cluster.py distributed_wait sets a maintenance message listing how long the charm is waiting before it continues to it's next step.

When dealing with longer wait times, it would be helpful for operator view for this to count down by 15 or 30 second increments rather than saying "sleeping for X seconds" for the entire X seconds. This becomes more necessary when modulo_nodes is increased or wait time is increased beyond the typical settings of 3 nodes and 30 second each.

For example, if I have a known_wait of 5 minutes, my third unit waits 10 minutes. I'd like to know an updated time still to be slept in between 10 minutes and the end of the wait state.

Ticking the message to remaining time every 15, 30, or 60 seconds would be very helpful.

afreiberger avatar Nov 30 '20 18:11 afreiberger