
--_000_a0d6297bdc3245ba9b9edd86480d19b9CD1001M21corpads_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Using this python I am able to create a direct FC lun properly (and it work= s 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, Produ= ct ID are all blank). I see this Bugzilla [1] is very similar (for iSCSI) which says the issue wa= s fixed in 3.5.0, but it seems to still be present in 3.5.1 for Fibre Chann= el Direct Luns at least. Here's the python I used to test: lun_id =3D '3600a098038303053453f463045727654' lu =3D params.LogicalUnit() lu.set_id(lun_id) lus =3D list() lus.append(lu) storage_params =3D params.Storage() storage_params.set_id(lun_id) storage_params.set_logical_unit(lus) storage_params.set_type('fcp') disk_params =3D 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 =3D api.disks.add(disk_params) [1] https://bugzilla.redhat.com/show_bug.cgi?id=3D1096217 Thanks, Ryan --_000_a0d6297bdc3245ba9b9edd86480d19b9CD1001M21corpads_ 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"=
</p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">storage_params.set_logical_unit(lus)<o:p></o:p= </span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">storage_params.set_type('fcp')<o:p></o:p></spa= n></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">disk_params =3D params.Disk()<o:p></o:p></span= </p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">disk_params.set_format('raw')<o:p></o:p></span= </p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">disk_params.set_interface('virtio')<o:p></o:p>= </span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">disk_params.set_alias(disk_name)<o:p></o:p></s=
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Century Gothic"; panose-1:2 11 5 2 2 2 2 2 2 4;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman","serif";} 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-compose; font-family:"Century Gothic","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} 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"EN-US" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= ">Using this python I am able to create a direct FC lun properly (and it wo= rks if the lun_id is valid). But in the GUI after the disk is added n= one of the fields are populated except LUN ID (Size is <1GB, Serial, Vendor, Product ID are all blank).<o:p></o:p>= </span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= "><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= ">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 Cha= nnel Direct Luns at least.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= "><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= ">Here’s the python I used to test:<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= "><o:p> </o:p></span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">lun_id =3D '3600a098038303053453f463045727654'= <o:p></o:p></span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">lu =3D params.LogicalUnit() <o:p></o:p></span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">lu.set_id(lun_id) &nbs= p; &= nbsp; &nbs= p; <= o:p></o:p></span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">lus =3D list()<o:p></o:p></span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">lus.append(lu)<o:p></o:p></span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas"> &nbs= p; &= nbsp; &nbs= p; <o:p></o:p></span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">storage_params =3D params.Storage()<o:p></o:p>= </span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">storage_params.set_id(lun_id)<o:p></o:p></span= pan></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">disk_params.set_active(True)<o:p></o:p></span>= </p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">disk_params.set_lun_storage(storage_params)<o:= p></o:p></span></p> <p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-size:= 10.0pt;font-family:Consolas">disk =3D api.disks.add(disk_params)<o:p></o:p>= </span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= "><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= "><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= ">[1] <a href=3D"https://bugzilla.redhat.com/show_bug.cgi?id=3D1096217"> https://bugzilla.redhat.com/show_bug.cgi?id=3D1096217</a><o:p></o:p></span>= </p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= "><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= ">Thanks,<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas= ">Ryan<o:p></o:p></span></p> </div> </body> </html> --_000_a0d6297bdc3245ba9b9edd86480d19b9CD1001M21corpads_--