Prachi Damle created CLOUDSTACK-3962:
----------------------------------------
Summary: VMWare: CopyCommandAnswer reports back the Root disk size
to be zero
Key: CLOUDSTACK-3962
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3962
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Storage Controller
Affects Versions: 4.2.0
Reporter: Prachi Damle
Assignee: edison su
Fix For: 4.2.0
This issue is found from analysis of this ticket:
https://issues.apache.org/jira/browse/CLOUDSTACK-3934
For VmWare, volume creation during VM deployment is reporting back the volume
size to be zero.
This gets saved in the management database causing usage discrepancy.
The VmWareStorageProcessor should report the correct size.
Log showing the Root disk size is 2 GB before sending the CopyCmd:
2013-07-30 13:48:47,833 DEBUG [agent.transport.Request] (Job-Executor-1:job-130
= [ a5582d10-83ae-4797-8fd0-c5ffc10a54ab ]) Seq 1-126746642: Executing: { Cmd ,
MgmtId: 187767034175903, via: 1, Ver: v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"7fcc24af33fc369192b33ecde204be31","origUrl":"http://download.cloud.com/releases/2.2.0/CentOS5.3-x86_64.ova","uuid":"69f75dca-f808-11e2-9ae5-aac5eb5f619f","id":7,"format":"OVA","accountId":1,"checksum":"f6f881b7f2292948d8494db837fe0f47","hvm":false,"displayText":"CentOS
5.3(64-bit) no GUI
(vSphere)","imageDataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3ecae8a1-c59a-33ee-b22b-6bd5758f10e8","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.100","path":"/cpg_vol/sailaja/dvsps1","port":2049}},"name":"centos53-x64","hypervisorType":"VMware"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"1f697d9b-9425-42ef-bfc4-244166f32a9c","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3ecae8a1-c59a-33ee-b22b-6bd5758f10e8","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.100","path":"/cpg_vol/sailaja/dvsps1","port":2049}},"name":"ROOT-26","size":2147483648,"volumeId":40,"vmName":"i-7-26-VM","accountId":7,"format":"OVA","id":40,"hypervisorType":"None"}},"executeInSequence":false,"wait":0}}]
}
Log showing the CopyCmdAnswer reporting back the size of the Root disk to be
zero:
2013-07-30 13:48:52,484 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-7:null) Seq 1-126746642: Response Received:
2013-07-30 13:48:52,485 DEBUG [agent.transport.Request] (DirectAgent-7:null)
Seq 1-126746642: Processing: { Ans: , MgmtId: 187767034175903, via: 1, Ver: v1,
Flags: 10,
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"newData":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"size":0,"path":"ROOT-26-40","accountId":0,"id":0}},"result":true,"wait":0}}]
}
--
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