Skip to content

Commit 76ae8c5

Browse files
committed
Fix post deployment hook for /etc/hosts in multi-stack
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]>
1 parent 7d4f8bb commit 76ae8c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

devsetup/tripleo/tripleo_install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,13 @@ if [ $EDPM_COMPUTE_CELLS -gt 1 ] ; then
273273
done
274274
done
275275

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

0 commit comments

Comments
 (0)