summaryrefslogtreecommitdiffstats
path: root/manifests/profile/pacemaker/neutron
diff options
context:
space:
mode:
authorGiulio Fidente <gfidente@redhat.com>2016-06-29 12:14:20 +0200
committerGiulio Fidente <gfidente@redhat.com>2016-06-30 08:34:08 +0000
commit0fc94f1266ea1b5aebb2a8eec1679135c23b97cd (patch)
tree2d753c4bd418af73d5b9fd4770ce3a63381e3e39 /manifests/profile/pacemaker/neutron
parent5071c769fa5f1ae9f85f380a98013f6b4acc6b9b (diff)
Nova API and Neutron server should run database creation in step 3
We perform the Galera setup in step 2 so there is no guarantee that the database will be available in that same step [1]. We used to implement a dependency in puppet using the 'galera-ready' resource (clustercheck) but this is not possible with roles because we also don't have any guarantee about clustercheck being installed on the same node. Because of the above all services must create/sync their databases in a later step. This patch fixes Nova API and Neutron Server, the other services use step 3 already. 1. https://github.com/openstack/tripleo-heat-templates/blob/master/puppet/services/README.rst Change-Id: I22750ffb64afbe40b5560a6a0d0dabc5b8927d32
Diffstat (limited to 'manifests/profile/pacemaker/neutron')
-rw-r--r--manifests/profile/pacemaker/neutron/server.pp3
1 files changed, 1 insertions, 2 deletions
diff --git a/manifests/profile/pacemaker/neutron/server.pp b/manifests/profile/pacemaker/neutron/server.pp
index 0bad1b9..13dfd9b 100644
--- a/manifests/profile/pacemaker/neutron/server.pp
+++ b/manifests/profile/pacemaker/neutron/server.pp
@@ -36,9 +36,8 @@ class tripleo::profile::pacemaker::neutron::server (
include ::tripleo::profile::pacemaker::neutron
$sync_db = ($::hostname == downcase($pacemaker_master))
- if $step >= 2 and $sync_db {
+ if $step >= 3 and $sync_db {
include ::neutron::db::mysql
- Exec<| title == 'galera-ready'|> -> Class['neutron::db::mysql']
}
if $step >= 4 or ( $step >= 3 and $sync_db ) {