Sometimes, an instance will need to be stopped for a number of reasons, for example, maintenance and offline migration, yet as an OpenStack administrator, you may not want to completely destroy the instance and data associated with it. Thus, you will want to stop the instance instead.
To stop an instance, you will need the following:
openstack
command-line clientopenrc
file containing appropriate credentialsIn this example, we will be stopping the cookbook.test
instance created in the Booting an instance recipe. To stop the instance, use the following steps:
openstack server list
This will bring back a list of the running instances. Consider this example:
openstack server stop cookbook.test
SHUTOFF
for our cookbook.test
instance:openstack server list
This gives the following output:
18.226.165.70