当前位置:网站首页>删除openstack中的僵尸实例
删除openstack中的僵尸实例
2022-07-30 05:49:00 【大新新大浩浩】
问题场景:
删除openstack中的僵尸实例
解决方案:
第一步:计算节点上关闭实例
virsh destroy instance-0000045a
virsh undefine instance-0000045a
第二步:删除nova数据库中记录
SET @bianliang:='instance-uuid';
delete from security_group_instance_association where instance_uuid=@bianliang;
delete from instance_info_caches where instance_uuid=@bianliang;
delete from block_device_mapping where instance_uuid=@bianliang;
delete from instance_actions_events where action_id in (select id from instance_actions where instance_uuid=@bianliang);
delete from instance_actions where instance_uuid=@bianliang;
delete from instance_faults where instance_uuid=@bianliang;
delete from instance_extra where instance_uuid=@bianliang;
delete from instance_system_metadata where instance_uuid=@bianliang;
delete from instance_id_mappings where uuid =@bianliang;
delete from virtual_interfaces where instance_uuid=@bianliang;
delete from instances where uuid=@bianliang;
第三步:删除placement数据库中的记录
placement是负责调度的服务,库中记录了计算节点上云实例的信息,如果不删除这里面的实例记录,会影响资源的调度(即使机器上没有实例,而且dashboard上显示有资源的时候,调度到机器上还是会失败)
SET @bianliang:='instance-uuid';
delete from allocations where sonsumer_id=@bianliang;
我的openstack版本是T版,其他的版本可能表啥的有点区别。
边栏推荐
猜你喜欢

Vineyard: 开源分布式内存数据管理框架

I can't hide it, I want to expose the bad things about cloud native

Unity Shader的结构与语义

DADPS-生物素-炔基_CAS:2241685-22-1试剂反应原理

图扑数字孪生北京故宫,推进旅游业元宇宙进程

图计算在网络安全分析中的应用

Unity Gizmos扩展:线框圆

从 Vertex 到 Subgraph 再到 PIE: 并行图计算编程模型概览

Network Protocol 04 - Physical and Data Link Layers

prometheus监控minio
随机推荐
图扑数字孪生青岛城轨,赋能智慧交通低碳发展
About memcache kernel, so one of the most popular
Mastering JESD204B (2) – Debugging of AD6676
SE_01
Selenium01
Vineyard: 开源分布式内存数据管理框架
OP tokens and non-transferable NFTs work to build a new digital democracy
prometheus监控nacos
how to use xilinx's FFT ip
事件传递和响应者链条
Biotin-NHS LC(72040-63-2)生物素接头|站点特定探针
图扑数字孪生煤矿开采系统,打造采煤“硬实力”
SQL并列排序问题
GNNLab:基于空间共享思想设计的新型 GNN 系统
MongoDB-CUD没有R
Biotin-SS-NHS ester|生物素-二硫键-活性酯|CAS:122266-55-1具有良好的水溶性
网络协议04 - 物理层和数据链路层
图计算101:图计算的类型、语言与系统
I can't hide it, I want to expose the bad things about cloud native
网络协议01 - 基础概念