<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I'm trying to generated a lun disk, using the python SDK.<br class=""><br class="">My code can be found at&nbsp;<a href="https://github.com/fbacchella/ovirtcmd/blob/master/ovlib/disks/__init__.py" class="">https://github.com/fbacchella/ovirtcmd/blob/master/ovlib/disks/__init__.py</a><br class=""><br class="">If a try to see the content of a existing disk and test with :<br class="">print&nbsp;disk.get_type()<br class="">print&nbsp;disk.get_storage_type()<br class=""><br class="">I'm getting :<br class="">None<br class="">lun<br class=""><br class="">Now I try to create another LUN disk with<br class="">kwargs['storage_type'] =&nbsp;'lun'<br class="">kwargs['type_'] =&nbsp;'system'<br class=""><br class="">I'm getting:<div class=""><br class=""><font face="Menlo" class="">&gt; POST /api/disks HTTP/1.1<br class="">&gt; &lt;disk&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;type&gt;system&lt;/type&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;interface&gt;virtio-scsi&lt;/interface&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;lun_storage&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;logical_unit id="3600c0ff00026285aed8f355701000000"/&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;/lun_storage&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;storage_type&gt;lun&lt;/storage_type&gt;<br class="">&gt; &lt;/disk&gt;<br class="">...<br class="">&lt; &lt;fault&gt;<br class="">&lt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;reason&gt;Incomplete parameters&lt;/reason&gt;<br class="">&lt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;detail&gt;Storage [type] required for invoke0&lt;/detail&gt;<br class="">&lt; &lt;/fault&gt;<br class=""></font><div class=""><br class=""></div><div class="">changing to&nbsp;</div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; kwargs['type_'] = None&nbsp;</font></div><div class="">change nothing, I'm still getting the same error message.</div><div class=""><br class=""></div><font face="Menlo" class="">&gt; POST /api/disks HTTP/1.1<br class="">&gt; &lt;disk&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;interface&gt;virtio-scsi&lt;/interface&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;lun_storage&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;logical_unit id="3600c0ff00026285aed8f355701000000"/&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;/lun_storage&gt;<br class="">&gt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;storage_type&gt;lun&lt;/storage_type&gt;<br class="">&gt; &lt;/disk&gt;<br class="">...<br class="">&lt; &lt;fault&gt;<br class="">&lt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;reason&gt;Incomplete parameters&lt;/reason&gt;<br class="">&lt;&nbsp;&nbsp; &nbsp;&nbsp;&lt;detail&gt;Storage [type] required for invoke0&lt;/detail&gt;<br class="">&lt; &lt;/fault&gt;<br class=""><br class=""></font><div class=""><br class=""></div><div class="">&nbsp;What did I do wrong ? There is nothing about that in the logs</div><br class="Apple-interchange-newline"><br class=""><br class=""><br class=""></div></body></html>