network/controller: execute db_sync after neutron config
Bug #352 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
@@ -45,6 +45,7 @@ class cloud::network::controller(
|
|||||||
# Note(EmilienM):
|
# Note(EmilienM):
|
||||||
# We check if DB tables are created, if not we populate Neutron DB.
|
# We check if DB tables are created, if not we populate Neutron DB.
|
||||||
# It's a hack to fit with our setup where we run MySQL/Galera
|
# It's a hack to fit with our setup where we run MySQL/Galera
|
||||||
|
Neutron_config <| |> ->
|
||||||
exec {'neutron_db_sync':
|
exec {'neutron_db_sync':
|
||||||
command => '/usr/bin/neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head',
|
command => '/usr/bin/neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head',
|
||||||
unless => "/usr/bin/mysql neutron -h ${neutron_db_host} -u ${encoded_user} -p${encoded_password} -e \"show tables\" | /bin/grep Tables"
|
unless => "/usr/bin/mysql neutron -h ${neutron_db_host} -u ${encoded_user} -p${encoded_password} -e \"show tables\" | /bin/grep Tables"
|
||||||
|
Reference in New Issue
Block a user