[openstack-dev] [nova] Need more suggestion about nova-scheduler patch/147048

Rui Chen chenrui.momo at gmail.com
Fri Apr 24 03:25:12 UTC 2015

Hi all:

    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
class notes.

    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.

Best Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150424/6b4dd791/attachment.html>

More information about the OpenStack-dev mailing list