From: Sharat Sharma Date: Thu, 29 Sep 2016 06:13:11 +0000 (+0530) Subject: Added retries for db_sync X-Git-Tag: 9.5.0~2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=05a2dc2897b20c4de8fb4a1811527d716f41ede2;p=puppet-modules%2Fpuppet-ceilometer.git 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) --- diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 067af68..3a747af 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, }