<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:39:21 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-4066] init_test_env misuses `dirname $0` to locate server modules</title>
                <link>https://jira.whamcloud.com/browse/LU-4066</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In init_test_env we have the following code to locate server modules:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;    if [ ! -f /lib/modules/$(uname -r)/kernel/fs/lustre/mdt.ko -a \
        ! -f /lib/modules/$(uname -r)/updates/kernel/fs/lustre/mdt.ko -a \
        ! -f `dirname $0`/../mdt/mdt.ko ]; then
        export CLIENTMODSONLY=yes
    fi
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;When running from a build directory (with modules not installed in /lib/modules/...) this is broken when init_test_env is called by rpc.sh through do_rpc_nodes:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;do_rpc_nodes () {
        local list=$1
        shift

        [ -z &quot;$list&quot; ] &amp;amp;&amp;amp; return 0

        # Add paths to lustre tests for 32 and 64 bit systems.                                                 
	local LIBPATH=&quot;/usr/lib/lustre/tests:/usr/lib64/lustre/tests:&quot;
        local TESTPATH=&quot;$RLUSTRE/tests:&quot;
        local RPATH=&quot;PATH=${TESTPATH}${LIBPATH}${PATH}:/sbin:/bin:/usr/sbin:&quot;
        do_nodesv $list &quot;${RPATH} NAME=${NAME} sh rpc.sh $@ &quot;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;No matter where rpc.sh is found, when it executes it will have $0 set to &apos;rpc.sh&apos; and not to the full path.&lt;/p&gt;

&lt;p&gt;So `dirname $0`/../mdt/mdt.ko should be replaced with $LUSTRE/mdt/mdt.ko.&lt;/p&gt;

&lt;p&gt;I also see that CONFIG is not propagated to rpc.sh.&lt;/p&gt;</description>
                <environment></environment>
        <key id="21274">LU-4066</key>
            <summary>init_test_env misuses `dirname $0` to locate server modules</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>test</label>
                    </labels>
                <created>Fri, 4 Oct 2013 16:56:23 +0000</created>
                <updated>Mon, 28 Oct 2013 15:14:07 +0000</updated>
                            <resolved>Mon, 28 Oct 2013 15:03:02 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="68385" author="jhammond" created="Fri, 4 Oct 2013 17:00:21 +0000"  >&lt;p&gt;Please see &lt;a href=&quot;http://review.whamcloud.com/7854&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7854&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="70010" author="jhammond" created="Mon, 28 Oct 2013 15:03:02 +0000"  >&lt;p&gt;Patch landed to master.&lt;/p&gt;</comment>
                    </comments>
                    <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|hzw4uv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10897</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>