From 61bc664137d73c6b73e9db5157e1a7a79ab5cebd Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 31 Oct 2022 08:14:05 -0400 Subject: T4526: use informative error messages for keepalived-fifo with commit in progress --- src/system/keepalived-fifo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/system/keepalived-fifo.py') diff --git a/src/system/keepalived-fifo.py b/src/system/keepalived-fifo.py index a0fccd1d0..864ee8419 100755 --- a/src/system/keepalived-fifo.py +++ b/src/system/keepalived-fifo.py @@ -67,13 +67,13 @@ class KeepalivedFifo: # For VRRP configuration to be read, the commit must be finished count = 1 while commit_in_progress(): - if ( count <= 40 ): - logger.debug(f'commit in progress try: {count}') + if ( count <= 20 ): + logger.debug(f'Attempt to load keepalived configuration aborted due to a commit in progress (attempt {count}/20)') else: - logger.error(f'commit still in progress after {count} continuing anyway') + logger.error(f'Forced keepalived configuration loading despite a commit in progress ({count} wait time expired, not waiting further)') break count += 1 - time.sleep(0.5) + time.sleep(1) try: base = ['high-availability', 'vrrp'] -- cgit v1.2.3