Use different resource name for persistence db setup
... to avoid conflict with core db setup. Closes-Bug: #2052389 Change-Id: Ib192c9d09f5134404dc055e31a156a4c3a748ff3 (cherry picked from commit c1b822df5e87884f0907af5dc3c19df727c5e854) (cherry picked from commit d5114f03ed2d518edd00a77c2456c908f4308945)
This commit is contained in:
parent
942cbc7f6e
commit
6eb032c8f8
@ -20,7 +20,7 @@ class octavia::db::sync_persistence(
|
||||
include octavia::deps
|
||||
include octavia::params
|
||||
|
||||
exec { 'octavia-db-sync':
|
||||
exec { 'octavia-db-sync-persistence':
|
||||
command => "octavia-db-manage upgrade_persistence ${extra_params}",
|
||||
path => '/usr/bin',
|
||||
user => $::octavia::params::user,
|
||||
|
@ -7,7 +7,7 @@ describe 'octavia::db::sync_persistence' do
|
||||
it { is_expected.to contain_class('octavia::deps') }
|
||||
|
||||
it 'runs octavia-manage db upgrade' do
|
||||
is_expected.to contain_exec('octavia-db-sync').with(
|
||||
is_expected.to contain_exec('octavia-db-sync-persistence').with(
|
||||
:command => 'octavia-db-manage upgrade_persistence ',
|
||||
:user => 'octavia',
|
||||
:path => '/usr/bin',
|
||||
@ -33,7 +33,7 @@ describe 'octavia::db::sync_persistence' do
|
||||
end
|
||||
|
||||
it {
|
||||
is_expected.to contain_exec('octavia-db-sync').with(
|
||||
is_expected.to contain_exec('octavia-db-sync-persistence').with(
|
||||
:command => 'octavia-db-manage upgrade_persistence --config-file /etc/octavia/octavia.conf',
|
||||
:user => 'octavia',
|
||||
:path => '/usr/bin',
|
||||
|
Loading…
x
Reference in New Issue
Block a user