Reviewed: https://review.openstack.org/504904 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=21bb17499f83ec67aaadd8affb6d2899e567d151 Submitter: Zuul Branch: master
commit 21bb17499f83ec67aaadd8affb6d2899e567d151 Author: Claudiu Belu <[email protected]> Date: Mon Sep 18 13:14:06 2017 +0300 hyperv: report disk_available_least field Reporting the disk_available_least field can help in making sure the scheduler doesn't pick a host that cannot fit a specific flavor's disk. The reported local_gb_used is calculated based on the instances spawned by nova on a certain compute node, and might not reflect the actual reality, especially on shared storage scenarios. Change-Id: I20992acef119f11f6584094438043a760fc4a287 Closes-Bug: #1717892 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1717892 Title: hyperv: Driver does not report disk_available_least Status in compute-hyperv: Fix Released Status in OpenStack Compute (nova): Fix Released Bug description: Description =========== The Hyper-V driver does not report the disk_available_least field. Reporting the mentioned field can help mitigate the scheduling issue regarding hosts using the same shared storage. Steps to reproduce ================== Have a compute node having X GB total storage (reported as local_gb), out of which, just 1 GB is actually free (unreported). The compute node also reports local_gb_used, which is the sum of the allocated nova instances' flavor disk sizes. (local_gb > local_gb_used). Try to spawn an instance with a flavor's disk higher than 1.or disk size of 2 GB on the host. Expected result =============== Instance should be in ERROR state, it shouldn't be able to schedule to the compute node. Actual result ============= The instance is active. Environment =========== OpenStack Pike. Hyper-V 2012 R2 compute node. Logs & Configs ============== [1] compute node's resource view VS. actual reported resource view: http://paste.openstack.org/show/621318/ [2] compute node's resources (nova hypervisor-show), spawning an instance: http://paste.openstack.org/show/621319/ To manage notifications about this bug go to: https://bugs.launchpad.net/compute-hyperv/+bug/1717892/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

