Thanks for the quick feedback. Didn't realize there was a better mailing list.

Basically what I'm trying to do is create a big suite of integration tests for the vagrant provider.

My first attempt of tests basically assumes there's an active ovirt setup to use and uses secrets to run vagrant configs and assertions. It works but having a cluster up isn't a good practice.

I'm looking at using bits and pieces from ovirt-system-tests and Lago to bootstrap a simple cluster (master and single host).

Vagrant requires coming up from a template (and a modified one at that [1]. So I was hoping to use lago and the Lago ost to create a VM (done). Run things against it (done) then create an ovirt vm template from it (where I'm currently stuck). That would get me a great place to start running a matrix of the Ruby sdk versions, vagrant versions, and ovirt versions (4.0,4.1, etc) to run true integration tests on the vagrant provider.

The issue right now is the lago documentation is pretty scattered and limited so I'm left cargo culting allot of existing stuff and working off very limited examples. My suspicion is I'll need to mix and match the ovirt python sdk and Lago to get the template portion working.

I was surprised to see that the system tests assert alot around VM creating, snapshotting, stopping, and importing templates, but no tests around exporting templates

[1] https://github.com/myoung34/vagrant-ovirt4/blob/master/tools/prepare_redhat_for_box.sh

On Thu, Aug 24, 2017, 1:55 AM Nadav Goldin <ngoldin@redhat.com> wrote:
> Im currently neck deep in ovirt-system-tests and lago
I see alot of usages about importing VMs from templates, but are there
any examples of exporting a VM to template?

If you're referring to the available Lago templates it is described at
[1]. With regard to the lago-ost-plugin(aka python-lago-ovirt), true,
we are lacking some docs there. Also note that for OST it self we have
[2], which has some more OST specific details.

Please elaborate on what you are trying to achieve, we might already
have that feature(but lacking docs, such as 'lago export').


Thanks,

Nadav.



[1] http://lago.readthedocs.io/en/latest/Templates.html
[2] http://ovirt-system-tests.readthedocs.io

On Thu, Aug 24, 2017 at 8:42 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
>
>
> On Thu, Aug 24, 2017 at 4:56 AM, Marc Young <3vilpenguin@gmail.com> wrote:
>>
>> Im currently neck deep in ovirt-system-tests and lago
>> I see alot of usages about importing VMs from templates, but are there any
>> examples of exporting a VM to template?
>
>
> I assume you are looking into Lago templates, not oVirt templates?
> Currently, I'm not aware of a way. What template do you need?
>>
>>
>> Side note I cant find a good source of methods available for use in
>> python-lago-ovirt (or even python-lago). The docs[1] are pretty lacking
>
>
> Can you open an issue about it? What do you wish to perform?
> TIA,
> Y.
>
>>
>>
>> [1] http://lago.readthedocs.io/en/latest/lago.html
>>
>> _______________________________________________
>> Devel mailing list
>> Devel@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/devel
>
>
>
> _______________________________________________
> lago-devel mailing list
> lago-devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/lago-devel
>