<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:55:56 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-5953] lustre[-dkms] needs to automatically account for OFED</title>
                <link>https://jira.whamcloud.com/browse/LU-5953</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Currently our &lt;tt&gt;lustre-dkms&lt;/tt&gt; package does not build against any installed OFED.&lt;/p&gt;

&lt;h6&gt;&lt;a name=&quot;Background&quot;&gt;&lt;/a&gt;Background&lt;/h6&gt;
&lt;p&gt;Outside of the DKMS world, if a user wants to build Lustre with OFED they first build and install OFED and then using Lustre&apos;s &lt;tt&gt;configure&lt;/tt&gt; script, point the Lustre build at the built and installed OFED using the &lt;tt&gt;--with-o2ib&lt;/tt&gt; switch, giving it the path to the OFED installation as an argument.&lt;/p&gt;

&lt;h6&gt;&lt;a name=&quot;Problem&quot;&gt;&lt;/a&gt;Problem&lt;/h6&gt;
&lt;p&gt;This doesn&apos;t work with &lt;tt&gt;lustre-dkms&lt;/tt&gt; because there is no way for the user to provide that OFED path to DKMS built (Lustre) modules.&lt;/p&gt;

&lt;h6&gt;&lt;a name=&quot;Solution&quot;&gt;&lt;/a&gt;Solution&lt;/h6&gt;
&lt;p&gt;The nice part is that this solution is general and will be of benefit to users who compile from source in the traditional manner as well as benefiting &lt;tt&gt;lustre-dkms&lt;/tt&gt; users.&lt;/p&gt;

&lt;p&gt;The solution that I propose is that the code we currently have to handle &lt;tt&gt;--with-o2ib [yes|no|&amp;lt;path_to_ofed&amp;gt;]&lt;/tt&gt; should look for the OFED installation in it&apos;s &lt;b&gt;expected&lt;/b&gt; installed location (i.e. when following the official upstream instructions on how to build and install OFED) when given simply a &lt;tt&gt;yes&lt;/tt&gt; option and that OFED should be preferred over in-kernel IB if the argument is simply &lt;tt&gt;yes&lt;/tt&gt; and OFED is installed.&lt;/p&gt;</description>
                <environment></environment>
        <key id="27717">LU-5953</key>
            <summary>lustre[-dkms] needs to automatically account for OFED</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="utopiabound">Nathaniel Clark</assignee>
                                    <reporter username="bfaccini">Bruno Faccini</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Nov 2014 15:33:01 +0000</created>
                <updated>Thu, 6 Oct 2016 14:24:35 +0000</updated>
                            <resolved>Mon, 20 Jun 2016 12:34:39 +0000</resolved>
                                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="100042" author="dmiter" created="Tue, 25 Nov 2014 16:10:34 +0000"  >&lt;p&gt;Hmm. What should you do if many different OFEDs installed on the machine? What version should you choose?&lt;br/&gt;
In more complicated systems we can have several kernels which compiled with appropriate version of OFED and user in boot time select in which he will boot. How are you going to understand this configuration?&lt;/p&gt;</comment>
                            <comment id="100050" author="pjones" created="Tue, 25 Nov 2014 16:54:04 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/12686/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/12686/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="100054" author="dmiter" created="Tue, 25 Nov 2014 17:14:40 +0000"  >&lt;p&gt;My understanding is we cannot try to find out any version of OFED in build scripts. This is unacceptable in terms of correct build process! We should avoid any heuristics in build process. All we need should be specified by user explicitly through command line options or spec file. Probably when we generate a DKMS spec file we can specify a dependency from particular version of OFED.&lt;/p&gt;

&lt;p&gt;This is bad idea and potentially bring us a lot of issues from customers when this logic will select incorrect version of OFED silently.&lt;/p&gt;</comment>
                            <comment id="100059" author="dmiter" created="Tue, 25 Nov 2014 17:38:08 +0000"  >&lt;p&gt;One of possible solutions can be specify to rpmbuild command option something like &quot;--with mlx_ofed&quot; and in .spec file have the following:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;%&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; %{with mlx_ofed}
BuildRequires: mlnx-ofa_kernel-devel
%define ofed_path /usr/src/ofa_kernel
%endif
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="100616" author="simmonsja" created="Thu, 4 Dec 2014 00:38:07 +0000"  >&lt;p&gt;Will this resolve &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5597&quot; title=&quot;Kernel Module.symvers take precendene instead of MOFED provided&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5597&quot;&gt;&lt;del&gt;LU-5597&lt;/del&gt;&lt;/a&gt; as well?&lt;/p&gt;</comment>
                            <comment id="100812" author="bfaccini" created="Fri, 5 Dec 2014 13:29:25 +0000"  >&lt;p&gt;James, I don&apos;t think so because in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5597&quot; title=&quot;Kernel Module.symvers take precendene instead of MOFED provided&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5597&quot;&gt;&lt;del&gt;LU-5597&lt;/del&gt;&lt;/a&gt;, the &quot;--with-o2ib=&amp;lt;path&amp;gt;&quot; explicit way to specify &lt;span class=&quot;error&quot;&gt;&amp;#91;M&amp;#93;&lt;/span&gt;OFED devel/headers location was used when the purpose of this ticket, and associated patch, is to automize it. I believe &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5597&quot; title=&quot;Kernel Module.symvers take precendene instead of MOFED provided&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5597&quot;&gt;&lt;del&gt;LU-5597&lt;/del&gt;&lt;/a&gt; issue is more a problem that has occurred during inter-modules symbols/addresses resolution. I wonder if MOFED modules were already compiled/installed at the time where Lustre install reached the depmod step??...&lt;/p&gt;</comment>
                            <comment id="110685" author="gerrit" created="Wed, 25 Mar 2015 23:56:22 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/12686/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/12686/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5953&quot; title=&quot;lustre[-dkms] needs to automatically account for OFED&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5953&quot;&gt;&lt;del&gt;LU-5953&lt;/del&gt;&lt;/a&gt; build: use installed OFED by default&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 1222a7114a5558a2f5b81cb570966546e37dec48&lt;/p&gt;</comment>
                            <comment id="110704" author="simmonsja" created="Thu, 26 Mar 2015 02:48:46 +0000"  >&lt;p&gt;I&apos;m seeing the following build errors after this was merged.&lt;/p&gt;

&lt;p&gt;hecking whether to use Compat RDMA... /usr/bin/ofed_info&lt;br/&gt;
rpm: no arguments given for query&lt;br/&gt;
configure: error:&lt;br/&gt;
You seem to have an OFED installed but have not installed it&apos;s devel package.&lt;br/&gt;
If you still want to build Lustre for your OFED I/B stack, you need to install its devel headers RPM.&lt;br/&gt;
Instead, if you want to build Lustre for your kernel&apos;s built-in I/B stack rather than your installed OFED stack, either remove the OFED package(s) or use --with-o2ib=no.&lt;/p&gt;

