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
Related-Bug: #1628580
Closes-Bug: #1645474
(cherry picked from commit 0fc2099d12)
This commit is contained in:
Sharat Sharma 2016-09-29 12:11:05 +05:30 committed by Anton Chevychalov
parent 659f1deabb
commit 1dd7369c2b
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ class glance::db::sync(
path => '/usr/bin',
user => 'glance',
refreshonly => true,
try_sleep => 5,
tries => 10,
logoutput => on_failure,
}