Deleting a flavor

Often times, requirements change; there is a demand for more performance, or business needs change. Whatever be the reason, your existing flavors may not meet the needs of those consuming cloud resources. When a given flavor is no longer suitable, it will need to be deleted.

Tip

A flavor that is associated with a running instance cannot be deleted.

Getting ready

To change attributes of a flavor for Nova, you will need the following:

  • The openstack command-line client
  • The openrc file containing appropriate credentials
  • The name of the flavor to delete

How to do it…

The following commands are used to delete a flavor:

  1. First, list the flavors available:
    openstack flavor list
    

    This will bring back a list of flavors like the following:

    How to do it…
  2. To delete the flavor, execute the following command:
    openstack flavor delete openstack.cookbook
    

    Tip

    This command shows no output when successful.

  3. List the flavors again to view updated attributes:
    openstack flavor list
    

    Once again, this lists the flavors that are now available:

    How to do it…

How it works…

To delete a flavor the openstack flavor delete [name] command is used. Should you need to delete multiple flavors, you can specify multiple names or IDs, separating each with a space.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.192.247