In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to delete an example of openstack. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Terminate instance from the dashboard page
1. Delete Profil
/ etc/libvirt/qemu/instance-0000000*.xml
two。 Delete the response file directory
/ var/lib/nova/instances/instance-0000000*
3.
Modify the database
1) modify the deleted_at,deleted,vm_state,terminated_at field in the instance table. The three fields of power_state,root_device_name,task_state in the manual operation are not modified.
Manual operations are as follows:
Update instances set
Deleted_at = updated_at
Deleted = 1
Power_state = 0
Vm_state = "deleted"
Terminated_at = updated_at
Root_device_name = NULL
Task_state = NULL
Where id = 9
2) the record of the response instanceid in the virtual_interfaces table is deleted. Manual operations are as follows:
Delete from virtual_interfaces where instance_id=9
3) modify the deleted_at and deleted fields in the instance_info_caches table. The manual operation is as follows
Update instance_info_caches set
Deleted_at = updated_at
Deleted = 1
Where instaceid = 9
4) modify the instance_id,allocated,virtual_interface_id and leased fields in the fixed_ips table. The manual operation is as follows
Update fixed_ips set
Instance_id = NULL
Allocated = 0
Leased= 0
Virtual_interface_id = NULL
Where instanceid = 9
Note:
Changes in the fixed_ IP table when creating an instance
Modify the instance_id,allocated,virtual_interface_id field in the fixed_ips table. Instance_id
Allocated=1
Leased=1
Virtual_interface_id=select id from virtual_interfaces where instance_id=9
The manual operation is as follows
Update fixed_ips set
Instance_id = instanceid
Allocated = 1
Leased = 1
Virtual_interface_id = select id from virtual_interfaces where instance_id=9
Where id = 9
5) deleted_at deleted fields in the security_group_instance_ association table
Note:
Changes to the security_group_instance_ association table when creating an instance
Insert into `nova`.`security _ group_instance_ association`
(`created_ at`
`deleted`
`id`
`security_group_ id`
`instance_ id`)
Values ('created_at'
'0'
'id'
'1'
'9'); `
This is the end of the article on "how to delete an instance of openstack". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.