&lt;p&gt;make: *** No rule to make target `rpms&apos;.  Stop.&lt;/p&gt;

&lt;p&gt;This is using the default OFED stack with RHEL6. I tried the test you merged in the patch and this is the result I get.&lt;/p&gt;

&lt;p&gt;ofed_info | egrep -w &apos;compat-rdma-devel|kernel-ib-devel|ofa_kernel-devel&apos; | xargs rpm -ql | grep /openib&lt;br/&gt;
rpm: no arguments given for query&lt;/p&gt;

&lt;p&gt;but you test if the output is null which is not the case.&lt;/p&gt;</comment>
                            <comment id="110825" author="bfaccini" created="Fri, 27 Mar 2015 14:03:53 +0000"  >&lt;p&gt;Hello James,&lt;br/&gt;
Can you post the output of ofed_info script/cmd from the node where you are building Lustre?&lt;br/&gt;
Thanks in advance.&lt;/p&gt;</comment>
                            <comment id="110843" author="simmonsja" created="Fri, 27 Mar 2015 15:25:58 +0000"  >&lt;p&gt;I looked and found our build machine has been hosed for a long time. Its just this patch exposes that the box have a a mixed OFED 3.5 and RHEL infiniband setup on the build machine.&lt;/p&gt;</comment>
                            <comment id="110857" author="bfaccini" created="Fri, 27 Mar 2015 16:19:38 +0000"  >&lt;p&gt;And this is somewhat its purpose to detect unexpected IB setups ...&lt;/p&gt;</comment>
                            <comment id="111334" author="wangshilong" created="Thu, 2 Apr 2015 05:19:15 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;We failed to build recently with this patch.&lt;/p&gt;

&lt;p&gt;It was because we failed following check:&lt;br/&gt;
 ofed_info | egrep -w &apos;compat-rdma-devel|kernel-ib-devel|ofa_kernel-devel&apos; | xargs rpm -ql | grep &apos;/openib$&apos;&lt;/p&gt;

&lt;p&gt;Here is really output for our building (rhel6.6 with MLNX_OFED_LINUX-2.4-1.0.4-rhel6.6-x86_64):&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@build01 MLNX_OFED_LINUX-2.4-1.0.4-rhel6.6-x86_64&amp;#93;&lt;/span&gt;# ofed_info | egrep -w &apos;compat-rdma-devel|kernel-ib-devel|ofa_kernel-devel&apos; | xargs rpm -ql | grep &apos;/openib&apos;&lt;br/&gt;
/usr/src/ofa_kernel-2.4/ofed_scripts/openib.conf&lt;br/&gt;
/usr/src/ofa_kernel-2.4/ofed_scripts/openibd&lt;br/&gt;
/usr/src/ofa_kernel-2.4/ofed_scripts/openibd.service&lt;br/&gt;
/usr/src/ofa_kernel/default/ofed_scripts/openib.conf&lt;br/&gt;
/usr/src/ofa_kernel/default/ofed_scripts/openibd&lt;br/&gt;
/usr/src/ofa_kernel/default/ofed_scripts/openibd.service&lt;/p&gt;

&lt;p&gt;So maybe you mean &apos;/openibd$&apos;  rather than &apos;/openib$&apos; ? &lt;/p&gt;

&lt;p&gt;Best regards,&lt;br/&gt;
Wang Shilong&lt;/p&gt;</comment>
                            <comment id="111337" author="bfaccini" created="Thu, 2 Apr 2015 08:33:40 +0000"  >&lt;p&gt;Hello Wang,&lt;br/&gt;
Thanks to raise this issue, but I am afraid this may be directly linked to MLNX_OFED different (and recent?) packaging than in the OFED RPMs and which was not in the original scope of this ticket and associated patch.&lt;/p&gt;

&lt;p&gt;OTH, I remember I have used the &quot;openib&quot; file/link name as a reference because I thought to have found it was kept for historical in the different OFED versions packaging. But seems MLNX_OFED now (I checked it is still true/working in/with MLNX_OFED_LINUX-2.1-*) breaks this behavior?&lt;/p&gt;

</comment>
                            <comment id="111340" author="wangshilong" created="Thu, 2 Apr 2015 09:44:36 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;At least MLNX_OFED_LINUX-2.4-1.0.4-rhel6.6-x86_64.tar totally breaks your checks..&lt;/p&gt;

&lt;p&gt;Please check it and download from following link&lt;br/&gt;
&lt;a href=&quot;http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="111359" author="simmonsja" created="Thu, 2 Apr 2015 13:16:43 +0000"  >&lt;p&gt;I&apos;m in the process of setting up a Mellanox stack system so if I run into this issue I will see what I can do to fix it.&lt;/p&gt;</comment>
                            <comment id="111367" author="bfaccini" created="Thu, 2 Apr 2015 14:40:49 +0000"  >&lt;p&gt;The simplest way to fix this could be to use the &quot;--with-o2ib=&amp;lt;path&amp;gt;&quot; configure option/way! And also to request latest MLNX_OFED versions to continue to provide the %install_path/openib link in their devel rpm?&lt;/p&gt;</comment>
                            <comment id="111398" author="wangshilong" created="Thu, 2 Apr 2015 16:50:30 +0000"  >&lt;p&gt;Generally speaking, i don&apos;t think that automatically detecting is a good idea for super users, Bruno, maybe give options to users are better, no?&lt;/p&gt;</comment>
                            <comment id="111399" author="bfaccini" created="Thu, 2 Apr 2015 17:02:08 +0000"  >&lt;p&gt;This automatic detection mechanism is intended for IEEL and DKMS Lustre RPMs, as an experienced super-user, again why don&apos;t you use  the &quot;--with-o2ib=&amp;lt;path&amp;gt;&quot; configure option/way ??&lt;/p&gt;</comment>
                            <comment id="154133" author="gerrit" created="Tue, 31 May 2016 16:31:46 +0000"  >&lt;p&gt;Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/20523&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20523&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5953&quot; title=&quot;lustre[-dkms] needs to automatically account for OFED&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5953&quot;&gt;&lt;del&gt;LU-5953&lt;/del&gt;&lt;/a&gt; build: use installed OFED by default with dpkg&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 53d4d4ba028f2d2df62d836dc43b2ee4ae66ac4e&lt;/p&gt;</comment>
                            <comment id="156177" author="gerrit" created="Mon, 20 Jun 2016 00:58:50 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/20523/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20523/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5953&quot; title=&quot;lustre[-dkms] needs to automatically account for OFED&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5953&quot;&gt;&lt;del&gt;LU-5953&lt;/del&gt;&lt;/a&gt; build: use installed OFED by default with dpkg&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ce8389306ad009f59eb5203260df38ddda16828d&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="26437">LU-5597</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="28055">LU-6083</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzx1j3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16631</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>