From d730900e54dbcdc5c239cc6bb1daf9631d3702d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Tue, 11 Dec 2018 15:49:17 +0100 Subject: [PATCH] Deployed Server - get-occ-config.sh need ordered host list Make note in documentation that it is critical to list hosts according to node %index% number when using get-occ-config.sh to distribute Heat agent config for pre-deployed servers. If the nodes are not listed in the correct order the Heat config added will/can be for a different node. Related: RHBZ#1647363 Related-Bug: #1804642 Change-Id: Ie53dfae7a35b47528aa6d8eca64b1da5b1cedaf7 --- .../advanced_deployment/deployed_server.rst | 33 ++++++++++++++++--- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/doc/source/install/advanced_deployment/deployed_server.rst b/doc/source/install/advanced_deployment/deployed_server.rst index a165504a..ac08600c 100644 --- a/doc/source/install/advanced_deployment/deployed_server.rst +++ b/doc/source/install/advanced_deployment/deployed_server.rst @@ -606,10 +606,35 @@ environment variable, and corresponding ``$_hosts`` variables. Overcloud deployment. These role names correspond to the name of the roles from the roles data file used during the deployment. -Each ``$_hosts`` variable is a space separated list of IP addresses -that are the IP addresses of the deployed servers for the roles. For example, -in the above command, 192.168.25.1 is the IP of Controller 0, 192.168.25.2 is -the IP of Controller 1, etc. +Each ``$_hosts`` variable is a space separated **ordered** list of +IP addresses that are the IP addresses of the deployed servers for the roles. +For example, in the above command, 192.168.25.1 is the IP of Controller 0, +192.168.25.2 is the IP of Controller 1, etc. + +.. Note:: The IP addresses for the hosts in the ``$_hosts`` variable + must be **ordered** to avoid Heat agent configuration mismatch. + + Start with the address for the node with the lowest node-index and + count from there. For example, when deployed server IP addresses are: + + * overcloud-controller-0: 192.168.25.10 + * overcloud-controller-1: 192.168.25.11 + * overcloud-controller-2: 192.168.25.12 + * overcloud-compute-0: 192.168.25.20 + * overcloud-compute-1: 192.168.25.21 + + The variables must be set as follows. + (**The order of entries is critical!**) + + For Controllers:: + + # controller-0 controller-1 controller-2 + ControllerDeployedServer_hosts="192.168.25.10 192.168.25.11 192.168.25.12" + + For Computes:: + + # compute-0 compute-1 + ComputeDeployedServer_hosts="192.168.25.20 192.168.25.21" The script will take care of querying Heat for each request metadata url, configure the url in the agent configuration file on each deployed server, and