Commit Graph

4 Commits

Author SHA1 Message Date
Nate Potter
091116d509 Allow customization of db sync command line
Add $extra_params parameter to neutron::db::sync class to
allow end users to add command line parameters to db sync command.

Change-Id: Ideeeb70115bcec8526444c142b54890707bfbf61
Partial-bug: #1472740
2015-11-16 19:10:23 +00:00
Clayton O'Neill
fdf49deed8 dbsync should only notify services that use the db
When db-sync is run, only services that that talk to the database need
to be restarted.  This introduces a new tag for that type of services
(neturon-db-sync-service).  Currently only neutron-server talks to mysql
directly, so it is the only service with this tag applied.

Change-Id: I0ac15865b408fe9acb643e800836da8b3eeb7827
2015-10-05 21:10:14 +00:00
Yanis Guenane
65aecc3be8 Make package change run the db_sync
Package upgrades need to notify the exec so that db migrations can be
run on upgrade.

Change-Id: I124287ce0b4abbee67d48412454bbc1de35c3b55
2015-08-13 11:34:00 +02:00
Yanis Guenane
6d4ff50c5b Creation of neutron::db::sync
In order to standardize the way dbsync are run across our modules,
we create a new class neutron::db::sync.
This class will be included if sync_db is enabled.

By making this transition the neutron::db::sync class
can be returned by the ENC.

A use case would be in an highly available environment with 3 galera
nodes, include neutron::server on every node with sync_db set to false
and have the ENC return ceilometer::db::sync just for one node.

Change-Id: I81e824e3e9e8f901b2a0084c7a5ec42c53781864
2015-07-10 17:46:56 +02:00