One-line bash commands for managing, deploying and testing OpenStack and related components, hypervisors and containers. Some simple and obvious, some cool and questionable, hopefully all useful. Check back on this post, I’ll likely add more.
#1 – Watch Nova Compute for Non-Active Instances on Openstack
Outputs total instance count and non-active instances. Useful for keeping an eye on potential problem VMs in a PAUSED, ERROR, SHUTOFF or other non-active state.
watch --interval=1 'nova list --all-tenants | wc -l && nova list --all-tenants | grep -v "ACTIVE"'