After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 40 of 317

Starting OpenStack Compute 30 How to do it... From our Ubuntu machine, first list the running instances to identify the instance you want to terminate. We can terminate instances using either euca-terminate-instances or using nova delete regardless of whether we launched our instance using euca2ools or Nova Client tools. f Terminating instances using euca2ools: euca-describe-instances To terminate an instance: euca-terminate-instances i-00000001 You can re-run euca-describe-instances again to ensure your instance has terminated. f Terminating instances using Nova Client: nova list To terminate an instance: nova delete myInstance You can re-run nova list again to ensure your instance has terminated. You can terminate any number of instances with a single command by listing the instance Ids one after the other. For example, euca-terminate-instances i-00000001 i-00000002 i-00000005. How it works... We simply identify the instance we wish to terminate by its ID, which is in the format i-00000000 when viewing instances using euca-describe-instances or by name (or ID) when using nova delete. Once identified, we can specify this as the instance to terminate. Once terminated, that instance no longer exists—it has been destroyed. So if you had any data on there it will have been deleted along with the instance. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook