<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body 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="moz-cite-prefix">On 24/07/17 20:56, Oved Ourfali wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJ_kCt58YFHus1+YgdsNwZjk7XY=cAgH6c72d-_v_A7+0D=goQ@mail.gmail.com">
<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"
moz-do-not-send="true">davide@billymob.com</a>>
wrote:<br type="attribution">
<blockquote class="quote" 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"
moz-do-not-send="true">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users"
rel="noreferrer" target="_blank"
moz-do-not-send="true">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>