Update keystone db task to wait for all databases

This change updates the keystone db task to wait for the database tasks
on all nodes to complete before getting run. I believe that this is
causing the galera cluster to become corrupt because the following
condition occurs:

- primary-db comes up
- secondary-db comes up and syncs from primary-db
- teriary-db comes up and syncs from secondary-db while keystone task
  runs on primary-db causing cluster to become desynced
- primary-db ends up trying to sync from the cluster and everything
  falls apart

The idea is to wait until the cluster has completely formed before
attempting to start openstack deployment. Additionally, this change
removes the one-by-one on the secondary database tasks which was added
as an attempt to address the cluster creation issues.

Change-Id: I4d62728922bb3a74576c419a934c1afd9187a35d
Closes-Bug: #1548271
This commit is contained in:
Alex Schultz 2016-03-23 13:22:58 -06:00
parent 5eefd1a636
commit 0318216c05
2 changed files with 0 additions and 3 deletions

View File

@ -7,8 +7,6 @@
reexecute_on: [deploy_changes]
cross-depends:
- name: primary-database
strategy:
type: one_by_one
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/database/database.pp
puppet_modules: /etc/puppet/modules

View File

@ -58,7 +58,6 @@
requires: [primary-database, database]
cross-depends:
- name: /(primary-)?database/
role: self
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/keystone/db.pp
puppet_modules: /etc/puppet/modules