<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Arial Unicode MS";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@Arial Unicode MS";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* 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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.gwt-inlinelabel
        {mso-style-name:gwt-inlinelabel;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle22
        {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 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:black'>Hi again,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'>Having fixed LUNs and </span><span lang=EN-US style='font-size:11.5pt;font-family:"Arial","sans-serif";color:black'>LUN_storage_server_connection_map </span><span lang=EN-US style='color:black'>tables varchar sizes, adding my LIO storage is OK as expected.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'>create_tables.sql script should be fixed.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'>What&#8217;s more, when the error happened, ovirt got in inconsistent state : <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'>-the LUN appeared in ovirt but was locked. Trying to destroy it did nothing in the GUI. Engine logged &#8220;Failed to Acquire Lock to object EngineLock&#8221;. After a while, the LUN disappeared by itself.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'>Ovirt should handle the exception correctly (by totally refusing the LUN registration) and outputting an explicit message (instead of &#8220;error 503&#8221;) could be nice.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'>Vince</span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR'>De&nbsp;:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR'> Vincent Miszczak <br><b>Envoyé&nbsp;:</b> jeudi 22 novembre 2012 10:25<br><b>À&nbsp;:</b> users@ovirt.org<br><b>Objet&nbsp;:</b> Adding LIO iSCSI target as storage fails<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US>Hi guys,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>I&#8217;m trying to add an LIO iSCSI target as data domain into ovirt and it fails.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>The GUI reports :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial Unicode MS","sans-serif";color:black;background:white'>Error: A Request to the Server failed with the following Status Code: 503</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>And the engine log reports :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:10,154 INFO&nbsp; [org.ovirt.engine.core.bll.storage.AddSANStorageDomainCommand] (ajp--0.0.0.0-8009-3) [7ff25919] Running command: AddSANStorageDomainCommand internal: false. Entities affected :&nbsp; ID: aaa00000-0000-0000-0000-123456789aaa Type: System<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:10,177 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand] (ajp--0.0.0.0-8009-3) [7ff25919] START, CreateVGVDSCommand(vdsId = 936326ca-3482-11e2-a6fc-6f050df067da, storageDomainId=6e93ed9e-1dd7-42b7-9e93-dc0187cc6fde, deviceList=[50103ff106001405db2776165d33492091bde115a020100344c494f2d4f52470049424c4f434b3a64623237373631362d356433332d343932302d393162642d]), log id: 7bbd158c<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:10,904 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand] (ajp--0.0.0.0-8009-3) [7ff25919] FINISH, CreateVGVDSCommand, return: LvKD1i-L68S-ix09-OYcr-Ytzd-93wh-8XFe8e, log id: 7bbd158c<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:10,913 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp--0.0.0.0-8009-3) [7ff25919] START, CreateStorageDomainVDSCommand(vdsId = 936326ca-3482-11e2-a6fc-6f050df067da, <a href="mailto:storageDomain=org.ovirt.engine.core.common.businessentities.storage_domain_static@cd3431b">storageDomain=org.ovirt.engine.core.common.businessentities.storage_domain_static@cd3431b</a>, args=LvKD1i-L68S-ix09-OYcr-Ytzd-93wh-8XFe8e), log id: 56c4cbde<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:17,332 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp--0.0.0.0-8009-3) [7ff25919] FINISH, CreateStorageDomainVDSCommand, log id: 56c4cbde<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:17,338 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStorageDomainStatsVDSCommand] (ajp--0.0.0.0-8009-3) [7ff25919] START, GetStorageDomainStatsVDSCommand(vdsId = 936326ca-3482-11e2-a6fc-6f050df067da, storageDomainId=6e93ed9e-1dd7-42b7-9e93-dc0187cc6fde), log id: 5142061<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:17,654 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStorageDomainStatsVDSCommand] (ajp--0.0.0.0-8009-3) [7ff25919] FINISH, GetStorageDomainStatsVDSCommand, return: <a href="mailto:org.ovirt.engine.core.common.businessentities.storage_domains@68e03e79">org.ovirt.engine.core.common.businessentities.storage_domains@68e03e79</a>, log id: 5142061<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:17,674 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVGInfoVDSCommand] (ajp--0.0.0.0-8009-3) [7ff25919] START, GetVGInfoVDSCommand(vdsId = 936326ca-3482-11e2-a6fc-6f050df067da, VGID=LvKD1i-L68S-ix09-OYcr-Ytzd-93wh-8XFe8e), log id: 52756b80<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:17,739 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVGInfoVDSCommand] (ajp--0.0.0.0-8009-3) [7ff25919] FINISH, GetVGInfoVDSCommand, return: [org.ovirt.engine.core.common.businessentities.LUNs@53a8c83f], log id: 52756b80<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:17,758 INFO&nbsp; [org.ovirt.engine.core.utils.transaction.TransactionSupport] (ajp--0.0.0.0-8009-3) [7ff25919] transaction rolled back<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2012-11-22 10:05:17,759 ERROR [org.ovirt.engine.core.bll.storage.AddSANStorageDomainCommand] (ajp--0.0.0.0-8009-3) [7ff25919] Command org.ovirt.engine.core.bll.storage.AddSANStorageDomainCommand throw exception: org.springframework.dao.DataIntegrityViolationException: CallableStatementCallback; SQL [{call insertluns(?, ?, ?, ?, ?, ?, ?, ?)}]; ERROR: value too long for type character varying(50)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>&nbsp; Where: SQL statement &quot;INSERT INTO LUNs(LUN_id, physical_volume_id, volume_group_id, serial, lun_mapping, vendor_id, product_id, device_size) VALUES( $1 ,&nbsp; $2 ,&nbsp; $3 ,&nbsp; $4 ,&nbsp; $5 ,&nbsp; $6 ,&nbsp; $7 ,&nbsp; $8 )&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>PL/pgSQL function &quot;insertluns&quot; line 2 at SQL statement; nested exception is org.postgresql.util.PSQLException: ERROR: value too long for type character varying(50)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>&nbsp; Where: SQL statement &quot;INSERT INTO LUNs(LUN_id, physical_volume_id, volume_group_id, serial, lun_mapping, vendor_id, product_id, device_size) VALUES( $1 ,&nbsp; $2 ,&nbsp; $3 ,&nbsp; $4 ,&nbsp; $5 ,&nbsp; $6 ,&nbsp; $7 ,&nbsp; $8 )&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Being registered to LIO mailing list, I know there are concerns about LUN ID length being pretty insane (127 chars here). Having used an Equallogic iSCSI SAN, I did not have this problem, so I suppose this come from the id length. Until this is fixed at LIO side (if it has to be), ovirt should handle such situations.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>I&#8217;m gonna resize my database col size to test that.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>My configuration : <o:p></o:p></span></p><p class=MsoNormal><span class=gwt-inlinelabel><span lang=EN-US style='font-family:"Arial Unicode MS","sans-serif";color:black;background:white'>oVirt Engine Version:</span></span><span class=apple-converted-space><span lang=EN-US style='font-family:"Arial Unicode MS","sans-serif";color:black;background:white'>&nbsp;</span></span><span class=gwt-inlinelabel><span lang=EN-US style='font-family:"Arial Unicode MS","sans-serif";color:black;background:white'>3.1.0-3.19.el6 (Dreyou repo) running on stock Centos6.3</span></span><span class=gwt-inlinelabel><span style='font-family:"Arial Unicode MS","sans-serif";color:black;background:white'><o:p></o:p></span></span></p><p class=MsoNormal><span class=gwt-inlinelabel><span lang=EN-US style='font-family:"Arial Unicode MS","sans-serif";color:black;background:white'>LIO Target running on Centos6.3/3.6.3-1.el6.elrepo.x86_64 kernel<o:p></o:p></span></span></p><p class=MsoNormal><span class=gwt-inlinelabel><span lang=EN-US style='font-family:"Arial Unicode MS","sans-serif";color:black;background:white'>Ovirt node running on latest Fedora17<o:p></o:p></span></span></p><p class=MsoNormal><span class=gwt-inlinelabel><span lang=EN-US style='font-family:"Arial Unicode MS","sans-serif";color:black;background:white'><o:p>&nbsp;</o:p></span></span></p><p class=MsoNormal><span class=gwt-inlinelabel><span lang=EN-US style='font-family:"Arial Unicode MS","sans-serif";color:black;background:white'>Vince</span></span><o:p></o:p></p></div><br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</body></html>