Fix upgrade command

Make our upgrade class match devstack.
2d98d5e743/devstack/lib/watcher (L238)

Change-Id: I02ce5e52f78282c394b086b8643655dbe226bd68
This commit is contained in:
Alex Schultz 2017-05-12 09:36:17 -06:00
parent a3f63f3199
commit 3653345f1c
3 changed files with 7 additions and 3 deletions

View File

@ -16,7 +16,7 @@ class watcher::db::upgrade(
include ::watcher::deps
exec { 'watcher-db-manage-upgrade':
command => "watcher-db-manage ${extra_params} upgrade",
command => "watcher-db-manage ${extra_params} upgrade head",
path => '/usr/bin',
user => 'watcher',
refreshonly => true,

View File

@ -0,0 +1,4 @@
---
fixes:
- |
Fix db upgrade class to use 'watcher-db-manager upgrade head'.

View File

@ -6,7 +6,7 @@ describe 'watcher::db::upgrade' do
it 'runs watcher-db-manage' do
is_expected.to contain_exec('watcher-db-manage-upgrade').with(
:command => 'watcher-db-manage --config-file /etc/watcher/watcher.conf upgrade',
:command => 'watcher-db-manage --config-file /etc/watcher/watcher.conf upgrade head',
:path => '/usr/bin',
:user => 'watcher',
:refreshonly => 'true',
@ -30,7 +30,7 @@ describe 'watcher::db::upgrade' do
it {
is_expected.to contain_exec('watcher-db-manage-upgrade').with(
:command => 'watcher-db-manage --config-file /etc/watcher/watcher01.conf upgrade',
:command => 'watcher-db-manage --config-file /etc/watcher/watcher01.conf upgrade head',
:path => '/usr/bin',
:user => 'watcher',
:refreshonly => 'true',