[ovirt-users] Adding direct lun from API doesn't populate attributes like size, vendor, etc

Yaniv Dary ydary at redhat.com
Thu Nov 26 15:41:42 UTC 2015


Please open a new bug if it still doesn't work.

Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra'anana, Israel 4350109

Tel : +972 (9) 7692306
        8272306
Email: ydary at redhat.com
IRC : ydary


On Fri, Oct 16, 2015 at 7:54 PM, Groten, Ryan <Ryan.Groten at stantec.com>
wrote:

> Using this python I am able to create a direct FC lun properly (and it
> works if the lun_id is valid).  But in the GUI after the disk is added none
> of the fields are populated except LUN ID (Size is <1GB, Serial, Vendor,
> Product ID are all blank).
>
>
>
> I see this Bugzilla [1] is very similar (for iSCSI) which says the issue
> was fixed in 3.5.0, but it seems to still be present in 3.5.1 for Fibre
> Channel Direct Luns at least.
>
>
>
> Here’s the python I used to test:
>
>
>
> lun_id = '3600a098038303053453f463045727654'
>
> lu = params.LogicalUnit()
>
> lu.set_id(lun_id)
>
> lus = list()
>
> lus.append(lu)
>
>
>
> storage_params = params.Storage()
>
> storage_params.set_id(lun_id)
>
> storage_params.set_logical_unit(lus)
>
> storage_params.set_type('fcp')
>
> disk_params = params.Disk()
>
> disk_params.set_format('raw')
>
> disk_params.set_interface('virtio')
>
> disk_params.set_alias(disk_name)
>
> disk_params.set_active(True)
>
> disk_params.set_lun_storage(storage_params)
>
> disk = api.disks.add(disk_params)
>
>
>
>
>
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1096217
>
>
>
> Thanks,
>
> Ryan
>
> _______________________________________________
> 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/20151126/1f71ba3e/attachment-0001.html>


More information about the Users mailing list