From 51b2044a34a5dbb45baf0bcd05b0c2971b8f4ef4 Mon Sep 17 00:00:00 2001 From: Sharat Sharma Date: Thu, 29 Sep 2016 10:59:39 +0530 Subject: [PATCH] Added retries for db_sync If db sync fails, it is never retried leading to errors. So, this patch adds retries for db_sync to avoid sync fails. Change-Id: Iba2b099c917762ed45192f374d8b67e26ec3664a Closes-Bug: #1628580 --- manifests/db/sync.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index e64c065..45e8cdd 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -16,6 +16,8 @@ class mistral::db::sync { user => 'mistral', logoutput => on_failure, refreshonly => true, + try_sleep => 5, + tries => 10, } Exec['mistral-db-sync'] -> Exec['mistral-db-populate']