Skip to content

Create Instance from Backup Failed #12218

@leo79901

Description

@leo79901

problem

While I was trying to create an instance from a backup, it failed.

I have tried both NFS and Linstor storage as target pools when restoring from an NFS backup, and encountered this error.

2025-12-10 09:17:21,196 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-53:[ctx-29561268, job-857]) (logid:0ad3bb95) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.CreateVMFromBackupCmdByAdmin com.cloud.utils.exception.CloudRuntimeException: Failed to create Instance [i-2-65-VM] from backup [{"externalId":"i-2-64-VM\/2025.12.10.08.53.42","name":"nfs-0-nfs-0","uuid":"3acd3982-663f-4d2f-874c-364c5bb22a4a"}] due to: Unable to restore contents from the backup volume [0c3785e2-9473-4c5f-89d7-7c9e449e8bc7]..

I suspect that during the restoration process, the file name being looked for may not match the actual file name stored in the backup, which could be causing the failure to locate the backup file.

Here is a summary of some information. I will try to upload the relevant logs for this part.

<style> </style>
No. Storage Type Backup Stroage Volume ID Volume Name in backup Backup info in database
1 Linstor NFS d9283f2c-26e9-4adf-9816-a54537b6e81a root.drbd1039.qcow2 [{"uuid":"d9283f2c-26e9-4adf-9816-a54537b6e81a","type":"ROOT","size":107374182400,"path":"d9283f2c-26e9-4adf-9816-a54537b6e81a","deviceId":0,"diskOfferingId":"5081ea5d-87ec-4903-a30d-7fab9c378ce8"}]
2 NFS NFS 0c3785e2-9473-4c5f-89d7-7c9e449e8bc7 root.0c3785e2-9473-4c5f-89d7-7c9e449e8bc7.qcow2 [{"uuid":"0c3785e2-9473-4c5f-89d7-7c9e449e8bc7","type":"ROOT","size":107374182400,"path":"0c3785e2-9473-4c5f-89d7-7c9e449e8bc7","deviceId":0,"diskOfferingId":"880ba876-defd-4bf3-b28b-1a973c9dff53"}]

versions

4.22.0

The steps to reproduce the bug

  1. Provision virtual machines using LINSTOR and NFS as the primary storage types respectively.
  2. Back up the VMs to the NFS-based backup repository.
  3. Attempt to restore the backup to a new virtual machine → Restore fails.
  4. Shut down the original virtual machine, then restore the same backup to it → Restore succeeds.

What to do about it?

log.txt

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions