For some reason, we have the same issue (missing disks / snapshot-of) on our environment. (XO from source commit a5077)
This is a major issue for us. We use Terraform to manage our VMs, and the missing VDIs are causing Terraform to fail. As a result, we are currently unable to manage our VMs using Terraform.
➜ dacsvm-db02 git:(main) tofu plan -var-file="dacsvm-db02.tfvars"
module.vm.xenorchestra_vm.vm: Refreshing state... [id=e36fcd8a-b88c-42f7-6d61-2aa639f63b4a]
Planning failed. OpenTofu encountered an error while generating this plan.
╷
│ Error: Could not find client.VDI with query: {VDIId:cad7d739-35c2-4585-9991-4c2f3fc6531c SrId: NameLabel: NameDescription: Size:0 VBDs:[] Parent: PoolId: Tags:[]}
│
│ with module.vm.xenorchestra_vm.vm,
│ on ../modules/vm/main.tf line 16, in resource "xenorchestra_vm" "vm":
│ 16: resource "xenorchestra_vm" "vm" {
│
╵