Negative Restore a backup while VM is restoring

  • Related issues: #2559 [BUG] Backup unable to be restored and the VM can’t be deleted

Category:

  • Backup/Restore

Verification Steps

  1. Install Harvester with any nodes
  2. Login to Dashboard then navigate to Advanced/Settings, setup backup-target with NFS or S3
  3. Create Image for VM creation
  4. Create VM vm1
  5. Take backup from vm1 as vm1b
  6. Take backup from vm1 as vm1b2
  7. Click Edit YAML of vm1b, update field status.source.spec.spec.domain.cpu.cores, increase 1
  8. Stop VM vm1
  9. Restore backup vm1b2 with Replace Existing
  10. Restore backup vm1b with Replace Existing when the VM vm1 still in state restoring

Expected Results

  1. You should get an error when trying to restore. image