cloudstack/server
Remi Bergsma 7d46b2ee56 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 <github@remi.nl>
2015-10-28 11:29:32 +01:00
..
conf Use same sudoers config for all distros Cleanup buggy code for sudoers file editing 2015-06-19 16:00:57 +02:00
resources Merge branch 'volume-upload' into master 2015-04-29 11:12:53 +05:30
scripts
src Merge pull request #895 from SudharmaJain/cs-8911 2015-10-28 11:29:32 +01:00
test Merge pull request #851 from SudharmaJain/cs-8864 2015-09-24 15:35:16 +02:00
pom.xml Change tests random number generator to /dev/urandom 2015-05-29 20:24:41 +02:00