首页 > 其他分享 >Openstack移除计算节点

Openstack移除计算节点

时间:2023-03-20 16:37:43浏览次数:40  
标签:service nova agent 移除 Openstack 节点 neutron delete

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

标签:service,nova,agent,移除,Openstack,节点,neutron,delete
From: https://blog.51cto.com/zzzhao/6133162

相关文章