weizhouapache commented on pull request #5339:
URL: https://github.com/apache/cloudstack/pull/5339#issuecomment-903728799


   @nvazquez 
   actually vm cannot be started or migrated if there is no enough server 
capacity in 4.15 and master.
   
   the process to deploy/start a vm without destination host is
   (1) check server capacity of all hosts
   (2) select a host
   (3) double check if host has enough capacity (because step 1 might take long 
time if there are many hosts). this step was added by #3728
   
   if destination host is specified,  step 1 and 2 are skipped for now. but 
there is still a new check in step 3.
   I am not sure if necessary to add an extra step to check server capacity (it 
takes few milliseconds) in this PR.
   
   current error 
   1. allow.deploy.vm.if.deploy.on.given.host.fails=false
   ![Screenshot from 2021-08-23 
10-05-23](https://user-images.githubusercontent.com/57355700/130448669-0e6699cf-26b9-4cba-bb79-b6939b0ec572.png)
   
   2. allow.deploy.vm.if.deploy.on.given.host.fails=true
   ![Screenshot from 2021-08-23 
10-09-46](https://user-images.githubusercontent.com/57355700/130448677-8722500e-1c32-4593-a386-a3efb29518ce.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to