puppet-tripleo/manifests/profile/pacemaker
Michele Baldessari 3a8c2b0dc7 Make the rabbitmq-ready exec more stringent
Currently we use the following command to determine if rabbit is
up and running *and* ready to service requests:
rabbitmqctl eval "rabbit_mnesia:is_clustered()." | grep -q true

Now we have occasionally observed that rabbitmqctl policies commands
which are executed after said exec['rabbitmq-ready'] will fail.

One potential reason is that is_clustered() can return true *before*
the rabbit app is actually running. In fact we can see it does
return true even though the app is stopped:
()[root@controller-1 /]$ rabbitmqctl stop_app
Stopping rabbit application on node rabbit@controller-1 ...
()[root@controller-1 /]$ rabbitmqctl eval 'rabbit_mnesia:is_clustered().'
true

Let's switch to a combination of commands that check for the cluster to
be up *and* the rabbitmq app to be running:
()[root@controller-1 /]$ rabbitmqctl stop_app
Stopping rabbit application on node rabbit@controller-1 ...
()[root@controller-1 /]$ rabbitmqctl eval 'rabbit_nodes:is_running(node(), rabbit).'
false

Suggested-By: Bogdan Dobrelya <bdobreli@redhat.com>
Closes-Bug: #1835615

Change-Id: I29f779145a39cd16374a91626f7fae1581a18224
2019-08-19 19:56:35 +00:00
..
cinder Initial support for tls_priorities 2019-07-27 07:59:45 +00:00
database Initial support for tls_priorities 2019-07-27 07:59:45 +00:00
manila Initial support for tls_priorities 2019-07-27 07:59:45 +00:00
ceph_nfs.pp Fix ceph-nfs duplicate property 2018-10-16 16:10:00 +02:00
clustercheck.pp Use clustercheck credentials to poll galera state in container 2017-07-31 12:39:51 -04:00
compute_instanceha.pp Instance HA support 2017-12-06 11:42:53 +01:00
haproxy.pp Only assign redis_vip and redis_bind_opts if enabled 2019-07-26 15:40:56 +02:00
haproxy_bundle.pp Initial support for tls_priorities 2019-07-27 07:59:45 +00:00
manila.pp Move manila backend configuration from pacemaker to base 2017-09-01 11:37:20 +02:00
ovn_dbs_bundle.pp Initial support for tls_priorities 2019-07-27 07:59:45 +00:00
ovn_northd.pp Fix generating connections to OVN db 2019-02-12 11:15:53 +01:00
rabbitmq.pp Support separate oslo.messaging services for RPC and Notifications 2018-03-20 12:55:02 -04:00
rabbitmq_bundle.pp Make the rabbitmq-ready exec more stringent 2019-08-19 19:56:35 +00:00