tripleo-validations/roles/check_uc_hostname
omcgonag 5f375a6a0d Add validation to check DockerInsecureRegistryAddress matches the UC hostname
One of the issues identified in the FFU testing was that the
configured DockerInsecureRegistryAddress parameter was not pointing at
the right UC hostname.

Causing issues when retrieving the containers.

This validation retrieve the value for DockerInsecureRegistryAddress
configured in containers-prepare-parameter.yaml file and matches it to
the UC hostname configured in the undercloud.conf.

Co-Authored-By: Daniel Bengtsson <dbengt@redhat.com>
Co-Authored-By: Gaël Chamoulaud <gchamoul@redhat.com>
Change-Id: Iab2e8823996d305d6d8807bb93f4d2f6e1c96906
(cherry picked from commit ea453ca45e)
2021-05-11 16:57:35 +02:00
..
defaults Add validation to check DockerInsecureRegistryAddress matches the UC hostname 2021-05-11 16:57:35 +02:00
molecule/default Add validation to check DockerInsecureRegistryAddress matches the UC hostname 2021-05-11 16:57:35 +02:00
tasks Add validation to check DockerInsecureRegistryAddress matches the UC hostname 2021-05-11 16:57:35 +02:00
README.md Add validation to check DockerInsecureRegistryAddress matches the UC hostname 2021-05-11 16:57:35 +02:00

README.md

Check-uc-hostname

Add Ansible role to check DockerInsecureRegistryAddress matches the UC hostname.

Requirements

This role will be executed pre Overcloud Update, and post Update

Role Variables

  • check_uc_hostname_debug: <'false'> -- debugging mode.
  • check_uc_hostname_containers: <'{{ansible_env.HOME}}/containers-prepare-parameter.yaml'> -- Sets the default path to the containers-prepare-parameters.yaml file on the Undercloud.
  • check_uc_hostname_undercloud: <'{{ ansible_env.HOME }}/undercloud.conf'> -- Sets the default path to the undercloud.conf file on the Undercloud.

Dependencies

No Dependencies

Example Playbook

- hosts: servers
  roles:
  - { role: check_uc_hostname, check_uc_hostname_debug: true }

License

Apache

Author Information

Red Hat TripleO DFG:Upgrades