[ https://issues.apache.org/jira/browse/CLOUDSTACK-4249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13746027#comment-13746027 ]
sadhu suresh edited comment on CLOUDSTACK-4249 at 8/21/13 1:16 PM: ------------------------------------------------------------------- I have tried on normal kVM's NFS storage and its creating properly and its only happening on ceph storage. problem might with capcity calculation with ceph. 205- cretaedfrom ceph primary 206-created form nfs primary. mysql> select * from vm_template where id in(205,206); +-----+---------------------------------------+----------------------+--------------------------------------+--------+----------+------+-----+------+------+--------+---------------------+---------+------------+----------+----------------------+-----------------+---------------+-------------+----------+-------------+-------------+-------------+-----------------+--------------------+--------------+----------+-----------------+-------+--------------+---------+----------------------+ | 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 | +-----+---------------------------------------+----------------------+--------------------------------------+--------+----------+------+-----+------+------+--------+---------------------+---------+------------+----------+----------------------+-----------------+---------------+-------------+----------+-------------+-------------+-------------+-----------------+--------------------+--------------+----------+-----------------+-------+--------------+---------+----------------------+ | 205 | 29b457348-7045-3bbe-9f93-4b6af7fe0787 | templatefromsnapshot | e947f09d-89ab-4181-9424-53bde79fe2cb | 1 | 0 | USER | 1 | 64 | NULL | QCOW2 | 2013-08-21 15:55:55 | NULL | 2 | NULL | templateformsnapshot | 0 | 0 | 12 | 1 | 0 | 0 | 1 | KVM | 0 | NULL | 0 | 830839581640192 | NULL | 0 | NULL | 0 | | 206 | 2d419722f-1266-31a6-9e75-d3f8c812e1dd | tempfromnormal | 19598efa-f485-4f22-afcd-f7c588d1e6be | 1 | 0 | USER | 1 | 64 | NULL | QCOW2 | 2013-08-21 18:32:01 | NULL | 2 | NULL | normal | 0 | 0 | 12 | 1 | 0 | 0 | 1 | KVM | 0 | NULL | 0 | 8589934592 | NULL | 0 | NULL | 0 | +-----+---------------------------------------+----------------------+--------------------------------------+--------+----------+------+-----+------+------+--------+---------------------+---------+------------+----------+----------------------+-----------------+---------------+-------------+----------+-------------+-------------+-------------+-----------------+--------------------+--------------+----------+-----------------+-------+--------------+---------+----------------------+ 2 rows in set (0.00 sec) was (Author: sadhu): I have tried on normal kVM's NFS storage and its creating properly and its only happening on ceph storage. 205- cretaedfrom ceph primary 206-created form nfs primary. ************************* 13. row *************************** id: 205 unique_name: 29b457348-7045-3bbe-9f93-4b6af7fe0787 name: templatefromsnapshot uuid: e947f09d-89ab-4181-9424-53bde79fe2cb public: 1 featured: 0 type: USER hvm: 1 bits: 64 url: NULL format: QCOW2 created: 2013-08-21 15:55:55 removed: NULL account_id: 2 checksum: NULL display_text: templateformsnapshot enable_password: 0 enable_sshkey: 0 guest_os_id: 12 bootable: 1 prepopulate: 0 cross_zones: 0 extractable: 1 hypervisor_type: KVM source_template_id: 0 template_tag: NULL sort_key: 0 size: 830839581640192 state: NULL update_count: 0 updated: NULL dynamically_scalable: 0 *************************** 14. row *************************** id: 206 unique_name: 2d419722f-1266-31a6-9e75-d3f8c812e1dd name: tempfromnormal uuid: 19598efa-f485-4f22-afcd-f7c588d1e6be public: 1 featured: 0 type: USER hvm: 1 bits: 64 url: NULL format: QCOW2 created: 2013-08-21 18:32:01 removed: NULL account_id: 2 checksum: NULL display_text: normal enable_password: 0 enable_sshkey: 0 guest_os_id: 12 bootable: 1 prepopulate: 0 cross_zones: 0 extractable: 1 hypervisor_type: KVM source_template_id: 0 template_tag: NULL sort_key: 0 size: 8589934592 state: NULL update_count: 0 updated: NULL dynamically_scalable: 0 14 rows in set (0.00 sec) > [KVM]ceph:showing wrong template size 755.64 TB(template created from > snapshot) > ------------------------------------------------------------------------------- > > Key: CLOUDSTACK-4249 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4249 > 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: sadhu suresh > Assignee: Wido den Hollander > Priority: Critical > Fix For: 4.2.0 > > Attachments: management-server.rar > > > 1.create a ceph instance(configure compute offering with RBD and deploy a vm) > 2.Once it successful,select the root partition and perform snapshot > 3.once snapshot successful,create a template from snapshot > 4.check the displayed size for new created template form snapshot > 5.also try to create vm uning above VM > Actual result: > vm deployment fails due to wrong template size. > Template size shows "755.64 TB" > one ID 6ec00b45-7913-4095-944b-d0fa16adb84a > Description tempfromcs > Hypervisor KVM > Type USER > Ready Yes > Status Download Complete > Size 755.64 TB > Extractable Yes > Password Enabled No > Dynamically Scalable No > Public Yes > Featured No > Cross Zones No > OS Type CentOS 5.3 (64-bit) > Domain ROOT > Account admin > Created Mon, 12 Aug 2013 12:50:46 GMT > ************************** 12. row *************************** > id: 202 > unique_name: 2e9a6a5aa-7e78-33c8-ac61-25846b624569 > name: tempfromcs > uuid: 2c45fa1b-647c-40d2-b532-4b7cafadf2c3 > public: 1 > featured: 0 > type: USER > hvm: 1 > bits: 64 > url: NULL > format: QCOW2 > created: 2013-08-12 12:50:46 > removed: NULL > account_id: 2 > checksum: NULL > display_text: tempfromcs > enable_password: 0 > enable_sshkey: 0 > guest_os_id: 12 > bootable: 1 > prepopulate: 0 > cross_zones: 0 > extractable: 1 > hypervisor_type: KVM > source_template_id: 0 > template_tag: NULL > sort_key: 0 > size: 830839581640192 > state: NULL > update_count: 0 > updated: NULL > dynamically_scalable: 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