You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2023/01/20 08:08:32 UTC

[GitHub] [cloudstack] weizhouapache commented on pull request #6005: Support to resize volume during upload

weizhouapache commented on PR #6005:
URL: https://github.com/apache/cloudstack/pull/6005#issuecomment-1398042795

   > Please note that this change is only on the API level - no UI. There is a new parameter 'size' to the 'upload volume' command and you're able to customize the volume size during upload. The problem is I was able to upload a 1.3 GB image in a 1 GB data volume - I think there must be a check for this. Can be reproduced with the following cloudmonkey command:
   > 
   > upload volume name=centos7 url=https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1706.qcow2 zoneid= diskofferingid= format=QCOW2 size=1
   
   it might be different to check the size before the template is uploaded (in ssvm).
   the workaround might be: after the template upload, if the new size is smaller than actual size, use the actual size as volume size, otherwise use the new size.
   cc @DaanHoogland @vladimirpetrov 


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org