<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:49:54 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-5256] Test Infrastructure does not reset debug parameter</title>
                <link>https://jira.whamcloud.com/browse/LU-5256</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The debug parameter is overwritten in our test infrastructure and the attempts to return debug to its original value fail. &lt;/p&gt;

&lt;p&gt;In cfg/local.sh, PTLDEBUG is set to &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;PTLDEBUG=${PTLDEBUG:-&lt;span class=&quot;code-quote&quot;&gt;&quot;vfstrace rpctrace dlmtrace neterror ha config ioctl &lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;&quot;&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If PTLDEBUG is set, the debug parameter is overwritten  in routines in test-framework.sh. For example in load_modules_local(), we overwrite the debug parameter with &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-quote&quot;&gt;&quot;$PTLDEBUG&quot;&lt;/span&gt; ] &amp;amp;&amp;amp; lctl set_param debug=&lt;span class=&quot;code-quote&quot;&gt;&quot;$PTLDEBUG&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Running a tests with auster or calling the script directly does not change the situation&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;# lctl set_param debug=lfsck
debug=lfsck
# lctl get_param debug
debug=warning error emerg console lfsck

# NAME=local ONLY=&quot;1&quot; ./sanity.sh
Logging to local directory: /tmp/test_logs/1403706713
c18: Checking config lustre mounted on /lustre/scratch
Checking servers environments
Checking clients c18 environments
...
== sanity test complete, duration 13 sec == 07:32:06 (1403706726)

# lctl get_param debug
debug=
super ioctl neterror warning dlmtrace error emerg ha rpctrace vfstrace config console

# lctl set_param debug=lfsck
debug=lfsck
# lctl get_param debug
debug=warning error emerg console lfsck

# ./auster -f local -v -k sanity --only 2
Started at Wed Jun 25 07:46:57 PDT 2014
c18: Checking config lustre mounted on /lustre/scratch
Checking servers environments
Checking clients c18 environments
...
sanity returned 0
Finished at Wed Jun 25 07:47:13 PDT 2014 in 16s
./auster: completed with rc 0
# lctl get_param debug
debug=
super ioctl neterror warning dlmtrace error emerg ha rpctrace vfstrace config console
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Some test suites think they are returning debug to its original value, but they are thwarted by routines in test-framework setting the debug value before they can record and save the original value of debug. From sanity.sh, check_and_setup_lustre will set debug before this code is called&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;OLDDEBUG=$(lctl get_param -n debug 2&amp;gt; /dev/&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
lctl set_param debug=-1 2&amp;gt; /dev/&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; || &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
...
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; [ &lt;span class=&quot;code-quote&quot;&gt;&quot;$I_MOUNTED&quot;&lt;/span&gt; != &lt;span class=&quot;code-quote&quot;&gt;&quot;yes&quot;&lt;/span&gt; ]; then
	lctl set_param debug=&lt;span class=&quot;code-quote&quot;&gt;&quot;$OLDDEBUG&quot;&lt;/span&gt; 2&amp;gt; /dev/&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; || &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
fi
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Is there any reason debug shouldn&apos;t be set to &quot;-1&quot;, log all types of messages, for all test suites? There will be more output, but this could be helpful to troubleshoot problems with tests.&lt;/p&gt;</description>
                <environment>All</environment>
        <key id="25312">LU-5256</key>
            <summary>Test Infrastructure does not reset debug parameter</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                            <label>tests</label>
                    </labels>
                <created>Wed, 25 Jun 2014 16:17:32 +0000</created>
                <updated>Tue, 19 Apr 2022 16:14:18 +0000</updated>
                                            <version>Lustre 2.6.0</version>
                    <version>Lustre 2.4.2</version>
                    <version>Lustre 2.5.1</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="87503" author="adilger" created="Wed, 25 Jun 2014 17:21:22 +0000"  >&lt;p&gt;Running with full debug can slow down some if the tests significantly. &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|hzwpxr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14664</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>