[Engine-devel] Question about the attribute lunType (LUNs)

Liron Aravot laravot at redhat.com
Tue Jul 30 06:51:53 UTC 2013


Hi Gustavo,

----- Original Message -----
> From: "Gustavo Frederico Temple Pedrosa" <gustavo.pedrosa at eldorado.org.br>
> To: engine-devel at ovirt.org
> Cc: "Leonardo Bianconi" <leonardo.bianconi at eldorado.org.br>
> Sent: Monday, July 29, 2013 9:06:53 PM
> Subject: [Engine-devel] Question about the attribute lunType (LUNs)
> 
> 
> 
> Hello everyone,
> 
> The QEMU/KVM on IBM POWER does not support iSCSI yet. This requires the
> implementation of methods that evaluate if a Disk is a iSCSI LUN or not, in
> order to avoid its use in this specific architecture.
> Looks like this can be determined by the attribute lunType (which is of the
> type StorageType, an Enum) of the class LUNs. But when I retrieve the
> object, the attribute lunType has the value "UNKNOWN", even if I've setted
> it with another value. In the class LunDAODbFacadeImpl there is not a call
> to the "entity.setLunType" method.
> 
> Does anyone know how to retrieve the attribute lunType? Is the "UNKNOW" value
> a bug?
> 

IIRC the lun type isn't saved in the DB - so that DAO will never set it.
This attribute is currently being generated by checking if the LUN is FC or ISCSI based on it's connections (FC - currently means "no connections"
while ISCSI means "has connections"). Therefore you won't see it being set when querying it from the DB.

let me know if you have any further related questions.
Liron.
> Thanks,
> 
> Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa
> 
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
> 



More information about the Engine-devel mailing list