<div dir="ltr">Hi Yaniv<div><br></div><div>We attempted to share the code a few years back, but I don't think it got accepted.</div><div><br></div><div>In vdsm.conf we have two bridged interfaces, each connected to a SAN uplink:</div><div><div><br></div><div>[irs]</div><div>iscsi_default_ifaces = san1,san2</div></div><div><br></div><div>And here is a diff of the file /usr/lib/python2.7/site-packages/vdsm/storage/ vs the original for <span style="color:rgb(119,119,119);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:12px">vdsm-4.20.17-1 :</span></div><div><span style="color:rgb(119,119,119);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:12px"><br></span></div><div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">463,498c463,464</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< </span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< # Original Code ##</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< </span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< #iscsi.addIscsiNode(self._iface, self._target, self._cred)</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< #timeout = config.getint("irs", "udev_settle_timeout")</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< #udevadm.settle(timeout)</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< </span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< ### Altered Code for EqualLogic Direct LUNs for Keele University : G.Lloyd ###</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< </span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< ifaceNames = config.get('irs', 'iscsi_default_ifaces').split(',')</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< if not ifaceNames:</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< iscsi.addIscsiNode(self._iface, self._target, self._cred)</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< else:</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< self.log.debug("Connecting on interfaces: {}".format(ifaceNames))</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< #for ifaceName in ifaceNames:</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< success = False</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< while ifaceNames:</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< self.log.debug("Remaining interfaces to try: {}".format(ifaceNames))</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< ifaceName = ifaceNames.pop()</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< try:</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< self.log.debug("Connecting on {}".format(ifaceName))</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< iscsi.addIscsiNode(iscsi.IscsiInterface(ifaceName), self._target, self._cred)</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< self.log.debug("Success connecting on {}".format(ifaceName))</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< success = True</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< except:</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< self.log.debug("Failure connecting on interface {}".format(ifaceName))</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< if ifaceNames:</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< self.log.debug("More iscsi interfaces to try, continuing")</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< pass</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< elif success:</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< self.log.debug("Already succeded on an interface, continuing")</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< pass</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< else:</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< self.log.debug("Could not connect to iscsi target on any interface, raising exception")</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< raise</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< timeout = config.getint("irs", "scsi_settle_timeout")</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">---</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">> iscsi.addIscsiNode(self._iface, self._target, self._cred)</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">> timeout = config.getint("irs", "udev_settle_timeout")</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">501,502d466</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< ### End of Custom Alterations ###</span></font></div><div><font color="#777777" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">< </span></font></div></div><div><br></div><div>Regards</div><div><br></div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><i>Gary Lloyd</i><div><span style="color:rgb(136,136,136)">______________________________</span><span style="color:rgb(136,136,136)">__________________</span><br><div><span style="color:rgb(136,136,136)">I.T. Systems:Keele University</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Finance & IT Directorate</span></div><div><span style="color:rgb(136,136,136)">Keele:Staffs:IC1 Building:ST5 5NB:UK</span><br style="color:rgb(136,136,136)"><a href="tel:%2B44%201782%20733073" value="+441782733073" style="color:rgb(17,85,204)" target="_blank">+44 1782 733063</a><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">______________________________</span><span style="color:rgb(136,136,136)">__________________</span></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 11 February 2018 at 08:38, Yaniv Kaul <span dir="ltr"><<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 9, 2018 at 4:06 PM, Gary Lloyd <span dir="ltr"><<a href="mailto:g.lloyd@keele.ac.uk" target="_blank">g.lloyd@keele.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi</div><div><br></div><div>Is it possible/supported to upgrade from Ovirt 3.6 straight to Ovirt 4.2 ?</div></div></blockquote><div><br></div><div>No, you go through 4.0, 4.1.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Does live migration still function between the older vdsm nodes and vdsm nodes with software built against Ovirt 4.2 ?</div></div></blockquote><div><br></div><div>Yes, keep the cluster level at 3.6.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>We changed a couple of the vdsm python files to enable iscsi multipath on direct luns.</div><div>(It's a fairly simple change to a couple of the python files).</div></div></blockquote><div><br></div><div>Nice!</div><div>Can you please contribute those patches to oVirt?</div><div>Y.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>We've been running it this way since 2012 (Ovirt 3.2).<br></div><div><br></div><div>Many Thanks</div><span class="m_-8908020949221117604HOEnZb"><font color="#888888"><div><br></div><div><div class="m_-8908020949221117604m_-5643680232896336743gmail_signature"><div dir="ltr"><div><div dir="ltr"><i>Gary Lloyd</i><div><span style="color:rgb(136,136,136)">______________________________</span><span style="color:rgb(136,136,136)"><wbr>__________________</span><br><div><span style="color:rgb(136,136,136)">I.T. Systems:Keele University</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Finance & IT Directorate</span></div><div><span style="color:rgb(136,136,136)">Keele:Staffs:IC1 Building:ST5 5NB:UK</span><br style="color:rgb(136,136,136)"><a href="tel:%2B44%201782%20733073" value="+441782733073" style="color:rgb(17,85,204)" target="_blank">+44 1782 733063</a><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">______________________________</span><span style="color:rgb(136,136,136)"><wbr>__________________</span></div></div></div></div></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div></div>