構成
OS:CentOS9 Stream
OpenStackVersion:Anterope
削除対象のComputeNodeを確認する。今回は、compute2が調子悪いので削除したい。
1 2 3 4 5 6 7 8 9 |
[root@controller ~(keystone)]$ openstack compute service list --insecure +--------------------------------------+----------------+--------------------+----------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +--------------------------------------+----------------+--------------------+----------+---------+-------+----------------------------+ | 6ec9559c-9673-4aed-9937-11f900acb75d | nova-scheduler | controller.srv.osp | internal | enabled | up | 2023-09-30T05:31:46.000000 | | 5d23e049-aab3-45d3-a45a-e0eb02b9992b | nova-conductor | controller.srv.osp | internal | enabled | up | 2023-09-30T05:31:46.000000 | | d6842619-c055-4e0b-87a7-7e24ce9be592 | nova-compute | compute1.srv.osp | nova | enabled | up | 2023-09-30T05:31:52.000000 | | 4c7e7a6e-d584-496f-95e5-2dc2e8bc8a1d | nova-compute | compute2.srv.osp | nova | enabled | up | 2023-09-30T05:31:46.000000 | +--------------------------------------+----------------+--------------------+----------+---------+-------+----------------------------+ |
openstack compute service deleteコマンドでIDを指定する。
1 |
openstack compute service delete 4c7e7a6e-d584-496f-95e5-2dc2e8bc8a1d --insecure |
削除されたことを確認。
1 2 3 4 5 6 7 8 |
[root@controller ~(keystone)]$ openstack compute service list --insecure +--------------------------------------+----------------+--------------------+----------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +--------------------------------------+----------------+--------------------+----------+---------+-------+----------------------------+ | 6ec9559c-9673-4aed-9937-11f900acb75d | nova-scheduler | controller.srv.osp | internal | enabled | up | 2023-09-30T05:34:36.000000 | | 5d23e049-aab3-45d3-a45a-e0eb02b9992b | nova-conductor | controller.srv.osp | internal | enabled | up | 2023-09-30T05:34:34.000000 | | d6842619-c055-4e0b-87a7-7e24ce9be592 | nova-compute | compute1.srv.osp | nova | enabled | up | 2023-09-30T05:34:41.000000 | +--------------------------------------+----------------+--------------------+----------+---------+-------+----------------------------+ |