You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "sureshanaparti (via GitHub)" <gi...@apache.org> on 2025/09/24 11:45:01 UTC
[I] Restore from NAS backup is not failing for VM with template / disks < 1 GB [cloudstack]
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: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Restore from NAS backup is failing for VM with template / disks < 1 GB [cloudstack]
Posted by "harikrishna-patnala (via GitHub)" <gi...@apache.org>.
harikrishna-patnala commented on issue #11707:
URL: https://github.com/apache/cloudstack/issues/11707#issuecomment-4021445656
@sureshanaparti I have tried to reproduce the issue with the same steps. I could restore a VM from the backup and also could create a new VM. May this is fixed already. Could you please check and reopen the issue if there is something else needs fixing.
<img width="1238" height="420" alt="Image" src="https://github.com/user-attachments/assets/6d4032d7-d048-494b-a5e4-13298032f508" />
--
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
Re: [I] Restore from NAS backup is failing for VM with template / disks < 1 GB [cloudstack]
Posted by "harikrishna-patnala (via GitHub)" <gi...@apache.org>.
harikrishna-patnala commented on issue #11707:
URL: https://github.com/apache/cloudstack/issues/11707#issuecomment-4021446830
I've tested both on 4.22 and main branch environments.
--
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
Re: [I] Restore from NAS backup is failing for VM with template / disks < 1 GB [cloudstack]
Posted by "harikrishna-patnala (via GitHub)" <gi...@apache.org>.
harikrishna-patnala closed issue #11707: Restore from NAS backup is failing for VM with template / disks < 1 GB
URL: https://github.com/apache/cloudstack/issues/11707
--
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