retspen/webvirtmgr — pull request #326 by ibuclaw (2014-06-05 17:13:52+00:00)
Title: Don't show shutdown VMs on the infrastructure page

Hi,

This likely isn't a proper fix, but just raising this anyway. My setup is that I have 12 blades in an enclosure, and there are two SANs which disk pools are exposed via iSCSI. For the purpose of live migration, VM configuration is kept spread between the 12 hosts, which means on the infrastructure page, it shows multiple copies of the same VM, running on one host, and shutdown on every other host that configuration is found.

This doesn't serve too well when there are an upward of 100 VMs to show, so what I want to be able to do is hide all powered off VMs, showing only running or suspended in this view. This gives me a better summary view of which VMs are running on each host and the spread among them when it comes to provisioning more servers.

This PR shows the quick fix I've done to get this aspect of webvirtmgr much more pleasant. What may need to be done is instead move it to a local_settings parameter, so people can opt-in to this if they choose to.