Closed savage1279 closed 2 years ago
Thanks for your report! @marcungeschikts is it Kanban card 616 internally? If yes, we might just create a branch with that modification so @savage1279 can test it and see if the problem is solved :)
For sure, it could be very helpful. @savage1279 we will contact you soon.
@savage1279Can you please send me (julien.fontanet@vates.fr) the full metadata (JSON file) of your problematic backup?
I need to understand how to replicate the issue.
@julien-f Yes, I sent
@savage1279 Can you please test the branch fix-import-suspendVm-without-suspendVdi
? It should fix your problem.
If I try to restore a VM backed up in suspended state I get an error: "Cannot read properties of undefined (reading 'other_config')"
To Reproduce Steps to reproduce the behavior:
Additional context This happens because the backup json file contains a reference to VDI, which in not exported to backup, and the VM is in suspended state
If I change the VM state to Running and remove VDI reference directly in JSON backup file, it starts restoring as it should
The problem is that suspended VDI not exported to VDI
The simple solution is to not try import suspended VDI if it doesn't exist
if vdi is not present (and it's really not present) it throws an exeption
Just add a condition:
if (typeof vdi != "undefined") { ... } after line 197 to avoid an exception