poonam-agarwal28 opened a new issue #5660:
URL: https://github.com/apache/cloudstack/issues/5660


   ##### ISSUE TYPE
   
    * Improvement Request
   
   ##### COMPONENT NAME
   <!--
   CEPH, API
   -->
   ~~~
   
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   4.15
   -->
   
   ~~~
   
   ~~~
   
   ##### CONFIGURATION
   <!--
   Cloudstack 4.15 with KVM Hypervisors and RBD/CEPH as Primary Storage. 
Secondary Storage on NFS.
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   CentOS 7.8
   -->
   
   
   ##### SUMMARY
   <!-- 
   The current VM deployment process on CEPH as Primary Store runs below 
command during the deployment to convert the image to raw and also write to the 
CEPH Pool at the same time. This takes huge amount of time eg below has a 15GB 
template which took around 3+ Hours. This causes the VM deployment fail due to 
Job Timeout
   
   If this process is converted to a 2-Step Process as below
   
   Step 1: Image converted to raw
   Step 2: Raw image moved to CEPH either using qemu-img convert or rbd as 
below takes much lower time.
   
    -->
   
   
   ##### STEPS TO REPRODUCE
   <!--
   Upload a big template with root volume size of 300GB or higher ( NFS as 
secondary Store )
   Deploy a VM with the template with CEPH as the backend primary store.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   [root@TEST]# time qemu-img convert -p -O raw 
/mnt/f268aaee-6090-3fc9-9e9d-41b807bfa8c5.qcow2 
rbd:cloudstack/test450:mon_host=VXILAB1-CMON.ceph.local:auth_supported=cephx:id=cloudstack:key=AQDicxxxxxxxxxxxxxxxxFrNxwwxwxw==:rbd_default_format=2:client_mount_timeout=30
       (100.00/100%)
   
   real    114m40.176s
   user    10m34.924s
   sys     4m3.139s
   
   [root@VXIMUM1-CHVZR-2 mnt]# time qemu-img convert -p -O raw 
/media/ISETest12.raw 
rbd:cloudstack/testimage:mon_host=VXILAB1-CMON.ceph.local:auth_supported=cephx:id=cloudstack:key=AQxxxxxxxxxxxxxxrNDqlJueQ==:rbd_default_format=2:client_mount_timeout=30
       (0.00/100%)
       (32.02/100%)
   
       (100.00/100%)
   
   real    74m1.770s
   user    4m40.347s
   sys     11m20.207s
   
   [root@VXIMUM1-CHVZR-1 media]# time rbd import ISETest12.raw --dest-pool 
cloudstack
   
   Importing image: 100% complete...done. 
   
   real    7m58.793s
   
   user    1m30.641s
   
   sys     2m39.082s
   
   [root@VXIMUM1-CHVZR-2 mnt]# time qemu-img convert -p -O raw 
/media/f268aaee-6090-3fc9-9e9d-41b807bfa8c5.qcow2 /media/ISETest12.raw
       (100.00/100%)
   
   real    9m3.571s
   user    4m8.513s
   sys     2m41.161s
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   The expected result is that VM deployment on CEPH should complete in a 
reasonable time before the job times out.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   The actual result is that the first time VM deployment on CEPH takes a long 
time and eventually times out due to the conversion process being extremely 
slow.
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to