From 2453a07e9a36187d69f473e5aa5cc214756a2b57 Mon Sep 17 00:00:00 2001 From: Weezer Su Date: Fri, 6 Jan 2017 02:20:44 -0600 Subject: [PATCH] Update Add a new infrastructure host script part Add "Replace with the name of the new host." to make it clearer. remove the file seperator after awk because if we use '|' as it, the add_host.limit will have a white space at first col. Add an new script to deal with the fatal error when we add the new infra node. The 'Distribute self signed ssl key' playbook needs horizon.pem from the first horizon container, so we have to add the first horizon container name to the add_host.limit. Change-Id: Ia6774a6e3ec8fe13dde7559942e2f899e18e8eb1 --- .../maintenance-tasks/scale-environment.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/source/draft-operations-guide/maintenance-tasks/scale-environment.rst b/doc/source/draft-operations-guide/maintenance-tasks/scale-environment.rst index 7d532e087c..35877538fb 100644 --- a/doc/source/draft-operations-guide/maintenance-tasks/scale-environment.rst +++ b/doc/source/draft-operations-guide/maintenance-tasks/scale-environment.rst @@ -43,12 +43,14 @@ needed in an environment, it is possible to create additional nodes. # /opt/openstack-ansible/playbooks/inventory/dynamic_inventory.py > /dev/null #. Create the ``/root/add_host.limit`` file, which contains all new node - host names. + host names. Replace ```` with the name of the new host. .. code:: console # /opt/openstack-ansible/scripts/inventory-manage.py \ - -l |awk -F '|' '// {print $2}' |sort -u | tee /root/add_host.limit + -l |awk '// {print $2}' |sort -u | tee /root/add_host.limit + #/opt/openstack-ansible/scripts/inventory-manage.py \ + -l | grep 'horizon' | head -1 | awk '{print $2}' >> /root/add_host.limit #. Run the ``setup-everything.yml`` playbook with the ``limit`` argument.