[ovirt-users] oVirt and Foreman

Maton, Brett matonb at ltresources.co.uk
Tue Jul 25 10:19:28 UTC 2017


Last time I looked at creating VM's from foreman there was a problem with
the compute resource being passed from foreman plugin to the ovirt api.

Can't remember exactly what was being sent, but it didn't match any
available ovirt 'instance type' which is why it was failing to create the
machine.

Not sure if you're facing the same issue, but maybe worth looking into...

On 25 July 2017 at 09:59, Davide Ferrari <davide at billymob.com> wrote:

> Hello
>
> I've attached logs from:
>
> - hammer cli (debug) with the command line I've used
>
> - foreman logs
>
> - ovirt engine logs (server.log)
>
>
> Basically I was trying to create a VM from an ovirt template linked to a
> Foreman image (CentOS_73) which consists of a single disk with the OS, and
> attach via Hammer 2 more disks. In this case I get a 404 Resource Not Found
> from Foreman and what I see in the ovirt logs is that the VM is created and
> then immediately deleted via API
>
>
> Thanks!
>
> On 24/07/17 20:56, Oved Ourfali wrote:
>
> CC-ing Ohad and Ivan from the Foreman team to take a look.
>
> Also, by default, RHV 4.1 will use v4 of the api, so you have to use a URL
> in Foreman that uses v3 (as Foreman doesn't support v4 yet).
>
> I assume that's not your issue, otherwise you would have encountered more
> basic issues.
>
> Also, can you please share your logs from both environments?
>
> Ohad/Ivan, any clue?
>
> Thanks,
> Oved
>
> On Jul 24, 2017 18:08, "Davide Ferrari" <davide at billymob.com> wrote:
>
> Hello list
>
>
> is anybody successfully using oVirt + Foreman for VM creation +
> provisioning?
>
> I'm using Foremn (latest version, 1.15.2) with latest oVirt version
> (4.1.3) but I'm encountering several problem, especially related to disks.
> For example:
>
> - cannot create a VM with multiple disks though Foreman CLI (hammer)
>
> - if I create a multidisk VM from Foreman, the second disk always gets the
> "bootable" flag and not the primary image, making the VMs not bootable at
> all.
>
>
> Any other Foreman user sharing the pain here? Foramn's list is not so
> useful so I'm trying to ask here. How do you programmatically create
> virtual machines with oVirt and Foreman? Should I switch do directly using
> oVirt API?
>
> Thanks in advance
>
> Davide
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170725/5c878ef0/attachment-0001.html>


More information about the Users mailing list