Reviewed: https://review.openstack.org/576693 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=1d91811ad499af1d291f5c819ced5b1fdf3520c7 Submitter: Zuul Branch: master
commit 1d91811ad499af1d291f5c819ced5b1fdf3520c7 Author: xulei <xu...@cmss.chinamobile.com> Date: Wed Jun 20 13:15:46 2018 +0800 Disable limits if force_hosts or force_nodes is set Setting max_placement_results will make force_host invaild sometimes, especially in large-scale enviroment. Disable limit param in GET /allocation_candidates if force_hosts or force_nodes is set. Change-Id: Iff1b49fe7e6347e3c2bb5992494b2450809719a2 Closes-Bug: #1777591 ** 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/1777591 Title: ‘limit’ in allocation_candidates where sometimes make force_hosts invalid Status in OpenStack Compute (nova): Fix Released Status in OpenStack Compute (nova) queens series: Triaged Bug description: Now 'limit' parameter in allocation_candidates api use default value 1000, this makes better performace in large scale environment. However, when creating a vm/bm with force_hosts to schedule, 'limit' parameter will cut some nodes out in allocation_candidates, and sometimes force_hosts method returns 'No hosts matched due to not matching...' Example: test environment with 10 compute nodes, set max_placement_results = 3 nova boot test --image 9c09cb52-03b9-4631-898d-d443d0dbbf9e --flavor c1 --nic none --availability-zone nova:devstack No hosts matched due to not matching 'force_hosts' value of 'devstack' Debug: return provider_summaries: {u'268a3d69-6cf1-418a-aaa8-f2127f4f4468':...,u'a2c3e9e7-53a6-4e15-b150-39bb4135c6a9':...u'0aa80b5e-a0fa-47a6-a4b5-51b21b721ce9':...} and node devstack:69d2fe55-e391-4d99-a1fe-8b0b5aad60e7 not in provider_summaries. I think in large scale environment(compute nodes > 2000), and set default max_placement_results=1000 will make force_hosts unavailable. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1777591/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp