From e8aa7064ad7dde657ee2f79bc3aad5e130d46c02 Mon Sep 17 00:00:00 2001 From: Sharat Sharma Date: Thu, 29 Sep 2016 11:43:11 +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: I6117fc818c44ac31ae656c18ed7fe5434fa73b77 Related-Bug: #1628580 Closes-Bug: #1645474 (cherry picked from commit b7d3c18b2a094be683138a3743480f83f48c5add) --- manifests/db/sync.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 067af68d..3a747af5 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -26,6 +26,8 @@ class ceilometer::db::sync( path => '/usr/bin', user => $::ceilometer::params::user, refreshonly => true, + try_sleep => 5, + tries => 10, logoutput => on_failure, }