[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-12-05 Thread Rohit Yadav (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14235431#comment-14235431
 ] 

Rohit Yadav commented on CLOUDSTACK-5696:
-

Let's request one of the VMWare gurus who may have time to try and fix this 
issue, [~sateeshc], [~koushikd] - guys any ideas? Thanks.

 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-12-05 Thread Alireza Eskandari (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14236337#comment-14236337
 ] 

Alireza Eskandari commented on CLOUDSTACK-5696:
---

For faster debugging:
Please look at line 1993 in management-server.log and line 2279 in catalina.out
These lines in where vmsync should work but it doesn't!
Here is the log files:
https://www.dropbox.com/s/h8wovb79hhh3zb3/log.tar.gz?dl=0

 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-12-03 Thread Rohit Yadav (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14233532#comment-14233532
 ] 

Rohit Yadav commented on CLOUDSTACK-5696:
-

I tested with VMWare and ACS 4.3.1 and I was able to replicate the issue. I'll 
see if some VMWare guru can help us test and fix this.

 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-12-02 Thread Rohit Yadav (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14231454#comment-14231454
 ] 

Rohit Yadav commented on CLOUDSTACK-5696:
-

I tested this today with VM in isolated network/advanced zone using KVM and it 
worked for me. VMSync kicked in shortly after VM was shutdown using virsh and 
it transitioned the internal state first to stopped and then to starting. The 
same thing happened when I did virsh destroy (like pulling plug). I see 
something like this;

2014-12-02 18:42:12,061 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-2:null) SeqA 1-4374: Processing Seq 1-4374:  { Cmd , 
MgmtId: -1, via: 1, Ver: v1, Flags: 11, 
[{com.cloud.agent.api.PingRoutingWithNwGroupsCommand:{newGroupStates:{},newStates:{r-272-VM:Stopped},_hostVmStateReport:{v-2-VM:{state:PowerOn,host:bluebox},s-1-VM:{state:PowerOn,host:bluebox},i-2-326-VM:{state:PowerOn,host:bluebox}},_gatewayAccessible:true,_vnetAccessible:true,hostType:Routing,hostId:1,wait:0}}]
 }
2014-12-02 18:42:12,064 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(AgentManager-Handler-2:null) VM r-272-VM: cs state = Running and realState = 
Stopped
2014-12-02 18:42:12,064 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(AgentManager-Handler-2:null) VM r-272-VM: cs state = Running and realState = 
Stopped
2014-12-02 18:42:12,064 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
(AgentManager-Handler-2:null) VM does not require investigation so I'm marking 
it as Stopped: VM[DomainRouter|r-272-VM]
2014-12-02 18:42:12,064 WARN  [o.a.c.f.j.AsyncJobExecutionContext] 
(AgentManager-Handler-2:null) Job is executed without a context, setup psudo 
job for the executing thread
2014-12-02 18:42:12,132 DEBUG [c.c.c.CapacityManagerImpl] 
(AgentManager-Handler-2:null) VM state transitted from :Running to Stopping 
with event: StopRequestedvm's original host id: 1 new host id: 1 host id before 
state transition: 1

 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 

[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-12-01 Thread Alireza Eskandari (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14229810#comment-14229810
 ] 

Alireza Eskandari commented on CLOUDSTACK-5696:
---

I build and test shapeblue patches on 4.3 until commit 
0e0827f07c47289dc210dd50551c4c6df26d0573 but this bug is still exist.

 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-12-01 Thread Rohit Yadav (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14230076#comment-14230076
 ] 

Rohit Yadav commented on CLOUDSTACK-5696:
-

Hi [~alireza], I don't have VMWare setup; but I can test it against KVM. I've 
the logs and steps to reproduce, we'll fix it for 4.3 if I can reproduce it. 
Thanks for your help.

 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-11-25 Thread Rohit Yadav (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14224699#comment-14224699
 ] 

Rohit Yadav commented on CLOUDSTACK-5696:
-

Thanks, I run some tests/fix tomorrow.

 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-11-24 Thread Alireza Eskandari (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14222919#comment-14222919
 ] 

Alireza Eskandari commented on CLOUDSTACK-5696:
---

I test for this bug in CS 4.3.1 from ShapeBlue.com RPMs.
Steps that I follow:
 - I turn off vm from vCenter
 - In CS VM state is still running
 - I restarted cloudstack-management service
 - VM state is still Runnig in CS after service restart
 - I click on Stop Instance in CS (while VM is stopped in vCenter)
 - VM state changes to Stopped in CS
 - I turn on VM from CS
 - Again I turn it off from vCenter and its state in CS is Running

In the following link I put catalina and management-server logs from where I 
restarted the management-server:
https://www.dropbox.com/s/h8wovb79hhh3zb3/log.tar.gz?dl=0

 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-01-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13872601#comment-13872601
 ] 

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

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

CLOUDSTACK-5696: Fix sync issue with out-of-band changes


 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-01-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13872866#comment-13872866
 ] 

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

Commit 1acdbf8369c68fc99d8ea06204895cb55965d49a in branch refs/heads/4.3 from 
[~kelveny]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=1acdbf8 ]

CLOUDSTACK-5696: fix a regression caused by out-of-band sync changes


 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CLOUDSTACK-5696) [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside of CS.

2014-01-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13872870#comment-13872870
 ] 

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

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

CLOUDSTACK-5696: fix a regression caused by out-of-band sync changes


 [Vmsync]- Stopped state of VM is not synced to CS when VM is stopped outside 
 of CS.
 ---

 Key: CLOUDSTACK-5696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.3.0
 Environment: Build from 4.3
Reporter: Sangeetha Hariharan
Assignee: Kelven Yang
Priority: Critical
 Fix For: 4.4.0

 Attachments: management-server.rar


 Pre Req:
 Have few Vms deployed using Cloudstack.
 Steps:
 Outside of Cloudstack ,Stop VM
 Vm continues to remain in Running state in CS , even though the change in 
 state is detected.
 Following exception seen in management server logs:
 2013-12-26 17:02:10,026 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.v.VirtualMachineManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM i-3-8-MyTestVM: cs state = Running and realSt
 ate = Stopped
 2013-12-26 17:02:10,027 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM does not require investigation so I'm marki
 ng it as Stopped: VM[User|TestVM-tiny-host-1ps-0-1]
 2013-12-26 17:02:10,027 WARN [o.a.c.alerts] (DirectAgent-77:ctx-c28d9506) 
 alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null
 // message:: VM (name: TestVM-tiny-host-1ps-0-1, id: 8) stopped unexpectedly 
 on host id:1, availability zone id:1, pod id:1
 2013-12-26 17:02:10,032 DEBUG [c.c.h.HighAvailabilityManagerImpl] 
 (DirectAgent-77:ctx-c28d9506) VM is not HA enabled so we're done.
 2013-12-26 17:02:10,032 WARN [c.c.a.m.DirectAgentAttache] 
 (DirectAgent-77:ctx-c28d9506) Seq 1-799145986: Exception caught
 java.lang.NullPointerException
 at 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1235)
 at 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2686)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.deltaSync(VirtualMachineManagerImpl.java:2320)
 at 
 com.cloud.vm.VirtualMachineManagerImpl.processAnswers(VirtualMachineManagerImpl.java:2797)
 at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:296)
 at 
 com.cloud.agent.manager.ClusteredDirectAgentAttache.processAnswers(ClusteredDirectAgentAttache.java:65)
 at 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:242)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)