Repository navigation
CLOUDSTACK-8911: VM start job got stuck in loop looking for suitable … - #895
Conversation
|
cloudstack-pull-rats #764 SUCCESS |
|
cloudstack-pull-analysis #716 FAILURE |
|
Hi @SudharmaJain, The pull-analysis failed due to a segfault in the surefire plugin. This will probably be unrelated, though please force push your commit again to this PR. That way the test will run again. |
There was a problem hiding this comment.
The change looks good.
There was a problem hiding this comment.
@SudharmaJain There is another check for GPU device immediately below and the pattern is similar to the guest VM check. The issue you have mentioned can happen even for this. Can you check and verify?
There was a problem hiding this comment.
@koushik-das I have added the change for GPU device as well.
17050a0 to
2d34036
Compare
|
cloudstack-pull-rats #771 SUCCESS |
|
cloudstack-pull-analysis #723 SUCCESS |
|
LGTM. Have verified the scenario for max. guest limit. |
|
LGTM, based on a set of tests that I run on this branch (which I rebased myself first): Result: The 3 errors at the bottom are due to CLOUDSTACK-8991 and unrelated to this PR. And: Result: |
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>
…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: