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: I836b56d125ec781f24b5ea1797ac882b353e2379
Related-Bug: #1628580
Closes-Bug: #1645474
(cherry picked from commit 9e7ed558f2)
This commit is contained in:
Sharat Sharma 2016-09-29 12:40:33 +05:30 committed by Anton Chevychalov
parent 00f171eab4
commit 6857bc69ad
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ class neutron::db::sync(
command => "neutron-db-manage ${extra_params} upgrade head",
path => '/usr/bin',
refreshonly => true,
try_sleep => 5,
tries => 10,
logoutput => on_failure,
}
}