diff options
author | Pradeep Kilambi <pkilambi@redhat.com> | 2016-07-20 09:06:20 -0400 |
---|---|---|
committer | Pradeep Kilambi <pkilambi@redhat.com> | 2016-07-20 15:11:09 +0000 |
commit | a2728596c036029d91bcd76c1f36272b138c5b87 (patch) | |
tree | 0c9549b900b3aedb329321f14c278337bd050798 /manifests | |
parent | e121f195c8e8e33650b5b8a6472191b3f6ea5d21 (diff) |
Add base constraint so gnocchi metricd is tied to core-clone
Currently if we manually restart the cluster saometimes gnocchi statsd
doesnt comeup as galera is not up yet. This should tie the metrics to
core and follow the order.
Closes-bug: #1604860
Change-Id: I5ec29622938336410b91785ca49b410bcdd30cdd
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/profile/pacemaker/gnocchi.pp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/profile/pacemaker/gnocchi.pp b/manifests/profile/pacemaker/gnocchi.pp index 98d1b36..cbe7ea1 100644 --- a/manifests/profile/pacemaker/gnocchi.pp +++ b/manifests/profile/pacemaker/gnocchi.pp @@ -68,6 +68,15 @@ class tripleo::profile::pacemaker::gnocchi ( if $step >= 5 and $pacemaker_master { + pacemaker::constraint::base { 'keystone-then-gnocchi-metricd-constraint': + constraint_type => 'order', + first_resource => 'openstack-core-clone', + second_resource => "${::gnocchi::params::metricd_service_name}-clone", + first_action => 'start', + second_action => 'start', + require => [Pacemaker::Resource::Service[$::gnocchi::params::metricd_service_name], + Pacemaker::Resource::Ocf['openstack-core']], + } pacemaker::constraint::base { 'gnocchi-metricd-then-gnocchi-statsd-constraint': constraint_type => 'order', first_resource => "${::gnocchi::params::metricd_service_name}-clone", |