<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 28/07/17 17:46, Juan Hernández
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:ef7207f8-2957-2aff-1ff2-fbf7fda4e2b4@redhat.com"><br>
The oVirt access log indeed shows that three disks are added to
the virtual machine. May it be that Foreman thinks that it has to
explicitly add a boot disk? Ohad, Ivan, any idea?
<br>
<br>
</blockquote>
<br>
I've explicitly added the template id to the hammer command line and
still adds 3 disks but at least now two of them respect the size I'm
passing through Hammer. But it still sets a random disk as the
bootable one and I cannot find a way to force to use the disk
already present in the oVirt template as the bootable one<br>
Is there a way in oVirt to log the JSONs passed in the various POST
requests?<br>
<br>
<blockquote type="cite"
cite="mid:ef7207f8-2957-2aff-1ff2-fbf7fda4e2b4@redhat.com">
<blockquote type="cite" style="color: #000000;">
<br>
More over, looking at
/ovirt-engine/api/vms/47f5035a-696c-4578-ace9-b23d865c6aa7/disks
it throws a 404, the endpoint seems to be
/ovirt-engine/api/vms/47f5035a-696c-4578-ace9-b23d865c6aa7/diskattachments
while
/ovirt-engine/api/vms/47f5035a-696c-4578-ace9-b23d865c6aa7/disks
seems to work only with API v3. Maybe I should change the base
URL for the ovirt's API in foreman config, shouldn't I?
<br>
<br>
</blockquote>
<br>
I think you don't need to change anything there. Foreman uses
'rbovirt', and 'rbovirt' explicitly requests version 3 of the API
using the 'Version: 3' header.
</blockquote>
<br>
Well, I've added it anyway and it didn't break anything :)<br>
<br>
</body>
</html>