
Kayobe has a workaround for CentOS cloud images which contain a bogus nameserver entry in /etc/resolv.conf. By setting overcloud_host_image_workaround_resolv_enabled to true, the entry would be removed. Previously we removed a specific IP address - 10.0.2.3 - that was present in the CentOS 7 images. However, it seems that CentOS 8 images have a different IP - 192.168.122.1. This change fixes the issue and becomes resilient to future changes by matching any IP address. This should be fairly safe, since this workaround is opt-in. Change-Id: I9323a38cb2bb627ff56f5713900be00595ea8d4b Story: 2006574 Task: 39484
40 lines
1.8 KiB
Plaintext
40 lines
1.8 KiB
Plaintext
---
|
|
###############################################################################
|
|
# Overcloud configuration.
|
|
|
|
# Default Ansible group for overcloud hosts if not present in
|
|
# overcloud_group_hosts_map.
|
|
overcloud_group_default: controllers
|
|
|
|
# List of names of Ansible groups for overcloud hosts.
|
|
overcloud_groups: >
|
|
{{ (overcloud_group_hosts_map | list +
|
|
[overcloud_group_default]) | reject('equalto', 'ignore') | unique | sort | list }}
|
|
|
|
# Dict mapping overcloud Ansible group names to lists of hosts in the group.
|
|
# As a special case, the group 'ignore' can be used to specify hosts that
|
|
# should not be added to the inventory.
|
|
overcloud_group_hosts_map: {}
|
|
|
|
# To prevent some network issues you can choose to disable cloud-init
|
|
disable_cloud_init: False
|
|
|
|
###############################################################################
|
|
# Overcloud host image configuration.
|
|
|
|
# The CentOS cloud images have a bogus name server entry in /etc/resolv.conf,
|
|
# 192.168.122.1. Cloud-init only appends name server entries to this file, and
|
|
# will not remove this bogus entry. Typically this leads to a delay of around
|
|
# 30 seconds when connecting via SSH, due to a timeout in NSS. The workaround
|
|
# employed here is to remove this bogus entry from the image using
|
|
# virt-customize, if it exists. See https://bugs.centos.org/view.php?id=14369.
|
|
overcloud_host_image_workaround_resolv_enabled: True
|
|
|
|
# Workaround a CentOS 7.5 bug: cloud-init 0.7.9-24 does not correctly set
|
|
# an IP address for VLAN subinterfaces configured with the Openstack metadata
|
|
# format/Config drive. # See, https://bugs.centos.org/view.php?id=14964.
|
|
overcloud_host_image_workaround_cloud_init_enabled: False
|
|
|
|
# cloud-init repository for overcloud_host_image_workaround_cloud_init_enabled
|
|
overcloud_host_image_workaround_cloud_init_repo: https://stackhpc.github.io/cloud-init-repo/
|