commit d019bd13a3497736516c39d03c040668616b4efd
Author: Matt Crees <email address hidden>
Date: Wed Jan 17 10:54:05 2024 +0000
Fix OpenSearch upgrade tasks idempotency
Shard allocation is disabled at the start of the OpenSearch upgrade
task. This is set as a transient setting, meaning it will be removed
once the containers are restarted. However, if there is not change in
the OpenSearch container it will not be restarted so the cluster is left
in a broken state: unable to allocate shards.
This patch moves the pre-upgrade tasks to within the handlers, so shard
allocation and the flush are only performed when the OpenSearch
container is going to be restarted.
Closes-Bug: #2049512
Change-Id: Ia03ba23bfbde7d50a88dc16e4f117dec3c98a448
(cherry picked from commit e502b65ba1ef7ae0b321ed001948d96d29c57f08)
Reviewed: https:/ /review. opendev. org/c/openstack /kolla- ansible/ +/914208 /opendev. org/openstack/ kolla-ansible/ commit/ d019bd13a349773 6516c39d03c0406 68616b4efd
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.1
commit d019bd13a349773 6516c39d03c0406 68616b4efd
Author: Matt Crees <email address hidden>
Date: Wed Jan 17 10:54:05 2024 +0000
Fix OpenSearch upgrade tasks idempotency
Shard allocation is disabled at the start of the OpenSearch upgrade
task. This is set as a transient setting, meaning it will be removed
once the containers are restarted. However, if there is not change in
the OpenSearch container it will not be restarted so the cluster is left
in a broken state: unable to allocate shards.
This patch moves the pre-upgrade tasks to within the handlers, so shard
allocation and the flush are only performed when the OpenSearch
container is going to be restarted.
Closes-Bug: #2049512 50a88dc16e4f117 dec3c98a448 0b321ed001948d9 6d29c57f08)
Change-Id: Ia03ba23bfbde7d
(cherry picked from commit e502b65ba1ef7ae