From a997fdf3f79028d9af915b7f2e2dfc3d211d2fe1 Mon Sep 17 00:00:00 2001 From: Keane Lim Date: Tue, 8 Mar 2022 16:26:56 -0500 Subject: [PATCH] Enhanced procedure for adding and removing worker nodes (pick r5, r6, dsr6) Change-Id: I630049b40a5fd214c15f0574e20f80272fb33c3b Signed-off-by: Keane Lim --- ...dding-hosts-using-the-host-add-command.rst | 21 +++++++++--- ...g-the-host-delete-command-1729d2e3153b.rst | 33 +++++++++++++++++++ .../index-install-r6-8966076f0e81.rst | 1 + 3 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 doc/source/deploy_install_guides/r6_release/bare_metal/delete-hosts-using-the-host-delete-command-1729d2e3153b.rst diff --git a/doc/source/deploy_install_guides/r6_release/bare_metal/adding-hosts-using-the-host-add-command.rst b/doc/source/deploy_install_guides/r6_release/bare_metal/adding-hosts-using-the-host-add-command.rst index 998cb2d7e..05f19e698 100644 --- a/doc/source/deploy_install_guides/r6_release/bare_metal/adding-hosts-using-the-host-add-command.rst +++ b/doc/source/deploy_install_guides/r6_release/bare_metal/adding-hosts-using-the-host-add-command.rst @@ -2,11 +2,11 @@ .. pyp1552927946441 .. _adding-hosts-using-the-host-add-command-r6: -==================================== -Add Hosts Using the host-add Command -==================================== +================================ +Add Hosts Using the Command Line +================================ -You can add hosts to the system inventory using the command line. +You can add hosts to the system inventory using the :command:`host-add` command. .. rubric:: |context| @@ -150,10 +150,23 @@ scripting an initial setup. ~(keystone_admin)]$ system host-add -n compute-0 -p worker -I 10.10.10.100 +#. Verify that the host has been added successfully. + + Use the :command:`fm alarm-list` command to check if any alarms (major or + critical) events have occured. You can also type :command:`fm event-list` + to see a log of events. For more information on alarms, see :ref:`Fault + Management Overview `. + #. With **controller-0** running, start the host. The host is booted and configured with a personality. +#. Verify that the host has started successfully. + + The command :command:`system host-list` shows a list of hosts. The + added host should be available, enabled, and unlocked. You can also + check alarms and events again. + .. rubric:: |postreq| After adding the host, you must provision it according to the requirements of diff --git a/doc/source/deploy_install_guides/r6_release/bare_metal/delete-hosts-using-the-host-delete-command-1729d2e3153b.rst b/doc/source/deploy_install_guides/r6_release/bare_metal/delete-hosts-using-the-host-delete-command-1729d2e3153b.rst new file mode 100644 index 000000000..cb96a354a --- /dev/null +++ b/doc/source/deploy_install_guides/r6_release/bare_metal/delete-hosts-using-the-host-delete-command-1729d2e3153b.rst @@ -0,0 +1,33 @@ +.. _delete-hosts-using-the-host-delete-command-1729d2e3153b: + +=================================== +Delete Hosts Using the Command Line +=================================== + +You can delete hosts from the system inventory using the :command:`host-delete` command. + +.. rubric:: |proc| + +#. Check for alarms related to the host. + + Use the :command:`fm alarm-list` command to check for any alarms (major + or critical events). You can also type :command:`fm event-list` to see a log + of events. For more information on alarms, see :ref:`Fault Management + Overview `. + +#. Lock the host that will be deleted. + + Use the :command:`system host-lock` command. Only locked hosts can be deleted. + +#. Delete the host from the system inventory. + + Use the command :command:`system host-delete`. This command accepts one + parameter: the hostname or ID. Make sure that the remaining hosts have + sufficient capacity and workload to account for the deleted host. + +#. Verify that the host has been deleted successfully. + + Use the :command:`fm alarm-list` command to check for any alarms (major + or critical events). You can also type :command:`fm event-list` to see a log + of events. For more information on alarms, see :ref:`Fault Management + Overview `. diff --git a/doc/source/deploy_install_guides/r6_release/index-install-r6-8966076f0e81.rst b/doc/source/deploy_install_guides/r6_release/index-install-r6-8966076f0e81.rst index 001c17b35..46e1d80c8 100644 --- a/doc/source/deploy_install_guides/r6_release/index-install-r6-8966076f0e81.rst +++ b/doc/source/deploy_install_guides/r6_release/index-install-r6-8966076f0e81.rst @@ -81,6 +81,7 @@ Add and reinstall a host :maxdepth: 1 bare_metal/adding-hosts-using-the-host-add-command + bare_metal/delete-hosts-using-the-host-delete-command-1729d2e3153b Add hosts in bulk