[jira] [Updated] (CLOUDSTACK-7793) [Snapshots]Create Snaphot with quiesce option set to true fails with InvalidParameterValueException: can't handle quiescevm equal true for volume snapshot

2014-11-21 Thread Sanjay Tripathi (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sanjay Tripathi updated CLOUDSTACK-7793:

Assignee: (was: Sanjay Tripathi)

 [Snapshots]Create Snaphot with quiesce option set to true fails with 
 InvalidParameterValueException: can't handle quiescevm equal true for volume 
 snapshot
 --

 Key: CLOUDSTACK-7793
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7793
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Snapshot
Affects Versions: 4.5.0
 Environment: Latest build from 4.5
Reporter: Sanjeev N
Priority: Critical
 Attachments: management-server.rar


 [Snapshots]Create Snaphot with quiesce option set to true fails with 
 InvalidParameterValueException: can't handle quiescevm equal true for volume 
 snapshot
 Steps to Reproduce:
 ===
 1.Bring up CS in advanced zone with vmware cluster
 2.Deploy guest vm using default cent os template
 3.Try to create snapshot on root disk with quiesce option set to true:
 http://10.147.38.153:8096/client/api?command=createSnapshotvolumeid=998fd155-7d60-4426-a91c-0a2f1d598021account=testdomainid=1quiescevm=true
 Expected Result:
 
 quiescevm is implemented only for NetApp Plugin with VMWare. If this is not 
 implemented the API should simply ignore the option
 Actual Result:
 ==
 API  didn't ignore this option. Instead it failed with following exception:
 2014-10-27 18:10:59,861 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (ApiServer-7:ctx-2f20ab36 ctx-a7e2aa42) submit async job-147, details: 
 AsyncJobVO {id:147, userId: 1, accountId: 1, instanceType: Snapshot, 
 instanceId: 13, cmd: 
 org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo: 
 {id:13,ctxDetails:{\com.cloud.storage.Snapshot\:\7668446f-667a-4398-a623-23d87067a9f4\,\com.cloud.storage.Volume\:\998fd155-7d60-4426-a91c-0a2f1d598021\,\com.cloud.domain.Domain\:1},cmdEventType:SNAPSHOT.CREATE,ctxUserId:1,account:test,httpmethod:GET,volumeid:998fd155-7d60-4426-a91c-0a2f1d598021,domainid:1,quiescevm:true,uuid:7668446f-667a-4398-a623-23d87067a9f4,ctxAccountId:1,ctxStartEventId:301},
  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
 null, initMsid: 6637838401571, completeMsid: null, lastUpdated: null, 
 lastPolled: null, created: null}
 2014-10-27 18:10:59,880 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
 (API-Job-Executor-44:ctx-15935b7b job-147) Add job-147 into job monitoring
 2014-10-27 18:10:59,881 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (API-Job-Executor-44:ctx-15935b7b job-147) Executing AsyncJobVO {id:147, 
 userId: 1, accountId: 1, instanceType: Snapshot, instanceId: 13, cmd: 
 org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo: 
 {id:13,ctxDetails:{\com.cloud.storage.Snapshot\:\7668446f-667a-4398-a623-23d87067a9f4\,\com.cloud.storage.Volume\:\998fd155-7d60-4426-a91c-0a2f1d598021\,\com.cloud.domain.Domain\:1},cmdEventType:SNAPSHOT.CREATE,ctxUserId:1,account:test,httpmethod:GET,volumeid:998fd155-7d60-4426-a91c-0a2f1d598021,domainid:1,quiescevm:true,uuid:7668446f-667a-4398-a623-23d87067a9f4,ctxAccountId:1,ctxStartEventId:301},
  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
 null, initMsid: 6637838401571, completeMsid: null, lastUpdated: null, 
 lastPolled: null, created: null}
 2014-10-27 18:10:59,955 INFO  [o.a.c.a.c.u.s.CreateSnapshotCmd] 
 (API-Job-Executor-44:ctx-15935b7b job-147 ctx-9af4a710) VOLSS: 
 createSnapshotCmd starts:1414413659955
 2014-10-27 18:10:59,978 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (API-Job-Executor-44:ctx-15935b7b job-147 ctx-9af4a710) Sync job-148 
 execution on object VmWorkJobQueue.14
 2014-10-27 18:11:00,456 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
 (RouterStatusMonitor-1:ctx-f35c279c) Found 2 routers to update status.
 2014-10-27 18:11:00,458 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
 (RouterStatusMonitor-1:ctx-f35c279c) Found 0 networks to update RvR status.
 2014-10-27 18:11:00,526 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (AsyncJobMgr-Heartbeat-1:ctx-473efbed) Execute sync-queue item: 
 SyncQueueItemVO {id:52, queueId: 34, contentType: AsyncJob, contentId: 148, 
 lastProcessMsid: null, lastprocessNumber: null, lastProcessTime: null, 
 created: Mon Oct 27 18:10:59 IST 2014}
 2014-10-27 18:11:00,529 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (AsyncJobMgr-Heartbeat-1:ctx-473efbed) Schedule queued job-148
 2014-10-27 18:11:00,561 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (AsyncJobMgr-Heartbeat-1:ctx-8dfe1318) Begin cleanup expired async-jobs
 

[jira] [Updated] (CLOUDSTACK-7793) [Snapshots]Create Snaphot with quiesce option set to true fails with InvalidParameterValueException: can't handle quiescevm equal true for volume snapshot

2014-11-13 Thread Animesh Chaturvedi (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Animesh Chaturvedi updated CLOUDSTACK-7793:
---
Assignee: Sanjay Tripathi

 [Snapshots]Create Snaphot with quiesce option set to true fails with 
 InvalidParameterValueException: can't handle quiescevm equal true for volume 
 snapshot
 --

 Key: CLOUDSTACK-7793
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7793
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Snapshot
Affects Versions: 4.5.0
 Environment: Latest build from 4.5
Reporter: Sanjeev N
Assignee: Sanjay Tripathi
Priority: Critical
 Attachments: management-server.rar


 [Snapshots]Create Snaphot with quiesce option set to true fails with 
 InvalidParameterValueException: can't handle quiescevm equal true for volume 
 snapshot
 Steps to Reproduce:
 ===
 1.Bring up CS in advanced zone with vmware cluster
 2.Deploy guest vm using default cent os template
 3.Try to create snapshot on root disk with quiesce option set to true:
 http://10.147.38.153:8096/client/api?command=createSnapshotvolumeid=998fd155-7d60-4426-a91c-0a2f1d598021account=testdomainid=1quiescevm=true
 Expected Result:
 
 quiescevm is implemented only for NetApp Plugin with VMWare. If this is not 
 implemented the API should simply ignore the option
 Actual Result:
 ==
 API  didn't ignore this option. Instead it failed with following exception:
 2014-10-27 18:10:59,861 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (ApiServer-7:ctx-2f20ab36 ctx-a7e2aa42) submit async job-147, details: 
 AsyncJobVO {id:147, userId: 1, accountId: 1, instanceType: Snapshot, 
 instanceId: 13, cmd: 
 org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo: 
 {id:13,ctxDetails:{\com.cloud.storage.Snapshot\:\7668446f-667a-4398-a623-23d87067a9f4\,\com.cloud.storage.Volume\:\998fd155-7d60-4426-a91c-0a2f1d598021\,\com.cloud.domain.Domain\:1},cmdEventType:SNAPSHOT.CREATE,ctxUserId:1,account:test,httpmethod:GET,volumeid:998fd155-7d60-4426-a91c-0a2f1d598021,domainid:1,quiescevm:true,uuid:7668446f-667a-4398-a623-23d87067a9f4,ctxAccountId:1,ctxStartEventId:301},
  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
 null, initMsid: 6637838401571, completeMsid: null, lastUpdated: null, 
 lastPolled: null, created: null}
 2014-10-27 18:10:59,880 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
 (API-Job-Executor-44:ctx-15935b7b job-147) Add job-147 into job monitoring
 2014-10-27 18:10:59,881 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (API-Job-Executor-44:ctx-15935b7b job-147) Executing AsyncJobVO {id:147, 
 userId: 1, accountId: 1, instanceType: Snapshot, instanceId: 13, cmd: 
 org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo: 
 {id:13,ctxDetails:{\com.cloud.storage.Snapshot\:\7668446f-667a-4398-a623-23d87067a9f4\,\com.cloud.storage.Volume\:\998fd155-7d60-4426-a91c-0a2f1d598021\,\com.cloud.domain.Domain\:1},cmdEventType:SNAPSHOT.CREATE,ctxUserId:1,account:test,httpmethod:GET,volumeid:998fd155-7d60-4426-a91c-0a2f1d598021,domainid:1,quiescevm:true,uuid:7668446f-667a-4398-a623-23d87067a9f4,ctxAccountId:1,ctxStartEventId:301},
  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
 null, initMsid: 6637838401571, completeMsid: null, lastUpdated: null, 
 lastPolled: null, created: null}
 2014-10-27 18:10:59,955 INFO  [o.a.c.a.c.u.s.CreateSnapshotCmd] 
 (API-Job-Executor-44:ctx-15935b7b job-147 ctx-9af4a710) VOLSS: 
 createSnapshotCmd starts:1414413659955
 2014-10-27 18:10:59,978 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (API-Job-Executor-44:ctx-15935b7b job-147 ctx-9af4a710) Sync job-148 
 execution on object VmWorkJobQueue.14
 2014-10-27 18:11:00,456 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
 (RouterStatusMonitor-1:ctx-f35c279c) Found 2 routers to update status.
 2014-10-27 18:11:00,458 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
 (RouterStatusMonitor-1:ctx-f35c279c) Found 0 networks to update RvR status.
 2014-10-27 18:11:00,526 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (AsyncJobMgr-Heartbeat-1:ctx-473efbed) Execute sync-queue item: 
 SyncQueueItemVO {id:52, queueId: 34, contentType: AsyncJob, contentId: 148, 
 lastProcessMsid: null, lastprocessNumber: null, lastProcessTime: null, 
 created: Mon Oct 27 18:10:59 IST 2014}
 2014-10-27 18:11:00,529 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (AsyncJobMgr-Heartbeat-1:ctx-473efbed) Schedule queued job-148
 2014-10-27 18:11:00,561 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (AsyncJobMgr-Heartbeat-1:ctx-8dfe1318) Begin 

[jira] [Updated] (CLOUDSTACK-7793) [Snapshots]Create Snaphot with quiesce option set to true fails with InvalidParameterValueException: can't handle quiescevm equal true for volume snapshot

2014-10-27 Thread Sanjeev N (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sanjeev N updated CLOUDSTACK-7793:
--
Attachment: management-server.rar

Attached MS log file

 [Snapshots]Create Snaphot with quiesce option set to true fails with 
 InvalidParameterValueException: can't handle quiescevm equal true for volume 
 snapshot
 --

 Key: CLOUDSTACK-7793
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7793
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Snapshot
Affects Versions: 4.5.0
 Environment: Latest build from 4.5
Reporter: Sanjeev N
Priority: Critical
 Attachments: management-server.rar


 [Snapshots]Create Snaphot with quiesce option set to true fails with 
 InvalidParameterValueException: can't handle quiescevm equal true for volume 
 snapshot
 Steps to Reproduce:
 ===
 1.Bring up CS in advanced zone with vmware cluster
 2.Deploy guest vm using default cent os template
 3.Try to create snapshot on root disk with quiesce option set to true:
 http://10.147.38.153:8096/client/api?command=createSnapshotvolumeid=998fd155-7d60-4426-a91c-0a2f1d598021account=testdomainid=1quiescevm=true
 Expected Result:
 
 quiescevm is implemented only for NetApp Plugin with VMWare. If this is not 
 implemented the API should simply ignore the option
 Actual Result:
 ==
 API  didn't ignore this option. Instead it failed with following exception:
 2014-10-27 18:10:59,861 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (ApiServer-7:ctx-2f20ab36 ctx-a7e2aa42) submit async job-147, details: 
 AsyncJobVO {id:147, userId: 1, accountId: 1, instanceType: Snapshot, 
 instanceId: 13, cmd: 
 org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo: 
 {id:13,ctxDetails:{\com.cloud.storage.Snapshot\:\7668446f-667a-4398-a623-23d87067a9f4\,\com.cloud.storage.Volume\:\998fd155-7d60-4426-a91c-0a2f1d598021\,\com.cloud.domain.Domain\:1},cmdEventType:SNAPSHOT.CREATE,ctxUserId:1,account:test,httpmethod:GET,volumeid:998fd155-7d60-4426-a91c-0a2f1d598021,domainid:1,quiescevm:true,uuid:7668446f-667a-4398-a623-23d87067a9f4,ctxAccountId:1,ctxStartEventId:301},
  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
 null, initMsid: 6637838401571, completeMsid: null, lastUpdated: null, 
 lastPolled: null, created: null}
 2014-10-27 18:10:59,880 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
 (API-Job-Executor-44:ctx-15935b7b job-147) Add job-147 into job monitoring
 2014-10-27 18:10:59,881 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (API-Job-Executor-44:ctx-15935b7b job-147) Executing AsyncJobVO {id:147, 
 userId: 1, accountId: 1, instanceType: Snapshot, instanceId: 13, cmd: 
 org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo: 
 {id:13,ctxDetails:{\com.cloud.storage.Snapshot\:\7668446f-667a-4398-a623-23d87067a9f4\,\com.cloud.storage.Volume\:\998fd155-7d60-4426-a91c-0a2f1d598021\,\com.cloud.domain.Domain\:1},cmdEventType:SNAPSHOT.CREATE,ctxUserId:1,account:test,httpmethod:GET,volumeid:998fd155-7d60-4426-a91c-0a2f1d598021,domainid:1,quiescevm:true,uuid:7668446f-667a-4398-a623-23d87067a9f4,ctxAccountId:1,ctxStartEventId:301},
  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
 null, initMsid: 6637838401571, completeMsid: null, lastUpdated: null, 
 lastPolled: null, created: null}
 2014-10-27 18:10:59,955 INFO  [o.a.c.a.c.u.s.CreateSnapshotCmd] 
 (API-Job-Executor-44:ctx-15935b7b job-147 ctx-9af4a710) VOLSS: 
 createSnapshotCmd starts:1414413659955
 2014-10-27 18:10:59,978 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (API-Job-Executor-44:ctx-15935b7b job-147 ctx-9af4a710) Sync job-148 
 execution on object VmWorkJobQueue.14
 2014-10-27 18:11:00,456 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
 (RouterStatusMonitor-1:ctx-f35c279c) Found 2 routers to update status.
 2014-10-27 18:11:00,458 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
 (RouterStatusMonitor-1:ctx-f35c279c) Found 0 networks to update RvR status.
 2014-10-27 18:11:00,526 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (AsyncJobMgr-Heartbeat-1:ctx-473efbed) Execute sync-queue item: 
 SyncQueueItemVO {id:52, queueId: 34, contentType: AsyncJob, contentId: 148, 
 lastProcessMsid: null, lastprocessNumber: null, lastProcessTime: null, 
 created: Mon Oct 27 18:10:59 IST 2014}
 2014-10-27 18:11:00,529 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (AsyncJobMgr-Heartbeat-1:ctx-473efbed) Schedule queued job-148
 2014-10-27 18:11:00,561 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (AsyncJobMgr-Heartbeat-1:ctx-8dfe1318) Begin cleanup expired async-jobs