[ https://issues.apache.org/jira/browse/CLOUDSTACK-4386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13744974#comment-13744974 ]
ASF subversion and git services commented on CLOUDSTACK-4386: ------------------------------------------------------------- Commit e6b53e5529779d3b1b2fe30990670501b5d90089 in branch refs/heads/master from [~nitinme] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=e6b53e5 ] CLOUDSTACK-4386 KVM - Create template from volume Vmware - Create template from volume / Create template from snapshot send the physical size in the copycommand which accordingly will populate template store ref and the usage_event tables with the right physical size Signed off by : nitin mehta<nitin.me...@citrix.com> > template physical size is set to zero in template store ref table for > templates created from volume is impacting usage > ----------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-4386 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4386 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template > Affects Versions: 4.2.0 > Environment: advanced zone with xen server CP 4.2 build > CloudPlatform-4.2-431-rhel6.3.tar.gz > Reporter: shweta agarwal > Assignee: Nitin Mehta > Priority: Blocker > Fix For: 4.2.0 > > > template physical size is set to zero in template store ref table for > templates created from volume.This is impacting Usage . Usage for such > templates will not be generated > SQL entries for > template-store-ref > "id" "store_id" "template_id" "created" "last_updated" > "job_id" "download_pct" "size" "store_role" "physical_size" > "download_state" "error_str" "local_path" "install_path" "url" > "download_url" "download_url_created" "state" "destroyed" "is_copy" > "update_count" "ref_cnt" "updated" > "27" "1" "207" "2013-08-19 10:44:40" "" "" "100" > "21474836480" "Image" "0" "DOWNLOADED" "" "" > "template/tmpl/4/207/784d06d9-66d7-4c42-a876-9c9f76151ce8.vhd" "" "" > "" "Ready" "0" "0" "2" "0" "2013-08-19 10:47:09" > vm-template entries : > "id" "unique_name" "name" "uuid" "public" "featured" "type" > "hvm" "bits" "url" "format" "created" "removed" > "account_id" "checksum" "display_text" "enable_password" > "enable_sshkey" "guest_os_id" "bootable" "prepopulate" "cross_zones" > "extractable" "hypervisor_type" "source_template_id" > "template_tag" "sort_key" "size" "state" "update_count" "updated" > "dynamically_scalable" > "207" "29fe912a2-62c7-3d4a-9047-c897e6f154aa" "from volume" > "b6b76119-5e72-482b-bea5-cd274a91a553" "1" "1" "USER" "1" "64" > "" "VHD" "2013-08-19 10:44:40" "" "4" "" "from > volume" "0" "0" "221" "1" "0" "0" "1" "XenServer" > "0" "" "0" "21474836480" "" "0" "" "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