Skip to content

Commit

Permalink
Fix post deployment hook for /etc/hosts in multi-stack
Browse files Browse the repository at this point in the history
Add /etc/hosts entries for all cells' nodes on internal_api network
as well. Enable rabbitmq connections from superconductor and
scheduler via transport URLs defined for other cells'.

NOTE: tripleo_stack_name only used in start/end markers by the
tripleo_hosts_entries role. Use a non-conflicting "stack" name
for markers to append to hosts entries created for the overcloud
stack, and stacks created for additional cells.

Signed-off-by: Bohdan Dobrelia <[email protected]>
  • Loading branch information
bogdando committed Dec 20, 2024
1 parent 7d4f8bb commit 76ae8c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devsetup/tripleo/tripleo_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,13 @@ if [ $EDPM_COMPUTE_CELLS -gt 1 ] ; then
done
done

# NOTE: tripleo_stack_name only used in start/end markers. Make it non-conflicting to overcloud and cells entries.
echo "ensure /etc/hosts records are up-to-date in the main stack"
ANSIBLE_REMOTE_USER="tripleo-admin" ansible allovercloud \
-i /home/zuul/inventories -m include_role \
-a name=tripleo_hosts_entries \
-e tripleo_stack_name=all \
-e role_networks='["InternalApi"]' \
-e hostname_resolve_network=ctlplane -e plan=overcloud \
-e @/home/zuul/overcloud-deploy/overcloud/config-download/overcloud/global_vars.yaml
fi

0 comments on commit 76ae8c5

Please sign in to comment.