Instances are nothing but running virtual machines within the Openstack cloud. Cloud environments are designed to be dynamic and this implies that Cloud instances are being spun up and terminated as required. Terminating a cloud instance is easy to do, but equally, it is important to understand some basic concepts of cloud instances.
Cloud instances, such as the instance we have used are not persistent. This means that the data and work you do on that instance only exist for the time that it is running. A Cloud instance can be rebooted, but once it has been terminated, all data is lost.
|Inclined to build a profession as Openstack Developer? Then here is the blog post on OpenStack Training ONLINE.|
To ensure no loss of data, and Open Stack Compute service named nova-volume provides persistent data store functionality that allows you to attach a volume to it that doesn’t get destroyed on termination but, allows you to attach it to running instances. A volume is like a USB drive attached to your instance.
From our Ubuntu machine, list the running instances to identify the instance you want to terminate:
1. We first identify the instance that we want to terminate by issuing the following command from our client:
2. To terminate an instance, we can either specify the name of our instance or use the UUID:
nova delete my instance
nova delete 6f41bb91-0f4f-41e5-90c3-7ee1f9c39e5a
You can re-run the nova list again to ensure your instance is terminated.
|Related Article: OpenStack Interview Questions|
We simply identify the instance we wish to terminate by its UUID or by name while using the nova list. Once identified, we can specify this as the instance to terminate using nova delete. Once terminated, that instance, no longer exists—it has been destroyed. So if you had any data in there it will be deleted along with the instance.
Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!
|OpenStack Training||Dec 03 to Dec 18|
|OpenStack Training||Dec 06 to Dec 21|
|OpenStack Training||Dec 10 to Dec 25|
|OpenStack Training||Dec 13 to Dec 28|
Ravindra Savaram is a Content Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.
Copyright © 2013 - 2022 MindMajix Technologies