Fix upgrade command
Make our upgrade class match devstack.
2d98d5e743/devstack/lib/watcher (L238)
Change-Id: I02ce5e52f78282c394b086b8643655dbe226bd68
This commit is contained in:
parent
a3f63f3199
commit
3653345f1c
@ -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,
|
||||
|
4
releasenotes/notes/fix-db-upgrade-5dc1d2c07d26774a.yaml
Normal file
4
releasenotes/notes/fix-db-upgrade-5dc1d2c07d26774a.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fix db upgrade class to use 'watcher-db-manager upgrade head'.
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user