standalone/dcn: adjustments for latest versions (train+)
- AllNodesConfig is no longer in the Heat stack, we need to look for it in the config-download directory from the group vars. - tripleo-undercloud-passwords.yaml was renamed to tripleo-standalone-passwords.yaml. Change-Id: I781b0388839b1c9c674f44c029fa3c031bade62f Signed-off-by: Emilien Macchi <emilien@redhat.com>
This commit is contained in:
parent
73b67f215a
commit
4619a1d6da
|
@ -824,10 +824,6 @@ second node, run the following:
|
|||
| jq '{"parameter_defaults": {"EndpointMapOverride": .output_value}}' \
|
||||
> $DIR/endpoint-map.json
|
||||
|
||||
openstack stack output show standalone AllNodesConfig --format json \
|
||||
| jq '{"parameter_defaults": {"AllNodesExtraMapData": .output_value}}' \
|
||||
> $DIR/all-nodes-extra-map-data.json
|
||||
|
||||
openstack stack output show standalone HostsEntry -f json \
|
||||
| jq -r '{"parameter_defaults":{"ExtraHostFileEntries": .output_value}}' \
|
||||
> $DIR/extra-host-file-entries.json
|
||||
|
@ -854,11 +850,22 @@ following command will do this for you:
|
|||
sudo egrep "oslo.*password" /etc/puppet/hieradata/service_configs.json \
|
||||
| sed -e s/\"//g -e s/,//g >> $DIR/oslo.yaml
|
||||
|
||||
In addition to the above, you need to create $DIR/$HOME/export_control_plane/all-nodes-extra-map-data.json
|
||||
which will contain the following AllNodesExtraMapData. You first need to locate the
|
||||
group_vars generated by tripleo-ansible, located in the config-download directory.
|
||||
|
||||
Then you can generate the correct Heat environment with the following command:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
STANDALONE_LATEST=$(find $HOME/standalone-ansible-* -type d -printf "%T@ %p\n" | sort -n | cut -d' ' -f 2- | tail -n 1)
|
||||
python3 -c "import json; t = {'parameter_defaults': {'AllNodesExtraMapData': json.loads(open('$HOME/$STANDALONE_LATEST/group_vars/overcloud.json').read()) }}; print(t)" > $DIR/all-nodes-extra-map-data.json
|
||||
|
||||
Set a copy of the first node's passwords aside for the second node:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
cp $HOME/tripleo-undercloud-passwords.yaml $DIR/passwords.yaml
|
||||
cp $HOME/tripleo-standalone-passwords.yaml $DIR/passwords.yaml
|
||||
|
||||
Put a copy of the directory containing the extracted information,
|
||||
e.g. `$DIR`, on the second node to be deployed.
|
||||
|
|
Loading…
Reference in New Issue