<div dir="ltr"><div><div>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.<br><br></div>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.<br><br></div>Not sure if you're facing the same issue, but maybe worth looking into...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 July 2017 at 09:59, Davide Ferrari <span dir="ltr"><<a href="mailto:davide@billymob.com" target="_blank">davide@billymob.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello</p>
<p>I've attached logs from:</p>
<p>- hammer cli (debug) with the command line I've used</p>
<p>- foreman logs</p>
<p>- ovirt engine logs (server.log)</p>
<p><br>
</p>
<p>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</p>
<p><br>
</p>
<p>Thanks!<br>
</p>
<br>
<div class="m_-8822692804267747442moz-cite-prefix">On 24/07/17 20:56, Oved Ourfali wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">CC-ing Ohad and Ivan from the Foreman team to take
a look.
<div dir="auto"><br>
</div>
<div dir="auto">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).</div>
<div dir="auto"><br>
</div>
<div dir="auto">I assume that's not your issue, otherwise you
would have encountered more basic issues. </div>
<div dir="auto"><br>
</div>
<div dir="auto">Also, can you please share your logs from both
environments? </div>
<div dir="auto"><br>
</div>
Ohad/Ivan, any clue?
<div dir="auto"><br>
</div>
<div dir="auto">Thanks, </div>
<div dir="auto">Oved <br>
<div class="gmail_extra" dir="auto"><br>
<div class="gmail_quote">On Jul 24, 2017 18:08, "Davide
Ferrari" <<a href="mailto:davide@billymob.com" target="_blank">davide@billymob.com</a>>
wrote:<br type="attribution">
<blockquote class="m_-8822692804267747442quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello
list<br>
<br>
<br>
is anybody successfully using oVirt + Foreman for VM
creation + provisioning?<br>
<br>
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:<br>
<br>
- cannot create a VM with multiple disks though Foreman
CLI (hammer)<br>
<br>
- 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.<br>
<br>
<br>
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?<br>
<br>
Thanks in advance<br>
<br>
Davide<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>