[ovirt-users] Add a Direct Lun via rest API (Oivrt 3.3.5)
Allon Mureinik
amureini at redhat.com
Mon Apr 28 08:13:44 UTC 2014
Hi Gary,
Your are correct in your hunch - there's no need to specify size for a direct lun.
However, you have a mistake in your XML - the lun storage clause should be defined in a <lun_storage> element, not <lunStorage>.
----- Original Message -----
> Hello
> I was just wondering if anyone would be able to help me figure out if there
> is a way to login to an ISCSI target (EqualLogic) and add its associated
> volume as a Direct LUN via the REST api.
> I have figured out how to add an existing Direct LUN to a vm.
> I have created a volume on the SAN and then I am attempting to upload some
> xml to the API:
> curl -v -u 'admin at internal:mypass' -H "Content-type: application/xml" -d
> @disk.xml https://ovirt-test/disks/ --insecure
> cat disk.xml
> > <disk>
>
> > <alias>direct_lun</alias>
>
> > <interface>virtio</interface>
>
> > <format>raw</format>
>
> > <lunStorage>
>
> > <type>iscsi</type>
>
> > <logical_unit>
>
> > <address>10.0.0.1</address>
>
> > <port>3260</port>
>
> > <target>iqn.2001-05.com.equallogic:0-1cb196-cff1c713e-e2a004dfcc65357b-dev-directlun</target>
>
> > </logical_unit>
>
> > </lunStorage>
>
> > </disk>
>
> At the moment the API is returning with a HTTP 400:
> <fault>
> <reason>Incomplete parameters</reason>
> <detail>Disk [provisionedSize|size] required for add</detail>
> </fault>
> Is it possible to achieve my goal via the API ?
> Thanks
> Gary Lloyd
> ----------------------------------
> IT Services
> Keele University
> -----------------------------------
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140428/4e02e93c/attachment-0001.html>
More information about the Users
mailing list