Merge "Rabbitmq: enable quorum for transient queues"
This commit is contained in:
@@ -278,6 +278,11 @@ om_enable_rabbitmq_high_availability: false
|
|||||||
# Only enable quorum queues if you disable om_enable_rabbitmq_high_availability
|
# Only enable quorum queues if you disable om_enable_rabbitmq_high_availability
|
||||||
om_enable_rabbitmq_quorum_queues: true
|
om_enable_rabbitmq_quorum_queues: true
|
||||||
om_enable_queue_manager: true
|
om_enable_queue_manager: true
|
||||||
|
# Enabling om_enable_rabbitmq_transient_quorum_queue will have no effect
|
||||||
|
# without also enabling om_enable_rabbitmq_quorum_queues.
|
||||||
|
# om_enable_rabbitmq_transient_quorum_queue should only be used in conunction
|
||||||
|
# with om_enable_queue_manager.
|
||||||
|
om_enable_rabbitmq_transient_quorum_queue: "{{ om_enable_rabbitmq_quorum_queues | bool and om_enable_queue_manager | bool }}"
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Networking options
|
# Networking options
|
||||||
|
@@ -77,6 +77,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[oslo_concurrency]
|
[oslo_concurrency]
|
||||||
|
@@ -97,6 +97,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[oslo_middleware]
|
[oslo_middleware]
|
||||||
|
@@ -68,6 +68,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if blazar_policy_file is defined %}
|
{% if blazar_policy_file is defined %}
|
||||||
|
@@ -49,6 +49,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if ceilometer_policy_file is defined %}
|
{% if ceilometer_policy_file is defined %}
|
||||||
|
@@ -87,6 +87,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[oslo_middleware]
|
[oslo_middleware]
|
||||||
|
@@ -61,6 +61,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[collect]
|
[collect]
|
||||||
|
@@ -83,6 +83,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[oslo_concurrency]
|
[oslo_concurrency]
|
||||||
|
@@ -106,6 +106,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[oslo_concurrency]
|
[oslo_concurrency]
|
||||||
|
@@ -126,6 +126,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if glance_policy_file is defined %}
|
{% if glance_policy_file is defined %}
|
||||||
|
@@ -88,6 +88,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if heat_policy_file is defined %}
|
{% if heat_policy_file is defined %}
|
||||||
|
@@ -26,6 +26,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[ironic]
|
[ironic]
|
||||||
|
@@ -57,6 +57,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if ironic_policy_file is defined %}
|
{% if ironic_policy_file is defined %}
|
||||||
|
@@ -76,6 +76,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if enable_osprofiler | bool %}
|
{% if enable_osprofiler | bool %}
|
||||||
|
@@ -140,6 +140,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if magnum_policy_file is defined %}
|
{% if magnum_policy_file is defined %}
|
||||||
|
@@ -70,6 +70,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[oslo_middleware]
|
[oslo_middleware]
|
||||||
|
@@ -67,6 +67,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[oslo_middleware]
|
[oslo_middleware]
|
||||||
|
@@ -86,6 +86,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if mistral_policy_file is defined %}
|
{% if mistral_policy_file is defined %}
|
||||||
|
@@ -145,6 +145,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if neutron_policy_file is defined %}
|
{% if neutron_policy_file is defined %}
|
||||||
|
@@ -205,6 +205,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if service_name in nova_cell_services_require_policy_json and nova_policy_file is defined %}
|
{% if service_name in nova_cell_services_require_policy_json and nova_policy_file is defined %}
|
||||||
|
@@ -155,6 +155,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if service_name in nova_services_require_policy_json and nova_policy_file is defined %}
|
{% if service_name in nova_services_require_policy_json and nova_policy_file is defined %}
|
||||||
|
@@ -140,6 +140,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if octavia_policy_file is defined %}
|
{% if octavia_policy_file is defined %}
|
||||||
|
@@ -149,9 +149,24 @@
|
|||||||
loop: "{{ (rabbitmq_queues.stdout | from_json) if rabbitmq_queues is not skipped else [] }}"
|
loop: "{{ (rabbitmq_queues.stdout | from_json) if rabbitmq_queues is not skipped else [] }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
# TODO(mattcress): remove skipping reply and fanout once https://review.opendev.org/c/openstack/oslo.messaging/+/888479 is merged.
|
|
||||||
when: not (item.name is search('reply_') or item.name is search('_fanout'))
|
when: not (item.name is search('reply_') or item.name is search('_fanout'))
|
||||||
|
|
||||||
|
- name: Check if RabbitMQ quorum queues for transient queues need to be configured
|
||||||
|
assert:
|
||||||
|
that: "{{ item.type == 'quorum' }}"
|
||||||
|
fail_msg: >
|
||||||
|
om_enable_rabbitmq_transient_quorum_queue is True but {{ item.name }} is a non-quorum queue.
|
||||||
|
Currently the procedure to migrate to quorum queues is manual.
|
||||||
|
Please follow the process described here: https://docs.openstack.org/kolla-ansible/latest/reference/message-queues/rabbitmq.html#high-availability.
|
||||||
|
Note that this process may take several hours on larger systems, and may cause a degradation in performance at large scale.
|
||||||
|
If you do not wish to enable this feature, set om_enable_rabbitmq_transient_quorum_queue to False.
|
||||||
|
loop: "{{ (rabbitmq_queues.stdout | from_json) if rabbitmq_queues is not skipped else [] }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.name }}"
|
||||||
|
when:
|
||||||
|
- item.name is search('reply_') or item.name is search('_fanout')
|
||||||
|
- om_enable_rabbitmq_transient_quorum_queue | bool
|
||||||
|
|
||||||
run_once: true
|
run_once: true
|
||||||
when:
|
when:
|
||||||
- container_facts.containers['rabbitmq'] is defined
|
- container_facts.containers['rabbitmq'] is defined
|
||||||
|
@@ -82,6 +82,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if tacker_policy_file is defined %}
|
{% if tacker_policy_file is defined %}
|
||||||
|
@@ -26,6 +26,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[oslo_concurrency]
|
[oslo_concurrency]
|
||||||
|
@@ -87,6 +87,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if enable_osprofiler | bool %}
|
{% if enable_osprofiler | bool %}
|
||||||
|
@@ -73,6 +73,9 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if watcher_policy_file is defined %}
|
{% if watcher_policy_file is defined %}
|
||||||
|
@@ -143,4 +143,7 @@ amqp_durable_queues = true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
{% if om_enable_rabbitmq_quorum_queues | bool %}
|
||||||
rabbit_quorum_queue = true
|
rabbit_quorum_queue = true
|
||||||
|
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
|
||||||
|
rabbit_transient_quorum_queue = true
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Make use of quorum queues for transient/fanout queues.
|
||||||
|
This helps OpenStack services to be more resilient to message broker
|
||||||
|
failures.
|
||||||
|
This feature is enabled by default.
|
||||||
|
You can disable it by setting the following in your ``globals.yml``:
|
||||||
|
``om_enable_rabbitmq_transient_quorum_queue: false``.
|
||||||
|
Notice that this disables quorum queues for all transient/fanout message
|
||||||
|
exchanges and likely reduces the resilience of the system.
|
||||||
|
See also `LP#2078339 <https://bugs.launchpad.net/kolla-ansible/+bug/2078339>`_.
|
@@ -13,7 +13,38 @@ function upgrade {
|
|||||||
source $KOLLA_ANSIBLE_VENV_PATH/bin/activate
|
source $KOLLA_ANSIBLE_VENV_PATH/bin/activate
|
||||||
|
|
||||||
kolla-ansible certificates -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/certificates
|
kolla-ansible certificates -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/certificates
|
||||||
|
# Skip rabbitmq-ha-precheck before the queues are migrated.
|
||||||
|
kolla-ansible prechecks -i ${RAW_INVENTORY} --skip-tags rabbitmq-ha-precheck -vvv &> /tmp/logs/ansible/upgrade-prechecks-pre-rabbitmq
|
||||||
|
|
||||||
|
# NOTE(SvenKieske): As om_enable_rabbitmq_transient_quorum_queue now also
|
||||||
|
# enables quorum_queues for fanout/reply queues in Epoxy, we need
|
||||||
|
# to perform a migration to durable queues.
|
||||||
|
# TODO(SvenKieske): Remove these steps in F Cycle.
|
||||||
|
SERVICE_TAGS="heat,keystone,neutron,nova"
|
||||||
|
if [[ $SCENARIO == "zun" ]] || [[ $SCENARIO == "cephadm" ]]; then
|
||||||
|
SERVICE_TAGS+=",cinder"
|
||||||
|
fi
|
||||||
|
if [[ $SCENARIO == "scenario_nfv" ]]; then
|
||||||
|
SERVICE_TAGS+=",barbican"
|
||||||
|
fi
|
||||||
|
if [[ $SCENARIO == "ironic" ]]; then
|
||||||
|
SERVICE_TAGS+=",ironic"
|
||||||
|
fi
|
||||||
|
if [[ $SCENARIO == "masakari" ]]; then
|
||||||
|
SERVICE_TAGS+=",masakari"
|
||||||
|
fi
|
||||||
|
if [[ $SCENARIO == "ovn" ]] || [[ $SCENARIO == "octavia" ]]; then
|
||||||
|
SERVICE_TAGS+=",octavia"
|
||||||
|
fi
|
||||||
|
if [[ $SCENARIO == "magnum" ]]; then
|
||||||
|
SERVICE_TAGS+=",magnum,designate"
|
||||||
|
fi
|
||||||
|
kolla-ansible stop -i ${RAW_INVENTORY} -vvv --tags $SERVICE_TAGS --yes-i-really-really-mean-it --ignore-missing &> /tmp/logs/ansible/stop
|
||||||
|
kolla-ansible genconfig -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/genconfig
|
||||||
|
kolla-ansible rabbitmq-reset-state -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/rabbitmq-reset-state
|
||||||
|
# Include rabbitmq-ha-precheck this time to confirm all queues have migrated.
|
||||||
kolla-ansible prechecks -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/upgrade-prechecks
|
kolla-ansible prechecks -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/upgrade-prechecks
|
||||||
|
|
||||||
kolla-ansible pull -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/pull-upgrade
|
kolla-ansible pull -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/pull-upgrade
|
||||||
kolla-ansible upgrade -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/upgrade
|
kolla-ansible upgrade -i ${RAW_INVENTORY} -vvv &> /tmp/logs/ansible/upgrade
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user