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

2015-11-26 Thread Yaniv Dary
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: yd...@redhat.com
IRC : ydary


On Fri, Oct 16, 2015 at 7:54 PM, Groten, Ryan 
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@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2015-10-16 Thread Groten, Ryan
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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users