Ensure neutron agents & rabbitmq do not restart when upgrading

This change adds neutron_agent and rabbitmq_all groups to the upgrade
process to ensure new container config does not cause these two
container types to restart.

> While the neutron_agents services have been moved on-to baremetal,
  the old container types will still exist and will have an active
  workload on them. Ensureing we guard against container restarts
  for these services will help deployers maximize uptime during the P>Q
  upgrade.

Change-Id: Ia9cfd8693af3ff2077638dd3c3935b9fec48a4c2
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-02-06 09:56:32 -06:00 committed by Kevin Carter (cloudnull)
parent c62647e8d4
commit 3ce93834dd
2 changed files with 6 additions and 6 deletions

View File

@ -149,7 +149,7 @@ Before installing the infrastructure and OpenStack, update the host machines.
.. code-block:: console
# openstack-ansible setup-hosts.yml --limit '!galera_all'
# openstack-ansible setup-hosts.yml --limit '!galera_all:!neutron_agent:!rabbitmq_all'
This command is the same setting up hosts on a new installation. The
``galera_all`` host group is excluded to prevent reconfiguration and
@ -163,7 +163,7 @@ Update the Galera container configuration independently.
.. code-block:: console
# openstack-ansible lxc-containers-create.yml -e \
'lxc_container_allow_restarts=false' --limit galera_all
'lxc_container_allow_restarts=false' --limit 'galera_all:neutron_agent:rabbitmq_all'
This command is a subset of the host setup playbook, limited to the
``galera_all`` host group. The configuration of those containers is

View File

@ -177,10 +177,10 @@ function main {
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/user-secrets-adjustment.yml")
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/pip-conf-removal.yml")
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/ceph-galaxy-removal.yml")
# we don't want to trigger galera container restarts yet
RUN_TASKS+=("setup-hosts.yml --limit '!galera_all'")
# add new container config to galera containers but don't restart
RUN_TASKS+=("lxc-containers-create.yml -e 'lxc_container_allow_restarts=false' --limit galera_all")
# we don't want to trigger container restarts for these groups yet
RUN_TASKS+=("setup-hosts.yml --limit '!galera_all:!neutron_agent:!rabbitmq_all'")
# add new container config to containers but don't restart
RUN_TASKS+=("lxc-containers-create.yml -e 'lxc_container_allow_restarts=false' --limit 'galera_all:neutron_agent:rabbitmq_all'")
# setup infra
RUN_TASKS+=("unbound-install.yml")
RUN_TASKS+=("repo-install.yml")