Skip to content

Commit 87e3344

Browse files
committed
Add removing a hypervisor doc section
1 parent bb18aa6 commit 87e3344

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,53 @@ 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 instance 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+
#. Delete the compute service in OpenStack:
126+
127+
.. code-block:: console
128+
129+
openstack compute service list | grep <Hypervisor hostname>
130+
openstack compute service delete <Service ID>
131+
132+
#. Delete the network agents in OpenStack:
133+
134+
.. code-block:: console
135+
136+
openstack network agent list | grep <Hypervisor hostname>
137+
openstack network agent delete <Agent IDs>
138+
139+
#. Delete the node in Bifrost:
140+
141+
.. code-block:: console
142+
143+
docker exec -it bifrost_deploy bash
144+
(bifrost-deploy)[root@seed bifrost-base]# export OS_CLOUD=bifrost
145+
(bifrost-deploy)[root@seed bifrost-base]# openstack baremetal node delete <Hostname>
146+
147+
#. Remove the node from the Kayobe configuration. Ensure the node is removed
148+
from the inventory and ``network-allocation.yml``. Other configuration files
149+
may also be removed, but this is dependent on the deployment. Recursive
150+
``grep`` can help here.
151+
105152
.. _evacuating-all-instances:
106153

107154
Evacuating all instances

0 commit comments

Comments
 (0)