From 0fc2099d127b3a5d459f5591f4380d110cc92e4c Mon Sep 17 00:00:00 2001 From: Sharat Sharma Date: Thu, 29 Sep 2016 12:11:05 +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: I8778bd1b609bc5458a250111dc0a0f9b2fb52161 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 94acb7b4..3a87ca80 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -21,6 +21,8 @@ class glance::db::sync( path => '/usr/bin', user => 'glance', refreshonly => true, + try_sleep => 5, + tries => 10, logoutput => on_failure, subscribe => [ Anchor['glance::install::end'],