Comment 7 for bug 1863598

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/train)

Reviewed: https://review.opendev.org/708453
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=49fc109bb9ad7163730f7d08e7f8a5217fe01c68
Submitter: Zuul
Branch: stable/train

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.

    [0] - Iac6efde9dd283906274d95c3a239b4b882ec052e

    Depends-On: https://review.opendev.org/708450
    Closes-Bug: #1863598
    Change-Id: Ifadc797f33d759eed38c9d9274fa588b6dd19488
    (cherry picked from commit 495c5c9de8711572122687b1556eedc11c1f0d6f)