When we move redis_tls_proxy from step2 to step1 (which is the correct
thing to do) via https://review.opendev.org/c/openstack/tripleo-heat-templates/+/777549:
"""
We also move the redis_tls_proxy from step_2/start_order: 3 to step_1
since it actually makes sense to have it run before we start the
redis pcmk bundle at step 2 (i.e. so the slave replica can work right
away from the start).
"""
The problem is that paunch by design does not manage containers moving from stepX to
stepX-1 and so during a minor update, it will create redis_tls_proxy
at step1 but since the previous container has tripleo_config=step2 label
it won't detect that it has to remove it and recreate and it will fail
with:
podman create --name redis_tls_proxy --label config_id=tripleo_step1 --label container_name=redis_tls_proxy
....
Error: error creating container storage: the container name \"redis_tls_proxy\" is already in use by \"556f965b47b044fa48ef8194f2cf0adaad46e8145f1e4afdb0af4d70977ad561\". You have to remove that container to be able to reuse that name.: that name is already in use\
Tested by running at 16.1 -> 16.2 update and we correctly get past this
error and redis is fully up and running.
We need this only in Train as a fresh deployment or ffu is not affected.
Reviewed: https:/ /review. opendev. org/c/openstack /tripleo- heat-templates/ +/795132 /opendev. org/openstack/ tripleo- heat-templates/ commit/ d580a0880809419 e90654dd461a4c6 6e0640f737
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit d580a0880809419 e90654dd461a4c6 6e0640f737
Author: Michele Baldessari <email address hidden>
Date: Mon Jun 7 18:14:17 2021 +0200
[Train-only] Remove redis_tls_proxy if at step2
When we move redis_tls_proxy from step2 to step1 (which is the correct /review. opendev. org/c/openstack /tripleo- heat-templates/ +/777549:
thing to do) via https:/
"""
We also move the redis_tls_proxy from step_2/start_order: 3 to step_1
since it actually makes sense to have it run before we start the
redis pcmk bundle at step 2 (i.e. so the slave replica can work right
away from the start).
"""
The problem is that paunch by design does not manage containers moving from stepX to config= step2 label id=tripleo_ step1 --label container_ name=redis_ tls_proxy
stepX-1 and so during a minor update, it will create redis_tls_proxy
at step1 but since the previous container has tripleo_
it won't detect that it has to remove it and recreate and it will fail
with:
podman create --name redis_tls_proxy --label config_
....
Error: error creating container storage: the container name \"redis_tls_proxy\" is already in use by \"556f965b47b04 4fa48ef8194f2cf 0adaad46e8145f1 e4afdb0af4d7097 7ad561\ ". You have to remove that container to be able to reuse that name.: that name is already in use\
Tested by running at 16.1 -> 16.2 update and we correctly get past this
error and redis is fully up and running.
We need this only in Train as a fresh deployment or ffu is not affected.
Closes-Bug: #1931145 67ca7b9f0285c1e af8211d6e7d
Change-Id: I9bea643511f901