]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commitdiff
Added retries for db_sync
authorSharat Sharma <sharat.sharma@nectechnologies.in>
Thu, 29 Sep 2016 06:13:11 +0000 (11:43 +0530)
committerSharat Sharma <sharat.sharma@nectechnologies.in>
Thu, 29 Sep 2016 07:00:43 +0000 (07:00 +0000)
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
Closes-Bug: #1628580

manifests/db/sync.pp

index 067af68dd97e0c85844a2e44fb2ee8a222c91ade..3a747af5d8ebbcad3c78f461201a90d0484e5b1e 100644 (file)
@@ -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,
   }