sureshanaparti opened a new issue, #11707:
URL: https://github.com/apache/cloudstack/issues/11707

   ### problem
   
   Restore from NAS backup is not failing for VM with template / disks < 1 GB, 
fails with "Root disk size should be a positive number." error. 
   
   <img width="1258" height="654" alt="Image" 
src="https://github.com/user-attachments/assets/49ae312b-41c5-4d93-95e9-154fb5c8def2";
 />
   
   It seems regression from create VM from backup feature 
(https://github.com/apache/cloudstack/pull/10140)
   
   The size computation below, returns 0 for disks < 1 GB.
   
   
https://github.com/apache/cloudstack/blob/e78b5cc3cc9bcfc50d23c7cce1d706483c748a08/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java#L1168-L1169
   
   
https://github.com/apache/cloudstack/blob/e78b5cc3cc9bcfc50d23c7cce1d706483c748a08/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java#L1192-L1193
   
   ### versions
   
   ACS 4.21.0, KVM Hypervisor, NAS repo configured
   
   ### The steps to reproduce the bug
   
   1. Register a template (< 1 GB) - 
http://dl.openvm.eu/cloudstack/macchinina/x86_64/macchinina-kvm.qcow2.bz2
   2. Deploy a VM using the above template
   3. Assign backup offering and take backup
   4. Go to the backup ,and restore from it.
   
   
   
   ### What to do about it?
   
   Support Restore from NAS backup for VM with template / disks < 1 GB, 
document it if unsupported.


-- 
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