openstack-ansible/playbooks
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
..
defaults/repo_packages Merge "Implement Ceilometer" 2015-07-09 17:50:10 +00:00
inventory Add support for specifying custom static routes 2015-06-29 19:26:55 +00:00
library Merge "Restart mysql when config changed" 2015-07-15 15:38:48 +00:00
plugins Added openstack_kernel options for gc_thresh 2015-07-09 10:20:31 -05:00
roles Fix rabbitmq playbook to allow upgrades 2015-07-21 18:32:52 -05:00
vars/configs SSL support for haproxy 2015-07-13 16:05:40 +00:00
ansible.cfg Added openstack_kernel options for gc_thresh 2015-07-09 10:20:31 -05:00
galera-install.yml Remove {{ from "with_items" and "when" statements 2015-07-16 15:09:41 +01:00
haproxy-install.yml SSL support for haproxy 2015-07-13 16:05:40 +00:00
lxc-containers-create.yml Fixed container user create issue 2015-05-04 21:31:13 +00:00
lxc-containers-destroy.yml Ensure flush-net-cache on local host 2015-06-28 17:25:28 +00:00
lxc-hosts-setup.yml Moved the playbook vars to defaults 2015-05-14 12:32:36 -05:00
memcached-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
openstack-hosts-setup.yml Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
os-ceilometer-install.yml Implement Ceilometer 2015-07-07 19:31:04 +00:00
os-cinder-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
os-glance-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
os-heat-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
os-horizon-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
os-keystone-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
os-neutron-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
os-nova-install.yml Merge "Add role system-crontab-coordination" 2015-07-02 17:39:53 +00:00
os-swift-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
os-tempest-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
rabbitmq-install.yml Fix rabbitmq playbook to allow upgrades 2015-07-21 18:32:52 -05:00
repo-build.yml Updated the repo scripts 2015-04-11 17:44:59 -05:00
repo-clone-mirror.yml Updated the clone process to exclude unneeded files 2015-07-02 08:29:36 -05:00
repo-install.yml Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
repo-server.yml Revert "changed container bind mounts to use abspath" 2015-06-23 17:38:44 +00:00
repo-store-source.yml Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
rsyslog-install.yml Add role system-crontab-coordination 2015-06-30 10:06:11 +01:00
setup-everything.yml Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
setup-hosts.yml Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
setup-infrastructure.yml Add new rsyslog server role 2015-03-15 20:07:56 +00:00
setup-openstack.yml Implement Ceilometer 2015-07-07 19:31:04 +00:00
utility-install.yml Added apt update tasks to everything using apt 2015-06-16 13:13:58 -05:00