[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13762983#comment-13762983
 ] 

ASF subversion and git services commented on CLOUDSTACK-4636:
-------------------------------------------------------------

Commit ae181afb005bd26af5503665c5c08883759ffecf in branch refs/heads/master 
from [~koushikd]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=ae181af ]

CLOUDSTACK-4636: In a scaled up setup all Vm's in a cluster were stopped and/or 
started after management server restart
Issue happens as there are more than one thread processing connect for a host 
simultaneously. The VM full sync. is not designed to work in this scenario and 
as a result user VMs may get stopped incorrectly.
Direct agent scan task runs at regular intervals (direct.agent.scan.interval 
defaulted to 90 secs) and identifies hosts that needs to be processed for 
connect. In a normal scenario hosts mostly get connected within that interval 
and there are no issues. But if due to some reason the connect process takes 
more time and is not completed by the time next agent scan runs. In this case, 
based on the db. state same hosts may get picked up again. And then there will 
be situations where more than one thread is processing connect for the same 
host.
The fix is to check if there is a thread already processing connect for a host 
and in this case all subsequent threads for that host will simply bail out. 
Also there may be a scenario where one thread already completed processing 
connect but another thread already got scheduled before that and will again 
repeat the same. This is also prevented by putting appropriate checks.

                
> In a scaled up setup all Vm's in a cluster were stopped and/or started after 
> management server restart
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4636
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4636
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>         Environment: XS cluster
>            Reporter: Koushik Das
>            Assignee: Koushik Das
>             Fix For: 4.2.1
>
>
> Issue happens as there are more than one thread processing connect for a host 
> simultaneously during MS restart. The VM full sync. logic is not designed to 
> work in this scenario and as a result user VMs may get stopped incorrectly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to