Skip to content

Commit 78b7409

Browse files
authored
Merge pull request #1984 from stackhpc/rm-hypervisor-doc
Add removing a hypervisor doc section
2 parents e4d3c80 + cb98f4a commit 78b7409

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

doc/source/operations/bifrost-hardware-inventory-management.rst

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Replacing a Failing Hypervisor
8383

8484
To replace a failing hypervisor, proceed as follows:
8585

86-
* :ref:`Disable the hypervisor to avoid scheduling any new instance on it <taking-a-hypervisor-out-of-service>`
86+
* :ref:`Disable the hypervisor to avoid scheduling any new instances on it <taking-a-hypervisor-out-of-service>`
8787
* :ref:`Evacuate all instances <evacuating-all-instances>`
8888
* :ref:`Set the node to maintenance mode in Bifrost <set-bifrost-maintenance-mode>`
8989
* Physically fix or replace the node
@@ -102,6 +102,54 @@ To deprovision an existing hypervisor, run:
102102
system. Running this command without a limit will deprovision all overcloud
103103
hosts.
104104

105+
Removing a Hypervisor
106+
---------------------
107+
108+
To remove a hypervisor without replacing it, proceed as follows:
109+
110+
#. :ref:`Disable the hypervisor to avoid scheduling any new instances on it <taking-a-hypervisor-out-of-service>`
111+
#. :ref:`Evacuate all instances <evacuating-all-instances>`
112+
#. (optionally) Deprovision the hypervisor
113+
114+
.. code-block:: console
115+
116+
kayobe overcloud deprovision --limit <Hypervisor hostname>
117+
118+
.. warning::
119+
120+
Always use ``--limit`` with ``kayobe overcloud deprovision`` on a production
121+
system. Running this command without a limit will deprovision all overcloud
122+
hosts.
123+
124+
#. Physically remove the node from the deployment
125+
126+
#. Delete the node in Bifrost:
127+
128+
.. code-block:: console
129+
130+
docker exec -it bifrost_deploy bash
131+
(bifrost-deploy)[root@seed bifrost-base]# export OS_CLOUD=bifrost
132+
(bifrost-deploy)[root@seed bifrost-base]# openstack baremetal node delete <Hostname>
133+
134+
#. Delete the compute service in OpenStack:
135+
136+
.. code-block:: console
137+
138+
openstack compute service list | grep <Hypervisor hostname>
139+
openstack compute service delete <Service ID>
140+
141+
#. Delete the network agents in OpenStack:
142+
143+
.. code-block:: console
144+
145+
openstack network agent list | grep <Hypervisor hostname>
146+
openstack network agent delete <Agent IDs>
147+
148+
#. Remove the node from the Kayobe configuration. Ensure the node is removed
149+
from the inventory and ``network-allocation.yml``. Other configuration files
150+
may also be removed, but this is dependent on the deployment. Recursive
151+
``grep`` can help here.
152+
105153
.. _evacuating-all-instances:
106154

107155
Evacuating all instances

0 commit comments

Comments
 (0)