Home  >  Blog  >   OpenStack  > 

Terminating your instance-Openstack

Rating: 4
  1. Share:
OpenStack Articles

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.

Terminate Your Instance through Nova volume

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:
nova list
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.

MindMajix YouTube Channel

Related Article: OpenStack Interview Questions

Identify the Instance

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.    

Join our newsletter

Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!

Course Schedule
OpenStack TrainingMar 25 to Apr 09
OpenStack TrainingMar 28 to Apr 12
OpenStack TrainingApr 01 to Apr 16
OpenStack TrainingApr 04 to Apr 19
Last updated: 23 March 2023
About Author
Remy Sharp
Ravindra Savaram

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.

Recommended Courses

1 /15