Skip to content

Commit be6886c

Browse files
authored
Merge pull request #1425 from stackhpc/document-heat-removal
Document Heat removal in 2024.1 OpenStack upgrade
2 parents 232b220 + 65baf66 commit be6886c

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

doc/source/operations/upgrading-openstack.rst

+38-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,44 @@ driver. Instructions for enabling the driver can be found `here
5252
<../configuration/magnum-capi.rst>`_. Enable the driver, recreate any clusters
5353
using Heat, and disable the service.
5454

55-
TODO: guide for disabling Heat
55+
After the upgrade (so that alerts don't fire) you can remove Heat with the
56+
following:
57+
58+
.. code-block:: console
59+
60+
kayobe overcloud host command run --command "rm /etc/kolla/haproxy/services.d/heat-api.cfg" -l network -b
61+
kayobe overcloud host command run --command "rm /etc/kolla/haproxy/services.d/heat-api-cfn.cfg" -l network -b
62+
63+
kayobe overcloud host command run --command "systemctl restart kolla-haproxy-container.service" -l network[0] -b
64+
kayobe overcloud host command run --command "systemctl restart kolla-haproxy-container.service" -l network[1] -b
65+
kayobe overcloud host command run --command "systemctl restart kolla-haproxy-container.service" -l network[2] -b
66+
67+
kayobe overcloud host command run --command "systemctl stop kolla-heat_api-container.service kolla-heat_api_cfn-container.service kolla-heat_engine-container.service" -l controllers -b
68+
kayobe overcloud host command run --command "systemctl disable kolla-heat_api-container.service kolla-heat_api_cfn-container.service kolla-heat_engine-container.service" -l controllers -b
69+
kayobe overcloud host command run --command "rm /etc/systemd/system/kolla-heat_api-container.service" -l controllers -b
70+
kayobe overcloud host command run --command "rm /etc/systemd/system/kolla-heat_api_cfn-container.service" -l controllers -b
71+
kayobe overcloud host command run --command "rm /etc/systemd/system/kolla-heat_engine-container.service" -l controllers -b
72+
73+
kayobe overcloud host command run --command "docker rm heat_api heat_api_cfn heat_engine" -l controllers
74+
75+
kayobe overcloud host command run --command "rm -rf /etc/kolla/heat-api /etc/kolla/heat-api-cfn /etc/kolla/heat-engine" --limit controllers -b
76+
77+
Then from the OpenStack CLI:
78+
79+
.. code-block:: console
80+
81+
openstack service delete heat
82+
openstack user delete heat
83+
openstack domain set --disable heat_user_domain
84+
openstack domain delete heat_user_domain
85+
86+
You can drop the ``heat`` database too, unless you want to keep historical content.
87+
88+
.. code-block:: console
89+
90+
docker exec -it mariadb mysql -u root -p
91+
Enter the database password when prompted.
92+
drop database heat;
5693
5794
Designate sink disabled by default
5895
----------------------------------

0 commit comments

Comments
 (0)