aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/manifests
diff options
context:
space:
mode:
authorSofer Athlan-Guyot <chem@sathlan.org>2016-06-16 17:58:55 +0200
committerSofer Athlan-Guyot <chem@sathlan.org>2016-06-16 20:42:09 +0200
commit7b22f2d8305931b8f556f8a6a2d049a9b9ac90a9 (patch)
treec8024b52a1182c1a372412a15c632fea2a835e22 /puppet/manifests
parent4bd42ea849e6d50d16610377b5e89504f5a4f412 (diff)
Colocation make a group for pcmk nova resources.
This ensure that the entire nova-* service form a pacemaker group and that somehow pacemaker doesn't try to restart services elsewhere. Closes-bug: 1592776 Change-Id: I629db624f4179663696ffe8c80a567bf6d6b2e16
Diffstat (limited to 'puppet/manifests')
-rw-r--r--puppet/manifests/overcloud_controller_pacemaker.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/puppet/manifests/overcloud_controller_pacemaker.pp b/puppet/manifests/overcloud_controller_pacemaker.pp
index 7710217c..13271116 100644
--- a/puppet/manifests/overcloud_controller_pacemaker.pp
+++ b/puppet/manifests/overcloud_controller_pacemaker.pp
@@ -696,6 +696,13 @@ password=\"${mysql_root_password}\"",
require => [Pacemaker::Resource::Service[$::nova::params::consoleauth_service_name],
Pacemaker::Resource::Ocf['openstack-core']],
}
+ pacemaker::constraint::colocation { 'nova-consoleauth-with-openstack-core':
+ source => "${::nova::params::consoleauth_service_name}-clone",
+ target => 'openstack-core-clone',
+ score => 'INFINITY',
+ require => [Pacemaker::Resource::Service[$::nova::params::consoleauth_service_name],
+ Pacemaker::Resource::Ocf['openstack-core']],
+ }
pacemaker::constraint::base { 'nova-consoleauth-then-nova-vncproxy-constraint':
constraint_type => 'order',
first_resource => "${::nova::params::consoleauth_service_name}-clone",