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