Bug 1941581 - [RFE] Add to API external template import
Summary: [RFE] Add to API external template import
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.4.7
: 4.4.7
Assignee: Liran Rotenberg
QA Contact: Qin Yuan
URL:
Whiteboard:
: 1951483 (view as bug list)
Depends On:
Blocks: 1937408
TreeView+ depends on / blocked
 
Reported: 2021-03-22 12:19 UTC by Martin Necas
Modified: 2024-10-01 17:44 UTC (History)
6 users (show)

Fixed In Version: ovirt-engine-4.4.7.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-22 15:12:33 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5972341 0 None None None 2021-04-20 20:52:31 UTC
Red Hat Product Errata RHSA-2021:2865 0 None None None 2021-07-22 15:13:39 UTC
oVirt gerrit 114836 0 master MERGED model-api: support external template import 2021-06-01 06:17:37 UTC
oVirt gerrit 114837 0 master MERGED core+api: support external template import 2021-06-09 14:44:20 UTC
oVirt gerrit 115015 0 master MERGED upgrade to model 4.4.30 2021-06-01 13:21:35 UTC
oVirt gerrit 115241 0 master MERGED upgrade to model 4.4.31 2021-06-14 10:00:05 UTC

Description Martin Necas 2021-03-22 12:19:47 UTC
Description of problem:

Currently, we don't have a way to import a template directly from the OVA image.
We can only import VM from OVA with ExternalVmImportsService and then create a template.
It is possible to import the template directly in UI.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Try to import template directly from OVA 
2.
3.

Actual results:
There is no possibility to import the template

Expected results:
Be able to import template as in UI.

Additional info:

Comment 2 Arik 2021-04-20 20:52:31 UTC
*** Bug 1951483 has been marked as a duplicate of this bug. ***

Comment 6 Qin Yuan 2021-06-22 14:17:07 UTC
Verified with:
ovirt-engine-4.4.7.4-0.9.el8ev.noarch

Steps:
1. Create a VM with disk and nic(used template latest-rhel-guest-image-8.3-infra)
2. Export the VM as OVA
3. Remove the VM
4. Import the OVA as template via API:
<external_template_import>
  <template>
    <name>test_template</name>
  </template>
  <cluster id="ebe46dfb-b465-48a5-b12e-a4282c0ec8c8" />
  <storage_domain id="91ada0e9-c34d-4e06-9f1d-d91ec5ada62d" />
  <url>ova:///root/test.ova</url>
  <host id="192294f9-a1ed-44f4-bcad-8bbc88c71d1f" />
</external_template_import>
5. Create a VM from the imported template
6. Start, stop, migrate the VM

Results:
1. Importing OVA as template succeeds.
2. Creating VM from the imported template succeeds.
3. Starting, stopping, migrating VM created from the imported template succeed.

Comment 12 errata-xmlrpc 2021-07-22 15:12:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHV Manager (ovirt-engine) security update [ovirt-4.4.7]), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2865


Note You need to log in before you can comment on or make changes to this bug.