check flavors that has no instance activeΒΆ

This could be useful when you need to clean legacy flavors in an O~S installation

from an administrative account simply run the following:

$ openstack flavor list --all |grep 0|while read i;do awk '{system("echo flavor id: " $2"; openstack server list --all-projects --flavor " $2)}'; done