Don't pass any --config-file arguments to neutron-db-manage
The plugin config file is not needed since Juno because now schema does not depend on plugin used; and oslo.config is capable of finding neutron.conf by the virtue of its auto-discovery mechanism. Change-Id: Icc4de9824ef95781a1d060534973c2bbf8e03059
This commit is contained in:
@@ -5,13 +5,13 @@
|
|||||||
#
|
#
|
||||||
# [*extra_params*]
|
# [*extra_params*]
|
||||||
# (optional) String of extra command line parameters to append
|
# (optional) String of extra command line parameters to append
|
||||||
# to the neutron-db-manage upgrade head command. These will be
|
# to the neutron-db-manage upgrade heads command. These will be
|
||||||
# inserted in the command line between 'neutron-db-manage' and
|
# inserted in the command line between 'neutron-db-manage' and
|
||||||
# 'upgrade head'.
|
# 'upgrade heads'.
|
||||||
# Defaults to '--config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini'
|
# Defaults to ''
|
||||||
#
|
#
|
||||||
class neutron::db::sync(
|
class neutron::db::sync(
|
||||||
$extra_params = '--config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini',
|
$extra_params = '',
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include ::neutron::deps
|
include ::neutron::deps
|
||||||
|
@@ -138,7 +138,7 @@ class neutron::plugins::midonet (
|
|||||||
if $sync_db {
|
if $sync_db {
|
||||||
Package<| title == 'python-networking-midonet' |> ~> Exec['midonet-db-sync']
|
Package<| title == 'python-networking-midonet' |> ~> Exec['midonet-db-sync']
|
||||||
exec { 'midonet-db-sync':
|
exec { 'midonet-db-sync':
|
||||||
command => 'neutron-db-manage --subproject networking-midonet upgrade head',
|
command => 'neutron-db-manage --subproject networking-midonet upgrade heads',
|
||||||
path => '/usr/bin',
|
path => '/usr/bin',
|
||||||
subscribe => [
|
subscribe => [
|
||||||
Anchor['neutron::install::end'],
|
Anchor['neutron::install::end'],
|
||||||
|
@@ -6,7 +6,7 @@ describe 'neutron::db::sync' do
|
|||||||
|
|
||||||
it 'runs neutron-db-sync' do
|
it 'runs neutron-db-sync' do
|
||||||
is_expected.to contain_exec('neutron-db-sync').with(
|
is_expected.to contain_exec('neutron-db-sync').with(
|
||||||
:command => 'neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade heads',
|
:command => 'neutron-db-manage upgrade heads',
|
||||||
:path => '/usr/bin',
|
:path => '/usr/bin',
|
||||||
:refreshonly => 'true',
|
:refreshonly => 'true',
|
||||||
:try_sleep => 5,
|
:try_sleep => 5,
|
||||||
|
Reference in New Issue
Block a user