Bug 1025400 - [RFE] Allow template export/import through Glance Storage Domain
Summary: [RFE] Allow template export/import through Glance Storage Domain
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RFEs
Version: ---
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: shani
QA Contact: Avihai
URL:
Whiteboard:
Depends On:
Blocks: RHEV_Template_export_import_glance
TreeView+ depends on / blocked
 
Reported: 2013-10-31 15:23 UTC by Elad
Modified: 2020-04-01 14:52 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
oVirt Team: Storage
Embargoed:
ylavi: ovirt-future?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
engine.log (1.37 MB, application/x-gzip)
2013-10-31 15:23 UTC, Elad
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1539837 0 high CLOSED [RFE][tracker][Cinder] - Improve integration and support with storage using cinderlib 2022-04-24 19:47:51 UTC

Internal Links: 1539837

Description Elad 2013-10-31 15:23:49 UTC
Created attachment 817963 [details]
engine.log

Description of problem:
As for now, RHEV does not have the ability to import ovf disk format from glance.
When user tries to do so, he fails with:

2013-10-31 17:04:01,324 WARN  [org.ovirt.engine.core.bll.ImportRepoImageCommand] (ajp-/127.0.0.1:8702-17) [750f408] CanDoAction of action ImportRepoImage failed. Reasons:VAR__ACTION__IMPORT,VAR__TYPE__VM_DISK,ACTI
ON_TYPE_FAILED_IMAGE_NOT_SUPPORTED


Version-Release number of selected component (if applicable):
rhevm-3.3.0-0.28.beta1.el6ev.noarch


Steps to Reproduce:
1. add a glance images external provider to RHEVM
2. create an ovf disk on RHOS 
3. try to import the disk to glance storage domain in RHEV

Actual results:
It's impossible to import an ovf disk to RHEV from glance


Additional info: engine.log

Comment 1 Haim 2013-11-03 10:06:57 UTC
link to openstack docs:

http://docs.openstack.org/developer/glance/formats.html

Comment 4 Yaniv Kaul 2017-11-16 12:59:44 UTC
We can manually import the OVF, not via Glance. I believe that's good enough?

Comment 5 Arik 2018-03-19 10:41:49 UTC
(In reply to Yaniv Kaul from comment #4)
> We can manually import the OVF, not via Glance. I believe that's good enough?

What do you mean, where would we take the OVF from?

I would imagine that if we are about to share templates via glance then we place them as OVAs there (as a new type or as a raw image with some indication).

Currently, we delegate most of the logic for importing an OVA to the client. Had we done it the other way around, it would have been easier to support importing OVAs from any source. I mean, the client would stream the OVA and the server would be the one that parses the OVF, creates the disks, and streams the content of the disks to the corresponding volumes on the storage domain. Unfortunately, the way it is implemented now would require us to copy the whole OVA from glance and then process it.

Comment 6 Yaniv Kaul 2018-03-19 12:37:08 UTC
(In reply to Arik from comment #5)
> (In reply to Yaniv Kaul from comment #4)
> > We can manually import the OVF, not via Glance. I believe that's good enough?
> 
> What do you mean, where would we take the OVF from?
> 
> I would imagine that if we are about to share templates via glance then we
> place them as OVAs there (as a new type or as a raw image with some
> indication).

Glance supports OVF (https://specs.openstack.org/openstack/glance-specs/specs/mitaka/implemented/ovf-lite.html) 

> 
> Currently, we delegate most of the logic for importing an OVA to the client.
> Had we done it the other way around, it would have been easier to support
> importing OVAs from any source. I mean, the client would stream the OVA and
> the server would be the one that parses the OVF, creates the disks, and
> streams the content of the disks to the corresponding volumes on the storage
> domain. Unfortunately, the way it is implemented now would require us to
> copy the whole OVA from glance and then process it.

If we could upload / downloda OVFs from Glance, we ease the work of sharing between RHVs - they'd set up a single Glance to share between them.

Comment 7 Michal Skrivanek 2020-03-18 15:50:26 UTC
This bug didn't get any attention for a while, we didn't have the capacity to make any progress. If you deeply care about it or want to work on it please assign/target accordingly

Comment 8 Michal Skrivanek 2020-03-18 15:54:56 UTC
This bug didn't get any attention for a while, we didn't have the capacity to make any progress. If you deeply care about it or want to work on it please assign/target accordingly

Comment 9 Michal Skrivanek 2020-04-01 14:49:08 UTC
ok, closing. Please reopen if still relevant/you want to work on it.

Comment 10 Michal Skrivanek 2020-04-01 14:52:04 UTC
ok, closing. Please reopen if still relevant/you want to work on it.


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