cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandan Purushothama (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-1707) VMSnapshot on XenServer: RevertToSnapshotCmd stops a running VM on XenServer before taking the VMSnapshot
Date Mon, 18 Mar 2013 18:54:15 GMT
Chandan Purushothama created CLOUDSTACK-1707:
------------------------------------------------

             Summary: VMSnapshot on XenServer: RevertToSnapshotCmd stops a running VM on XenServer
before taking the VMSnapshot
                 Key: CLOUDSTACK-1707
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1707
             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
            Reporter: Chandan Purushothama
            Priority: Critical
             Fix For: 4.2.0



================
Steps to Reproduce:
================

1. Deploy a VM on the XenServer with a Data disk.
2. When the VM is running, take a VMSnapshot of the VM.
3. Revert to the VMSnapshot and observe the VM slip into Stopped State

===========
Observations:
===========

**Job Info from the Management Server Log**

 [root@asfmgmt ~]# grep -i "job-111" /var/log/cloudstack/management/management-server.log
2013-03-18 11:25:24,949 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-6:null) submit
async job-111, details: AsyncJobVO {id:111, userId: 3, accountId: 3, sessionKey: null, instanceType:
null, instanceId: null, cmd: org.apache.cloudstack.api.command.user.vmsnapshot.RevertToSnapshotCmd,
cmdOriginator: null, cmdInfo: {"response":"json","sessionkey":"lyydAZodgu/Ql7NdWAQPDahV7pY\u003d","ctxUserId":"3","_":"1363631153401","vmsnapshotid":"d3567079-90ce-44b7-8db1-42df53966877","ctxAccountId":"3","ctxStartEventId":"169"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 7200344900649, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}
2013-03-18 11:25:24,965 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-8:job-111) Executing
org.apache.cloudstack.api.command.user.vmsnapshot.RevertToSnapshotCmd for job-111
2013-03-18 11:25:24,987 DEBUG [cloud.user.AccountManagerImpl] (Job-Executor-8:job-111) Access
to com.cloud.vm.snapshot.VMSnapshotVO$$EnhancerByCGLIB$$212b9a33@1d34e286 granted to Acct[3-boron]
by DomainChecker
2013-03-18 11:25:25,003 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-8:job-111)
VM state transitted from :Running to Stopping with event: StopRequestedvm's original host
id: 5 new host id: 5 host id before state transition: 5
2013-03-18 11:25:25,005 DEBUG [agent.transport.Request] (Job-Executor-8:job-111) Seq 5-1223558560:
Sending  { Cmd , MgmtId: 7200344900649, via: 5, Ver: v1, Flags: 100111, [{"StopCommand":{"isProxy":false,"vmName":"i-3-14-VMSNAP","wait":0}}]
}
2013-03-18 11:25:25,005 DEBUG [agent.transport.Request] (Job-Executor-8:job-111) Seq 5-1223558560:
Executing:  { Cmd , MgmtId: 7200344900649, via: 5, Ver: v1, Flags: 100111, [{"StopCommand":{"isProxy":false,"vmName":"i-3-14-VMSNAP","wait":0}}]
}
2013-03-18 11:26:19,327 DEBUG [agent.transport.Request] (Job-Executor-8:job-111) Seq 5-1223558560:
Received:  { Ans: , MgmtId: 7200344900649, via: 5, Ver: v1, Flags: 110, { StopAnswer } }
2013-03-18 11:26:19,329 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-8:job-111)
VM[User|xen-boron-VM-7] is stopped on the host.  Proceeding to release resource held.
2013-03-18 11:26:19,355 DEBUG [cloud.network.NetworkModelImpl] (Job-Executor-8:job-111) Service
SecurityGroup is not supported in the network id=204
2013-03-18 11:26:19,392 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Changing active number of nics for network id=204 on -1
2013-03-18 11:26:19,427 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking ElasticLoadBalancerElement to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,430 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking NiciraNvpElement to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,431 DEBUG [network.element.NiciraNvpElement] (Job-Executor-8:job-111)
Checking if NiciraNvpElement can handle service Connectivity on network boron-TestNetwork-1
2013-03-18 11:26:19,432 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking BigSwitchVnsElement to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,432 DEBUG [network.element.BigSwitchVnsElement] (Job-Executor-8:job-111)
Checking if BigSwitchVnsElement can handle service Connectivity on network boron-TestNetwork-1
2013-03-18 11:26:19,433 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking Ovs to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,434 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking BareMetalDhcp to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,434 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking BareMetalPxe to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,434 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking BareMetalUserdata to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,434 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking SecurityGroupProvider to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,435 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking VirtualRouter to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,435 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking VpcVirtualRouter to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,435 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking NiciraNvp to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,435 DEBUG [network.element.NiciraNvpElement] (Job-Executor-8:job-111)
Checking if NiciraNvpElement can handle service Connectivity on network boron-TestNetwork-1
2013-03-18 11:26:19,435 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking JuniperSRX to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,436 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking Netscaler to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,436 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking F5BigIP to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,436 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-8:job-111)
Asking CiscoNexus1000vVSM to release Nic[23-14-7203787c-a822-4a42-8e47-1873ff53da53-10.1.1.115]
2013-03-18 11:26:19,436 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-8:job-111)
Successfully released network resources for the vm VM[User|xen-boron-VM-7]
2013-03-18 11:26:19,437 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-8:job-111)
Successfully released storage resources for the vm VM[User|xen-boron-VM-7]
2013-03-18 11:26:19,477 DEBUG [cloud.network.NetworkModelImpl] (Job-Executor-8:job-111) Service
SecurityGroup is not supported in the network id=204
2013-03-18 11:26:19,481 DEBUG [cloud.network.NetworkModelImpl] (Job-Executor-8:job-111) Service
SecurityGroup is not supported in the network id=204
2013-03-18 11:26:19,493 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-8:job-111)
VM state transitted from :Stopping to Stopped with event: OperationSucceededvm's original
host id: 5 new host id: null host id before state transition: 5
2013-03-18 11:26:19,498 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-8:job-111)
Hosts's actual total CPU: 9044 and CPU after applying overprovisioning: 9044
2013-03-18 11:26:19,498 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-8:job-111)
Hosts's actual total RAM: 3701658240 and RAM after applying overprovisioning: 3701658112
2013-03-18 11:26:19,499 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-8:job-111)
release cpu from host: 5, old used: 0,reserved: 0, actual total: 9044, total with overprovisioning:
9044; new used: 0,reserved:100; movedfromreserved: false,moveToReserveredtrue
2013-03-18 11:26:19,499 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-8:job-111)
release mem from host: 5, old used: 0,reserved: 0, total: 3701658112; new used: 0,reserved:134217728;
movedfromreserved: false,moveToReserveredtrue
2013-03-18 11:26:19,548 DEBUG [agent.transport.Request] (Job-Executor-8:job-111) Seq 5-1223558561:
Sending  { Cmd , MgmtId: 7200344900649, via: 5, Ver: v1, Flags: 100011, [{"RevertToVMSnapshotCommand":{"volumeTOs":[{"id":23,"name":"ROOT-14","mountPoint":"/export/home/chandan/asf4-131-170/primary2","path":"07389d9c-6b97-4ef8-9db0-4167afef078e","size":21474836480,"type":"ROOT","storagePoolType":"NetworkFilesystem","storagePoolUuid":"067fc155-b77d-3cd4-9599-579c5123a806","deviceId":0},{"id":24,"name":"DATA-14","mountPoint":"/export/home/chandan/asf4-131-170/primary2","path":"b83505e0-4dbb-460b-8e8d-01b0fe205146","size":5368709120,"type":"DATADISK","storagePoolType":"NetworkFilesystem","storagePoolUuid":"067fc155-b77d-3cd4-9599-579c5123a806","deviceId":1}],"target":{"id":20,"snapshotName":"i-3-14-VMSNAP_VS_20130316010826","type":"Disk","createTime":1363396106000,"current":true,"description":"xen-boron-VM-7-Snapshot-1"},"vmName":"i-3-14-VMSNAP","guestOSType":"CentOS
5.3 (64-bit)","wait":0}}] }
2013-03-18 11:26:19,548 DEBUG [agent.transport.Request] (Job-Executor-8:job-111) Seq 5-1223558561:
Executing:  { Cmd , MgmtId: 7200344900649, via: 5, Ver: v1, Flags: 100011, [{"RevertToVMSnapshotCommand":{"volumeTOs":[{"id":23,"name":"ROOT-14","mountPoint":"/export/home/chandan/asf4-131-170/primary2","path":"07389d9c-6b97-4ef8-9db0-4167afef078e","size":21474836480,"type":"ROOT","storagePoolType":"NetworkFilesystem","storagePoolUuid":"067fc155-b77d-3cd4-9599-579c5123a806","deviceId":0},{"id":24,"name":"DATA-14","mountPoint":"/export/home/chandan/asf4-131-170/primary2","path":"b83505e0-4dbb-460b-8e8d-01b0fe205146","size":5368709120,"type":"DATADISK","storagePoolType":"NetworkFilesystem","storagePoolUuid":"067fc155-b77d-3cd4-9599-579c5123a806","deviceId":1}],"target":{"id":20,"snapshotName":"i-3-14-VMSNAP_VS_20130316010826","type":"Disk","createTime":1363396106000,"current":true,"description":"xen-boron-VM-7-Snapshot-1"},"vmName":"i-3-14-VMSNAP","guestOSType":"CentOS
5.3 (64-bit)","wait":0}}] }
2013-03-18 11:26:28,483 DEBUG [agent.transport.Request] (Job-Executor-8:job-111) Seq 5-1223558561:
Received:  { Ans: , MgmtId: 7200344900649, via: 5, Ver: v1, Flags: 10, { RevertToVMSnapshotAnswer
} }
2013-03-18 11:26:28,492 DEBUG [vm.snapshot.VMSnapshotManagerImpl] (Job-Executor-8:job-111)
RevertTo i-3-14-VMSNAP_VS_20130316010826 succeeded for vm: i-3-14-VMSNAP
2013-03-18 11:26:28,499 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-8:job-111) Complete
async job-111, jobStatus: 1, resultCode: 0, result: org.apache.cloudstack.api.response.UserVmResponse@45ce0f5d
2013-03-18 11:26:28,507 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-8:job-111) Done
executing org.apache.cloudstack.api.command.user.vmsnapshot.RevertToSnapshotCmd for job-111
2013-03-18 11:26:31,084 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-2:null) Async
job-111 completed
[root@asfmgmt ~]#

FS at https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Snapshots has no reference
to such behavior which is different from what observed on VMWare.


--
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

Mime
View raw message