<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:33:46 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-17237] option for &apos;lctl list_param&apos; to print parameter pathname</title>
                <link>https://jira.whamcloud.com/browse/LU-17237</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;For monitoring tools that are accessing a large number of parameters repeatedly, using the globbing of &quot;&lt;tt&gt;lctl get_param&lt;/tt&gt;&quot; can generate a considerable number of incorrect pathnames for each lookup:&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;# strace -o /tmp/lctl-set_param.txt lctl set_param *.*.job_stats=Expire.500
mdt.myth-MDT0000.job_stats=Expire.500
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0000/job_stats=Expire.500: Invalid argument
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0001/job_stats=Expire.500: Invalid argument
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0002/job_stats=Expire.500: Invalid argument
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0003/job_stats=Expire.500: Invalid argument
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0004/job_stats=Expire.500: Invalid argument
# grep -c ENOENT /tmp/lctl-set_param.txt
147
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is about 25 wrong pathname lookups for each of the 6 parameter files found in this case (though admittedly using a double wildcard is uncommon).  Even for a single parameter there are 8 incorrect pathname lookups due to the globbing, which could be avoided.&lt;/p&gt;

&lt;p&gt;There should be an option for &quot;&lt;tt&gt;lctl list_param PARAMS&lt;/tt&gt;&quot; to print out the actual pathname(s) for &lt;tt&gt;PARAMS&lt;/tt&gt; one time at startup, and then these pathnames could be accessed directly afterward.  Perhaps &quot;&lt;tt&gt;&amp;#45;P&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;&amp;#45;&amp;#45;pathname&lt;/tt&gt;&quot; would be suitable.&lt;/p&gt;

&lt;p&gt;The pathnames for most parameters will be constant for the lifetime of the running service, though software upgrades might potentially change them, so they shouldn&apos;t be saved into a file and should only be generated at runtime.  Also, starting and stopping services on the local machine would change which parameter names are present on the local machine.&lt;/p&gt;</description>
                <environment></environment>
        <key id="78645">LU-17237</key>
            <summary>option for &apos;lctl list_param&apos; to print parameter pathname</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Sat, 28 Oct 2023 06:21:19 +0000</created>
                <updated>Thu, 1 Feb 2024 22:19:15 +0000</updated>
                                            <version>Lustre 2.15.3</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="62924">LU-14442</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="76767">LU-16931</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i03zvz:</customfieldvalue>

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