New Question

Revision history [back]

click to hide/show revision 1
initial version

Nova reports false free disk space values on Hyper-V

Hi All,

We recently faced a weird issue: ever since we upgraded to Liberty we were not able to spin up any new VMs because of a strange "No valid host was found" issue. We debugged the issue and we came to the following conclusion: Ever since we have used OpenStack we had absolutely false numbers on graphs in Horizon, showing for example 55 TB used out of 130 GB. We didn't pay attention to this because it was a known bug in Kilo. The bug is causing Nova to compare all the storage used by VMs to the local storage of the hosting hypervisor, meaning that even if the machine is stored on an iSCSI LUN, or on an SMB share the amount of space defined in its flavor will be deducted from the local disk space of the hypervisor. This caused no error in Kilo, because cinder-scheduler ignored these values. However in Liberty the bug was fixed and therefore the developers of OpenStack decided to add the DiskFilter to the enabled DefaultFilters of Cinder scheduler immediately causing the behavior I described above. We solved this problem via creating a workaround: in cinder.conf it is possible to define a new set of filters, so we simply omitted the DiskFilter from that list and everything started to work as it did before.

We would like to however fix this in a better way, and that would require CloudBase to pull the fix from the official OpenStack repository and apply it to the HyperV driver as well (it was applied to the KVM-libvirt driver as far as I remember).

I'd have reported this on Github as an issue of the nova fork you are maintaining but I think issues are disabled for that repository.

Thanks, Domi