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
[email protected]
http://lists.ovirt.org/mailman/listinfo/users