0
点赞
收藏
分享

微信扫一扫

Openstack移除计算节点

罗子僧 2023-03-20 阅读 122

1、查看所有计算节点

source admin-openrc
nova service-list

2、选择要删除的计算节点,删除计算节点ID,并检查节点情况

nova service-delete ID
nova service-list

3、查看网络

neutron agent-list

4、删除网络ID,并检查

neutron agent-delete ID
neutron agent-list

5、停止计算节点nova、neutron相关服务

systemctl stop libvirtd.service openstack-nova-compute.service
systemctl stop neutron-linuxbridge-agent

6、清除数据库记录

# nova库
use nova;

# 查询nova主机
select host from services;
select hypervisor_hostname from compute_nodes;

# 删除主机
delete from nova.services where host="要删除的主机名称";
delete from nova.compute_nodes where hypervisor_hostname="要删除的主机名称";

7、查看结果

nova service-list
neutron agent-list

举报

相关推荐

0 条评论