[openstack-dev] [nova] Need more suggestion about nova-scheduler patch/147048
chenrui.momo at gmail.com
Fri Apr 24 03:25:12 UTC 2015
I'm working on the patch https://review.openstack.org/#/c/147048/ for
Description of Bug:
When the nova-scheduler can't select enough hosts for multiple creating
instance, a NoValidHost exception was raised, but the part of hosts had
been consumed from instance in the _schedule loop, the resource of consumed
hosts was not reverted, it would result in the resource lacking in
But now I'm in a dilemma, because the reviewers have different point
about implementation of the patch, so I need more feedback.
See patch set 36
This is simple way, just set the 'updated' attribute of consumed host
as None, and make use of the 'update_from_compute_node' logic to update the
local HostState at the next scheduling request.
But like John say, it would break CachingScheduler in a refresh cycle,
the resource of HostState would been fixed until the next periodic_tasks is
Other side, Alex and Sylvain think that it should be acceptable,
because CachingSheduler use the out of date HostState in the cache
according to the design, and the usage limitation had been described in
I'm really really hope this patch can been merged ASAP, it has spent
several months to review :(
Please let me know your point, feel free to discuss it, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev