Importing VM template fails with ERROR: insert or update on table "vm_static" violates foreign key constraint "fk_vm_static_lease_sd_id_storage_domain_static_id"
Issue
- Importing VM template fails with the following error:
ERROR: insert or update on table "vm_static" violates foreign key constraint "fk_vm_static_lease_sd_id_storage_domain_static_id"
- VM/ Template import fails with an HA lease set on it and the source storage domain is detached/ destroyed.
Environment
- Red Hat Virtualization 4.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.