RETIRED, Lightweight composition layer for Puppet TripleO
Go to file
Michele Baldessari cb5102003b 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-20 06:52:53 +00:00
doc Follow the new PTI for document build 2018-02-28 14:42:12 +08:00
files Qdr: InternalTLS support. 2019-06-24 17:05:16 -04:00
lib Fix interface_for_ip for newer facter versions 2019-07-08 15:30:11 +00:00
manifests Make the rabbitmq-ready exec more stringent 2019-08-20 06:52:53 +00:00
releasenotes Add dateext and related parameters for logrotate 2019-07-10 23:50:17 +00:00
spec mysql/client: create tripleo.cnf everytime 2019-08-09 12:37:31 -04:00
templates Add dateext and related parameters for logrotate 2019-07-10 23:50:17 +00:00
zuul.d Remove scenario008 jobs 2019-06-13 18:57:33 -04:00
.gitignore Update gitignore not to exclude fixture hieradata 2017-05-17 14:45:35 -06:00
.gitreview OpenDev Migration Patch 2019-04-19 19:35:30 +00:00
.sync.yml Initial msync run for all Puppet OpenStack modules 2015-08-18 14:30:54 +02:00
Gemfile Update Gemfile for stable/rocky 2018-08-28 14:04:03 +02:00
LICENSE Add basic structure for a Puppet module 2015-02-02 11:39:21 -05:00
Puppetfile_extras Fix ntp module version to an existing tag/branch 2019-04-09 09:26:49 +02:00
README.md Add release note link in README 2018-06-27 22:47:34 +08:00
Rakefile Composable HA 2017-01-25 19:32:31 +00:00
bindep.txt Add Puppet package to bindep, for module build 2017-10-27 13:50:15 -07:00
metadata.json Prepare 9.5.0 release (rocky) 2019-06-18 10:42:01 -04:00
setup.cfg Fixes license to explicitly be Apache 2.0 2017-10-09 11:06:29 -04:00
setup.py chmod +x setup.py 2017-10-06 12:28:56 -07:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/rocky 2018-08-24 14:42:44 +00:00

README.md

Team and repository tags

Team and repository tags

puppet-tripleo

Lightweight composition layer for Puppet TripleO.

Contributing