OLVM: Template Import fails with the error - VMT_CANNOT_IMPORT_TEMPLATE_EXISTS
(Doc ID 3064554.1)
Last updated on JANUARY 10, 2025
Applies to:
Linux OS - Version Oracle Linux 7.2 with Unbreakable Enterprise Kernel [4.1.12] and laterLinux x86-64
Symptoms
Storage Domain import is a valid upgrade method in the sense that a Storage Domain can be detached from an OLVM version 4.3 (or 4.4) and imported in a setup running under OLVM 4.5.
The first time the Storage Domain is imported, all templates must be imported first, and only after that the VMs can then be imported.
The problem occurs when re-attaching the Storage Domain a second time - as an example:
- In OLVM 4.3, several VMs and templates exist in their Storage Domain
- All Virtual Machines were created based on the templates
- A temporary Storage Domain was created, and VMs and templates copied/moved to the Storage Domain
- The temporary Storage Domain is detached from OLVM 4.3 and attached to OLVM 4.5
- After importing the templates, the templates are copied to the final Storage Domain in OLVM 4.5
- After importing the templates, it is possible to import the VMs and move them to the final Storage Domain in OLVM 4.5
- Storage Domain is then detached and re-attached to OLVM 4.3 a second time with the intent of moving further VMs
- After moving further VMs, the Storage Domain is detached in OLVM 4.3 and re-attached to OLVM 4.5.
- When attempting to import a VM, the following error occurs:
2024-11-08 14:38:06,852+02 WARN [org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand] (default task-667) [0e532cd0-fb0d-4478-9f38-b3936b71029d] Validation of action 'ImportVmFromConfiguration' failed for user admin@internal-authz. Reasons: VAR__ACTION__IMPORT,VAR__TYPE__VM,ACTION_TYPE_FAILED_TEMPLATE_NOT_FOUND_ON_DESTINATION_DOMAIN - When attempting to re-import the Template, which at this stage exists in the Temporary Storage Domain and OLVM 4.5 Storage Domain the following error occurs:
2024-11-08 14:38:15,210+02 WARN [org.ovirt.engine.core.bll.exportimport.ImportVmTemplateFromConfigurationCommand] (default task-669) [d47e34b4-5637-4ff6-9334-805a4dea051c] Validation of action 'ImportVmTemplateFromConfiguration' failed for user admin@internal-authz. Reasons: VAR__ACTION__IMPORT,VAR__TYPE__VM_TEMPLATE,VMT_CANNOT_IMPORT_TEMPLATE_EXISTS,$TemplateOrVmName
Changes
A temporary Storage Domain is used to move VMs from an OLVM 4.3 setup to an OLVM 4.5 setup.
To avoid excessive downtimes, the VM import is done in several phases (multiple detach/attach/moves).
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |