RETIRED, Lightweight composition layer for Puppet TripleO
Go to file
Michele Baldessari 914d66ad81 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:40 +00:00
doc Follow the new PTI for document build 2018-02-28 14:42:12 +08:00
files Qdr: InternalTLS support. 2019-03-28 16:28:05 -04:00
lib Adding a udev rule to save sriov interface name before configuring switchdev 2019-02-20 03:27:25 -05:00
manifests Make the rabbitmq-ready exec more stringent 2019-08-20 06:52:40 +00:00
releasenotes Add dateext and related parameters for logrotate 2019-07-09 06:44:07 +00:00
spec Fix amphora provider driver description 2019-07-08 07:27:19 +00:00
templates Add dateext and related parameters for logrotate 2019-07-09 06:44:07 +00:00
zuul.d Remove scenario008 jobs 2019-06-13 22:18:32 +00:00
.gitignore Dissuade .gitignore references to personal tools 2018-10-08 11:47:08 +08:00
.gitreview Merge "Update .gitreview for stable/stein" into stable/stein 2019-04-25 22:46:28 +00:00
.sync.yml Initial msync run for all Puppet OpenStack modules 2015-08-18 14:30:54 +02:00
Gemfile Load puppet-openstack_spec_helper locally during tests 2018-02-12 10:53:40 +08: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:22:52 +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 Bump metadata for a stein release 2019-07-02 11:03:37 -06:00
setup.cfg Update mailinglist from dev to discuss 2018-12-05 09:46:02 +08:00
setup.py chmod +x setup.py 2017-10-06 12:28:56 -07:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/stein 2019-04-18 14:56:51 +00:00

README.md

Team and repository tags

Team and repository tags

puppet-tripleo

Lightweight composition layer for Puppet TripleO.

Contributing