FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Restore from NAS backup is failing for VM with template / disks < 1 GB · Issue #11707 · apache/cloudstack · GitHub

Repository navigation

Restore from NAS backup is failing for VM with template / disks < 1 GB #11707

Closed

Description

problem

Restore from NAS backup is failing for VM with template / disks < 1 GB, fails with "Root disk size should be a positive number." error.

It seems regression from create VM from backup feature (#10140)

The size computation below, returns 0 for disks < 1 GB.

Long size = volume.getSize() / (1024 * 1024 * 1024);
rootDiskOffering = new VmDiskInfo(diskOffering, size, volume.getMinIops(), volume.getMaxIops());

Long size = volume.getSize() / (1024 * 1024 * 1024);
vmDiskInfoList.add(new VmDiskInfo(diskOffering, size, volume.getMinIops(), volume.getMaxIops(), volume.getDeviceId()));

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.

Activity

  1. self-assigned this
    on Sep 29, 2025
  2. added this to the 4.22.0 milestone on Sep 29, 2025
  3. moved this from Dev In Progress to Todo in Apache CloudStack BugFest - Issueson Sep 30, 2025
  4. removed their assignment
    on Jan 2, 2026
  5. added theissue type on Jan 5, 2026
  6. changed the title [-]Restore from NAS backup is not failing for VM with template / disks < 1 GB[/-] [+]Restore from NAS backup is failing for VM with template / disks < 1 GB[/+] on Mar 3, 2026
  7. harikrishna-patnala commented on Mar 9, 2026

    Member

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

  8. harikrishna-patnala commented on Mar 9, 2026

    Member

    I've tested both on 4.22 and main branch environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL