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

Groten, Ryan Ryan.Groten at stantec.com
Fri Oct 16 16:54:42 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20151016/543adeab/attachment-0001.html>


More information about the Users mailing list