@@ -83,7 +83,7 @@ Replacing a Failing Hypervisor
8383
8484To 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
107155Evacuating all instances
0 commit comments