openstack-ansible/scripts
git-harry 6ea86e6274
Fix rabbitmq playbook to allow upgrades
The rabbitmq playbook is designed to run in parallel across the cluster.
This causes an issue when upgrading rabbitmq to a new major or minor
version because RabbitMQ does not support doing an online migration of
datasets between major versions. while a minor release can be upgrade
while online it is recommended to bring down the cluster to do any
upgrade actions. The current configuration takes no account of this.

Reference:
https://www.rabbitmq.com/clustering.html#upgrading for further details.

* A new variable has been added called `rabbitmq_upgrade`. This is set to
  false by default to prevent a new version being installed unintentionally.
  To run the upgrade, which will shutdown the cluster, the variable can be
  set to true on the commandline:

  Example:
    openstack-ansible -e rabbitmq_upgrade=true \
    rabbitmq-install.yml

* A new variable has been added called `rabbitmq_ignore_version_state`
  which can be set "true" to ignore the package and version state tasks.
  This has been provided to allow a deployer to rerun the plays in an
  environment where the playbooks have been upgraded and the default
  version of rabbitmq has changed within the role and the deployer has
  elected to upgraded the installation at that time. This will ensure a
  deployer is able to recluster an environment as needed without
  effecting the package state.

  Example:
    openstack-ansible -e rabbitmq_ignore_version_state=true \
    rabbitmq-install.yml

* A new variable has been added `rabbitmq_primary_cluster_node` which
  allows a deployer to elect / set the primary cluster node in an
  environment. This variable is used to determine the restart order
  of RabbitMQ nodes. IE this will be the last node down and first one
  up in an environment. By default this variable is set to:
  rabbitmq_primary_cluster_node: "{{ groups['rabbitmq_all'][0] }}"

scripts/run-upgrade.sh has been modified to pass 'rabbitmq_upgrade=true'
on the command line so that RabbitMQ can be upgraded as part of the
upgrade between OpenStack versions.

DocImpact
Change-Id: I17d4429b9b94d47c1578dd58a2fb20698d1fe02e
Closes-bug: #1474992
2015-07-21 18:32:52 -05:00
..
bootstrap-aio.sh Wait until mongo responds after restart 2015-07-10 15:20:29 +01:00
bootstrap-ansible.sh Upgrade to ansible 1.9.2 2015-06-26 10:37:41 -04:00
gate-check-commit.sh Adds retries 2015-07-17 10:00:06 -05:00
gate-check-docs.sh Add Sphinx machinery and initial docs. 2015-05-14 10:50:05 -04:00
gate-check-lint.sh Ensure that flake8 runs against all python files 2015-07-09 13:06:23 +01:00
inventory-manage.py Set default inventory file for inventory-manage.py 2015-07-07 10:38:02 +00:00
os-ansible-role-requirements.py Fix incorrect variables in ansible role scripts 2015-03-19 11:35:56 -05:00
osad-aio-heat-template.yml Set default pass in aio scripts to be random 2015-06-16 08:54:26 +00:00
pw-token-gen.py Set permissions on user_secrets.yml to 0600 2015-06-11 20:39:46 +00:00
run-aio-build.sh Restart mysql when config changed 2015-07-12 18:04:10 +01:00
run-playbooks.sh Implement Ceilometer 2015-07-07 19:31:04 +00:00
run-tempest.sh Create Junit XML Report from tempest run 2015-06-29 14:38:14 -05:00
run-upgrade.sh Fix rabbitmq playbook to allow upgrades 2015-07-21 18:32:52 -05:00
scripts-library.sh add option to use dd for swapfile creation 2015-05-27 09:02:20 -07:00
sources-branch-updater.sh Updated master to the latest SHAs - 22.06.2015 2015-06-24 15:50:42 +00:00
teardown.sh Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
update-revision.sh Updated master to the latest SHAs - 22.06.2015 2015-06-24 15:50:42 +00:00