commit 49fc109bb9ad7163730f7d08e7f8a5217fe01c68
Author: Jose Luis Franco Arza <email address hidden>
Date: Fri Feb 14 16:49:10 2020 +0100
Configure Undercloud hostname in the overcloud during upgrade.
Due to IPv6, the undercloud's container registry had to change
from an IP address in the full hostname [0]. This impacts into
the upgrade to Train as the overcloud nodes do not contain the
Undercloud's host in /etc/hosts as well as it's missing in the
registries.conf.
This patch adds two new upgrade tasks to handle:
1. container-image-prepare: Ensure that /etc/hosts file contains
an entry for the Undercloud's ctrlplane hostname. This task makes
use of the global_vars ansible parameter undercloud_hosts_entry
which contains a list of the undercloud's ctrlplan hostnames (calling
getent hosts underneath).
2. podman-baremetal-ansible: There is already an upgrade task which
takes care of reconfiguring podman during the upgrade, so this patch
simply sets up the right container unsecure registries and passes it
into the reconfiguring task. It also changes the (step | int) into
step|int as the upgrade tasks require step|int condition to decide in
which step_X playbook fall, otherwise the task will appear in every
step_X playbook.
Reviewed: https:/ /review. opendev. org/708453 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=49fc109bb9a d7163730f7d08e7 f8a5217fe01c68
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 49fc109bb9ad716 3730f7d08e7f8a5 217fe01c68
Author: Jose Luis Franco Arza <email address hidden>
Date: Fri Feb 14 16:49:10 2020 +0100
Configure Undercloud hostname in the overcloud during upgrade.
Due to IPv6, the undercloud's container registry had to change conf.
from an IP address in the full hostname [0]. This impacts into
the upgrade to Train as the overcloud nodes do not contain the
Undercloud's host in /etc/hosts as well as it's missing in the
registries.
This patch adds two new upgrade tasks to handle:
1. container- image-prepare: Ensure that /etc/hosts file contains hosts_entry
an entry for the Undercloud's ctrlplane hostname. This task makes
use of the global_vars ansible parameter undercloud_
which contains a list of the undercloud's ctrlplan hostnames (calling
getent hosts underneath).
2. podman- baremetal- ansible: There is already an upgrade task which
takes care of reconfiguring podman during the upgrade, so this patch
simply sets up the right container unsecure registries and passes it
into the reconfiguring task. It also changes the (step | int) into
step|int as the upgrade tasks require step|int condition to decide in
which step_X playbook fall, otherwise the task will appear in every
step_X playbook.
[0] - Iac6efde9dd2839 06274d95c3a239b 4b882ec052e
Depends-On: https:/ /review. opendev. org/708450 eed38c9d9274fa5 88b6dd19488 2122687b1556eed c11c1f0d6f)
Closes-Bug: #1863598
Change-Id: Ifadc797f33d759
(cherry picked from commit 495c5c9de871157