You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2015/10/28 11:30:45 UTC

[2/2] git commit: updated refs/heads/master to 7d46b2e

Merge pull request #895 from SudharmaJain/cs-8911

CLOUDSTACK-8911: VM start job got stuck in loop looking for suitable host

VM instance creation job get stuck in the loop, when VMs require local storage there are host that reached max guest limit and remain hosts does have storage available.  This happens because the hosts that reach the max guest limit were not getting added to the avoid list and hence the cluster.

Verified the fix on my local setup.

Repro Steps:
1. Take an environment with single cluster and 2 hosts.
2. change the max guest limit for the hypervisor such that on one host max guest limit should reach.
3. change thresholds so that other host should not have enough storage. If required create a VM for sufficient bigger disk.
4. Now deploy a VM with local storage.
5. cluster will never be put in the avoid set and job will keep looking for suitable host.
6. once we increase the max guest limit, VM will deploy or will fail if there is a lack of storage.

* pr/895:
  CLOUDSTACK-8911: VM start job got stuck in loop looking for suitable host

Signed-off-by: Remi Bergsma <gi...@remi.nl>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7d46b2ee
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7d46b2ee
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7d46b2ee

Branch: refs/heads/master
Commit: 7d46b2ee56e59ade0beeb947271729922ecfc5da
Parents: 535ab51 2d34036
Author: Remi Bergsma <gi...@remi.nl>
Authored: Wed Oct 28 11:29:32 2015 +0100
Committer: Remi Bergsma <gi...@remi.nl>
Committed: Wed Oct 28 11:29:32 2015 +0100

----------------------------------------------------------------------
 .../com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------