puppet-tripleo/manifests
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
..
certmonger Make puppet-tripleo compatible with latest puppet-rabbitmq 2019-08-19 21:27:33 +02:00
firewall Quote the hiera dot notation 2019-06-15 08:35:33 -06:00
haproxy Ensure we set $haproxy_firewall_rules variable 2019-08-08 10:02:48 +02:00
host Use validate_legacy 2019-02-25 22:51:07 +01:00
network Remove Midonet, Cassandra and Zookeeper 2019-08-06 20:48:24 -04:00
pacemaker Allow VIP resource to have customized ops 2018-09-03 06:22:44 +00:00
packages packages: run upgrade at 'setup' stage 2016-10-14 18:17:30 -04:00
profile Make the rabbitmq-ready exec more stringent 2019-08-19 19:56:35 +00:00
releasenotes/notes New profile to configure libvirt-guests on compute host 2018-07-13 17:42:24 +02:00
stunnel Force stunnel to use TLSv1.2 2018-04-19 13:31:46 +00:00
config.pp Introduce tripleo::config 2019-06-04 18:07:21 +00:00
fencing.pp Cleanup uuid == docker 2019-07-15 08:02:24 -06:00
firewall.pp Replace hiera('service_names') by hiera('enabled_services') 2019-07-05 13:25:34 -04:00
haproxy.pp Merge "Use nova_metadata related hiera and make cell aware" 2019-08-12 12:53:07 +00:00
init.pp Implement firewalling in tripleo::firewall 2015-07-15 11:58:46 +02:00
keepalived.pp Fix keepalived VIP monitoring script 2019-04-18 11:47:10 -06:00
masquerade_networks.pp Fix Undercloud masquerading firewall rules 2018-10-23 07:24:31 +00:00
noop.pp Add class to set noop on various puppet resources 2015-07-03 17:16:07 -04:00
packages.pp noop package installations inside containers 2019-01-26 11:19:17 +01:00
redis_notification.pp Loadbalancer: Add support for Redis 2015-04-16 21:13:40 +02:00
stunnel.pp Lower the default stunnel log level 2018-05-28 13:40:29 +02:00
tls_proxy.pp Support TLS deployments with KernelDisableIPv6 enabled 2019-07-08 20:59:13 +02:00
trusted_ca.pp Add manifests to inject and trust CA certificates 2016-08-23 14:36:20 +00:00
trusted_cas.pp Add manifests to inject and trust CA certificates 2016-08-23 14:36:20 +00:00