Add documentation on refreshing hosts file

Since Yoga release we've wrongly have dropped hosts file refresh task
This task is still required, as despite /etc/hosts now are fully provisioned
on new computes, it still does not make old ones to recognize new
ones.

[1] 8cd65feae2

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/877824
Change-Id: I494caa4a4104129781159ea924f3aeae94dad9a8
This commit is contained in:
Dmitriy Rabotyagov 2023-03-17 17:40:36 +01:00 committed by Dmitriy Rabotyagov
parent 80d839ba04
commit 03319fc690
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,12 @@ needed in an environment, it is possible to create additional nodes.
# openstack-ansible playbooks/setup-hosts.yml --limit localhost,infra<node-ID>,infra<node-ID>-host_containers
#. In case you're relying on ``/etc/hosts`` content, you should also update it for all hosts
.. code:: console
# openstack-ansible openstack-hosts-setup.yml -e openstack_hosts_group=all --tags openstack_hosts-file
#. Next we need to expand galera/rabbitmq clusters, which is done during
``setup-infrastructure.yml``. So we will run this playbook without limits.
@ -108,6 +114,7 @@ cluster.
# cd /opt/openstack-ansible/playbooks
# openstack-ansible setup-hosts.yml --limit localhost,NEW_HOST_NAME
# openstack-ansible openstack-hosts-setup.yml -e openstack_hosts_group=nova_compute --tags openstack_hosts-file
# openstack-ansible setup-openstack.yml --limit localhost,NEW_HOST_NAME
Alternatively you can try using new compute nodes deployment script

View File

@ -31,6 +31,7 @@ function define_tasks {
fi
RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/setup-hosts.yml --limit ${HOSTS}")
RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/openstack-hosts-setup.yml -e openstack_hosts_group=nova_compute --tags openstack_hosts-file")
RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/setup-openstack.yml --limit ${HOSTS}")
RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/unbound-install.yml --tags unbound-config")