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

--_000_EF26FC1776F7FF46BFC072393EFD13A29A07E9SERV070corpeldora_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello everyone, The QEMU/KVM on IBM POWER does not support iSCSI yet. This requires the imp= lementation of methods that evaluate if a Disk is a iSCSI LUN or not, in or= der 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 obje= ct, the attribute lunType has the value "UNKNOWN", even if I've setted it w= ith another value. In the class LunDAODbFacadeImpl there is not a call to t= he "entity.setLunType" method. Does anyone know how to retrieve the attribute lunType? Is the "UNKNOW" val= ue a bug? Thanks, Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa --_000_EF26FC1776F7FF46BFC072393EFD13A29A07E9SERV070corpeldora_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-language:EN-US;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal; font-family:"Calibri","sans-serif"; color:windowtext;} span.EmailStyle18 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"PT-BR" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black;mso-fareas= t-language:ZH-CN">Hello everyone,<br> <br> The QEMU/KVM on IBM POWER does not support iSCSI yet. This requires the imp= lementation of methods that evaluate if a Disk is a iSCSI LUN or not, in or= der to avoid its use in this specific architecture.<br> 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 obje= ct, the attribute lunType has the value "UNKNOWN", even if I've s= etted it with another value. In the class LunDAODbFacadeImpl there is not a call to the "entity.setLunType"= ; method.<br> <br> Does anyone know how to retrieve the attribute lunType? Is the "UNKNOW= " value a bug?<br> <br> </span><span style=3D"color:black;mso-fareast-language:ZH-CN">Thanks,</span=
<span style=3D"mso-fareast-language:ZH-CN"><o:p></o:p></span></p> <p class=3D"MsoNormal">Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa<o:p>= </o:p></p> </div> </body> </html>
--_000_EF26FC1776F7FF46BFC072393EFD13A29A07E9SERV070corpeldora_--

Hi Gustavo, ----- Original Message -----
From: "Gustavo Frederico Temple Pedrosa" <gustavo.pedrosa@eldorado.org.br> To: engine-devel@ovirt.org Cc: "Leonardo Bianconi" <leonardo.bianconi@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@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 07/29/2013 09:06 PM, Gustavo Frederico Temple Pedrosa wrote:
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?
Thanks,
Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Gustavo - what are you trying to achieve exactly? not allowing iscsi storage domains for ppc, or direct lun type disks (or something else)? Thanks, Itamar

-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: terça-feira, 30 de julho de 2013 07:12 To: Gustavo Frederico Temple Pedrosa Cc: engine-devel@ovirt.org; Leonardo Bianconi Subject: Re: [Engine-devel] Question about the attribute lunType (LUNs)
On 07/29/2013 09:06 PM, Gustavo Frederico Temple Pedrosa wrote:
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?
Thanks,
Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Gustavo - what are you trying to achieve exactly? not allowing iscsi storage domains for ppc, or direct lun type disks (or something else)?
Thanks, Itamar
Hello Itamar, The QEMU/KVM on IBM POWER does not support direct LUN disks (i.e. -drive file=iscsi://ip_address/target/1), so this kind of device cannot be available on the frontend. Thanks, Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa

On 07/30/2013 05:13 PM, Gustavo Frederico Temple Pedrosa wrote:
-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: terça-feira, 30 de julho de 2013 07:12 To: Gustavo Frederico Temple Pedrosa Cc: engine-devel@ovirt.org; Leonardo Bianconi Subject: Re: [Engine-devel] Question about the attribute lunType (LUNs)
On 07/29/2013 09:06 PM, Gustavo Frederico Temple Pedrosa wrote:
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?
Thanks,
Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Gustavo - what are you trying to achieve exactly? not allowing iscsi storage domains for ppc, or direct lun type disks (or something else)?
Thanks, Itamar
Hello Itamar,
The QEMU/KVM on IBM POWER does not support direct LUN disks (i.e. -drive file=iscsi://ip_address/target/1), so this kind of device cannot be available on the frontend.
Thanks, Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa
i could be wrong, but i'm pretty sure direct lun disks in ovirt are done by the host doing the iscsi connection, and mounting the disk as a regular block device to the guest?

-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: terça-feira, 30 de julho de 2013 11:15 To: Gustavo Frederico Temple Pedrosa Cc: engine-devel@ovirt.org; Leonardo Bianconi; Vitor de Lima; Federico Simoncelli Subject: Re: [Engine-devel] Question about the attribute lunType (LUNs)
On 07/30/2013 05:13 PM, Gustavo Frederico Temple Pedrosa wrote:
-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: terça-feira, 30 de julho de 2013 07:12 To: Gustavo Frederico Temple Pedrosa Cc: engine-devel@ovirt.org; Leonardo Bianconi Subject: Re: [Engine-devel] Question about the attribute lunType (LUNs)
On 07/29/2013 09:06 PM, Gustavo Frederico Temple Pedrosa wrote:
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?
Thanks,
Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Gustavo - what are you trying to achieve exactly? not allowing iscsi storage domains for ppc, or direct lun type disks (or something else)?
Thanks, Itamar
Hello Itamar,
The QEMU/KVM on IBM POWER does not support direct LUN disks (i.e. - drive file=iscsi://ip_address/target/1), so this kind of device cannot be available on the frontend.
Thanks, Leonardo Bianconi/Vitor de Lima/Gustavo Pedrosa
i could be wrong, but i'm pretty sure direct lun disks in ovirt are done by the host doing the iscsi connection, and mounting the disk as a regular block device to the guest?
Yes, you are correct. We tested and the VDSM does not pass LUNs directly to QEMU.
participants (3)
-
Gustavo Frederico Temple Pedrosa
-
Itamar Heim
-
Liron Aravot