From 9eb1bc9316b60050e2a2a36a571fadef3d0b1c03 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Tue, 18 Apr 2017 11:27:51 +0800 Subject: [PATCH] Add the setting log level Increase the setting log level in the synchronization database. Change-Id: I486ed0250e09f75bfebc1dcb6f56be178d1243e9 Closes-Bug: #1683567 --- manifests/db/sync.pp | 1 + spec/classes/octavia_db_sync_spec.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index fa26c88d..cb9829b0 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -21,6 +21,7 @@ class octavia::db::sync( refreshonly => true, try_sleep => 5, tries => 10, + logoutput => on_failure, subscribe => [ Anchor['octavia::install::end'], Anchor['octavia::config::end'], diff --git a/spec/classes/octavia_db_sync_spec.rb b/spec/classes/octavia_db_sync_spec.rb index 4009f136..98899c84 100644 --- a/spec/classes/octavia_db_sync_spec.rb +++ b/spec/classes/octavia_db_sync_spec.rb @@ -12,6 +12,7 @@ describe 'octavia::db::sync' do :refreshonly => 'true', :try_sleep => 5, :tries => 10, + :logoutput => 'on_failure', :subscribe => ['Anchor[octavia::install::end]', 'Anchor[octavia::config::end]', 'Anchor[octavia::dbsync::begin]'], @@ -34,6 +35,7 @@ describe 'octavia::db::sync' do :refreshonly => 'true', :try_sleep => 5, :tries => 10, + :logoutput => 'on_failure', :subscribe => ['Anchor[octavia::install::end]', 'Anchor[octavia::config::end]', 'Anchor[octavia::dbsync::begin]'],