VM label names consistentency before and after the restore

  • Related issues: #2662 [BUG] VM label names should be consistent before and after the restore task is done

Category:

  • Network

Verification Steps

  1. Create a VM named ubuntu
  2. Check the label name in virtual machine yaml content, label marked with harvesterhci.io/vmName image
  3. Setup the S3 backup target
  4. Take a S3 backup with name
  5. After the backup task is done, delete the current VM
  6. Restore VM from the backup with the same name ubuntu (Create New) image
  7. Check the yaml content after VM fully operated

Expected Results

The vm lable name is consistent to display harvesterhci.io/vmName after restore from the backup.

  1. When created a new VM, the vm label name marked with harvesterhci.io/vmName image

  2. After new VM restored from backup with the same name, the vm label name still marked with harvesterhci.io/vmName image