<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:11:59 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-7796] &quot;lctl set_param jobid_var&quot; should return error about missing value</title>
                <link>https://jira.whamcloud.com/browse/LU-7796</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&lt;tt&gt;lctl set_param jobid_var&lt;/tt&gt; should return an error and print an error message about a missing value, but instead it is just ignored.&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;[root@centclient05 LU-7437-test]# lctl get_param jobid_var
jobid_var=disable
[root@centclient05 LU-7437-test]# lctl set_param jobid_var
[root@centclient05 LU-7437-test]# echo $?
0
[root@centclient05 LU-7437-test]# lctl get_param jobid_var
jobid_var=disable
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Note, however, that if the &lt;tt&gt;jobid_var&lt;/tt&gt; has a trailing &lt;tt&gt;=&lt;/tt&gt;, it behaves differently, despite meaning the same thing.&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;[root@centclient05 LU-7437-test]# lctl set_param jobid_var=
error: set_param: setting jobid_var: no value
[root@centclient05 LU-7437-test]# echo $?
22
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Any trailing argument of the &quot;set_param&quot; without a corresponding value is ignored.  E.g. the following variations also fail to print an error message when they should because jobid_var does not have a value:&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 ldlm.namespaces.*.lru_size=clear jobid_var
lctl set_param ldlm.namespaces.*.lru_size clear jobid_var
lctl set_param ldlm.namespaces.*osc*.lru_size=clear ldlm.namespaces.*mdc*.lru_size=clear jobid_var
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, if jobid_var contains a trailing &apos;=&apos;, all of these examples print an error message and return a non-zero status.&lt;/p&gt;

&lt;p&gt;In addition, this behavior is inconsistent and should be fixed:&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;[root@centclient05 LU-7437-test]# lctl set_param jobid_var=foo=bar
jobid_var=foo=bar
[root@centclient05 LU-7437-test]# lctl get_param jobid_var
jobid_var=foo=bar
[root@centclient05 LU-7437-test]# lctl set_param jobid_var foo=bar
error: set_param: setting jobid_var=foo=bar: bad value
[root@centclient05 LU-7437-test]# echo $?
22
[root@centclient05 LU-7437-test]# lctl get_param jobid_var
jobid_var=foo=bar
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The two different &lt;tt&gt;lctl set_param&lt;/tt&gt; commands above should mean the same thing.  IMO, lctl set_param should accept values which contain the &lt;tt&gt;=&lt;/tt&gt; character because there is no intrinsic constraint against writing a &lt;tt&gt;=&lt;/tt&gt; to the corresponding procfs/sysfs/debugfs file. &lt;/p&gt;</description>
                <environment></environment>
        <key id="34789">LU-7796</key>
            <summary>&quot;lctl set_param jobid_var&quot; should return error about missing value</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="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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="haasken">Ryan Haasken</reporter>
                        <labels>
                    </labels>
                <created>Thu, 18 Feb 2016 21:51:10 +0000</created>
                <updated>Mon, 11 Apr 2016 04:39:25 +0000</updated>
                            <resolved>Mon, 11 Apr 2016 04:39:25 +0000</resolved>
                                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="142887" author="haasken" created="Thu, 18 Feb 2016 21:51:31 +0000"  >&lt;p&gt;This was introduced by this patch:  &lt;a href=&quot;http://review.whamcloud.com/#/c/18338/12&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/18338/12&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="142888" author="haasken" created="Thu, 18 Feb 2016 21:54:54 +0000"  >&lt;p&gt;I am willing to fix this, and I will provide a patch shortly.&lt;/p&gt;

&lt;p&gt;Please let me know if you disagree with what I believe to be the correct behavior for lctl set_param.  Namely, that it should print an error message and return a nonzero status for trailing valueless parameters of the space-separated form, and that it should allow for &lt;tt&gt;=&lt;/tt&gt; characters in the values in the space-separated format.&lt;/p&gt;</comment>
                            <comment id="142938" author="emoly.liu" created="Fri, 19 Feb 2016 09:33:24 +0000"  >&lt;p&gt;Ryan, when we use &quot;lctl set_param&quot; to set one parameter in one command, we can use the following two formats:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;lctl set_param param_path1=value1&lt;/li&gt;
	&lt;li&gt;or old format, lctl set_param param_path1 value1&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;And when we set multiple parameters, we recommend to use the following format&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;lctl set_param &amp;lt;param_path1=value1 param_path2=value2 ...&amp;gt;. However, space-separated format is still supported in this case, but this format is not easy to read.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;IMO, &quot;=&quot; in the values will get the format mixed up. &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;user-hover&quot; rel=&quot;adilger&quot;&gt;adilger&lt;/a&gt;, do you have advice on this format?&lt;/p&gt;

&lt;p&gt;BTW, &quot;lctl set_param param_path&quot; should return error since there is no valid value. Thanks for pointing this out.&lt;/p&gt;</comment>
                            <comment id="143005" author="adilger" created="Fri, 19 Feb 2016 18:25:35 +0000"  >&lt;p&gt;My preference is that we don&apos;t allow set_param with multiple space-separated arguments, and only as a backward-compatible way of handling single &quot;name value&quot; arguments for older scripts that do not use &quot;name=value&quot;.  As Emoly writes, the chance of having errors with &quot;name1 value1 name2 value2 name3 value3&quot; becomes significant, doubly so if the values allow an embedded &apos;=&apos; in them (which I had never intended, but I guess was never explicitly forbidden).&lt;/p&gt;

&lt;p&gt;I mentioned in another patch that I think &quot;name value&quot; arguments should be deprecated in 2.9 (i.e print a warning to stderr that they should use &quot;name=value&quot;) and this format should be dropped completely at some point in the future (say 3.2 or whatever).&lt;/p&gt;</comment>
                            <comment id="143042" author="haasken" created="Fri, 19 Feb 2016 21:20:32 +0000"  >&lt;p&gt;Thank you both for your input.  I agree that the format with parameters and values separated by an &apos;=&apos; is better than the format with them separated by a space.  I still plan to implement the deprecation warning for the old format in the patch for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5134&quot; title=&quot;Add option to lctl set_param for setting parameters in parallel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5134&quot;&gt;&lt;del&gt;LU-5134&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;My preference is that we don&apos;t allow set_param with multiple space-separated arguments, and only as a backward-compatible way of handling single &quot;name value&quot; arguments for older scripts that do not use &quot;name=value&quot;.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I don&apos;t think it would be acceptable to change the implementation to reject the old format if more than one parameter-value pair is specified.  This would be a change in the actual behavior that could break people&apos;s scripts, regardless of the recommended format for multiple param-value pairs.&lt;/p&gt;

&lt;p&gt;I also see no reason why an &apos;=&apos; should be explicitly forbidden from appearing in the value.  It is possible (although probably not currently required by any Lustre/LNet params) that a value contains an &apos;=&apos;.  I think the current behavior of an &lt;tt&gt;lctl set_param param_path1=value1&lt;/tt&gt; when &lt;tt&gt;value1&lt;/tt&gt; contains an &apos;=&apos; character is correct, and the older format should behave the same way.  This is a minor issue.  The bigger issue is probably that &lt;tt&gt;lctl set_param param_path1&lt;/tt&gt; does not print an error message about a missing value and exit with a nonzero status.&lt;/p&gt;</comment>
                            <comment id="143133" author="emoly.liu" created="Mon, 22 Feb 2016 02:36:12 +0000"  >&lt;p&gt;Ryan, I agree to fix that &quot;bigger&quot; issue first. Would you like to provide a patch for that? Or I can do that.&lt;/p&gt;</comment>
                            <comment id="143145" author="haasken" created="Mon, 22 Feb 2016 07:04:49 +0000"  >&lt;p&gt;I can provide such a patch.  Would it make sense to also add the deprecation warning in this patch instead of in the patch for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5134&quot; title=&quot;Add option to lctl set_param for setting parameters in parallel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5134&quot;&gt;&lt;del&gt;LU-5134&lt;/del&gt;&lt;/a&gt;?  This would only be desirable if this fix will NOT land for 2.8.  See line 1725 here for context:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/10555/5/lustre/utils/lustre_cfg.c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10555/5/lustre/utils/lustre_cfg.c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then see PS6 of that change for a possible implementation of the deprecation warning.  I am undecided on whether it still makes sense to separate the parsing of the param/value pair into a new function in the fix for this bug.  I think it&apos;s good to keep the functions shorter, but one could argue it creates an unnecessarily complicated interface in the code.  I&apos;ll upload a possible patch and look for your feedback this week.&lt;/p&gt;</comment>
                            <comment id="143898" author="gerrit" created="Fri, 26 Feb 2016 08:08:36 +0000"  >&lt;p&gt;Emoly Liu (emoly.liu@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/18684&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18684&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7796&quot; title=&quot;&amp;quot;lctl set_param jobid_var&amp;quot; should return error about missing value&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7796&quot;&gt;&lt;del&gt;LU-7796&lt;/del&gt;&lt;/a&gt; lctl: set_param should report errors for wrong formats&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: dce7003107212cfb07eaa9e968d27a2dfaad9557&lt;/p&gt;</comment>
                            <comment id="143899" author="emoly.liu" created="Fri, 26 Feb 2016 08:21:26 +0000"  >&lt;p&gt;Ryan, I know you are working on &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5134&quot; title=&quot;Add option to lctl set_param for setting parameters in parallel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5134&quot;&gt;&lt;del&gt;LU-5134&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;http://review.whamcloud.com/#/c/10555/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10555/&lt;/a&gt;. In case that your big patch won&apos;t be landed soon to fix this issue, I created this one. Please review it.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7796&quot; title=&quot;&amp;quot;lctl set_param jobid_var&amp;quot; should return error about missing value&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7796&quot;&gt;&lt;del&gt;LU-7796&lt;/del&gt;&lt;/a&gt; lctl: set_param should report errors for wrong formats&lt;/p&gt;

&lt;p&gt;&quot;lctl set_param&quot; should report errors for the following wrong&lt;br/&gt;
parameter formats:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;path&lt;/li&gt;
	&lt;li&gt;path=&lt;/li&gt;
	&lt;li&gt;mix of the above formats, e.g.&lt;br/&gt;
   &quot;lctl set_param jobid_var= timeout=20 abde=efg debug&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;</comment>
                            <comment id="144006" author="haasken" created="Fri, 26 Feb 2016 20:35:58 +0000"  >&lt;p&gt;Thanks, Emoly.  I had actually planned to submit the fix for this issue in a separate patch from my patch for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5134&quot; title=&quot;Add option to lctl set_param for setting parameters in parallel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5134&quot;&gt;&lt;del&gt;LU-5134&lt;/del&gt;&lt;/a&gt;.  I reviewed your patch.  There are a couple of things I don&apos;t agree with about the patch you&apos;ve uploaded, particularly the handling of equals signs in the values when using the older &lt;tt&gt;set_param param value&lt;/tt&gt; format.  I will upload my patch too, and if you could take a look, I would appreciate it.  I would prefer if we could land my patch since I think it will be a little cleaner to add the deprecation of the old &lt;tt&gt;set_param param value&lt;/tt&gt; format to my patch.  I also had already written up some &lt;tt&gt;sanity.sh&lt;/tt&gt; tests for the problems listed in this bug, which I will include in my patch.&lt;/p&gt;</comment>
                            <comment id="144028" author="gerrit" created="Fri, 26 Feb 2016 22:42:01 +0000"  >&lt;p&gt;Ryan Haasken (haasken@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/18703&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18703&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7796&quot; title=&quot;&amp;quot;lctl set_param jobid_var&amp;quot; should return error about missing value&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7796&quot;&gt;&lt;del&gt;LU-7796&lt;/del&gt;&lt;/a&gt; utils: print error with valueless lctl set_param&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2f86b817ad4d73c4f2c6112d743d770b8250898a&lt;/p&gt;</comment>
                            <comment id="144030" author="haasken" created="Fri, 26 Feb 2016 22:48:38 +0000"  >&lt;p&gt;I pushed my version of a fix for this bug here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/18703&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/18703&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please take a look.  I think it simplifies the code a little.  I tried to compromise on allowing &apos;=&apos; in the values in the &apos;set_param param value&apos; format by printing a warning message in that case.&lt;/p&gt;</comment>
                            <comment id="147943" author="gerrit" created="Wed, 6 Apr 2016 01:40:09 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/18703/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18703/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7796&quot; title=&quot;&amp;quot;lctl set_param jobid_var&amp;quot; should return error about missing value&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7796&quot;&gt;&lt;del&gt;LU-7796&lt;/del&gt;&lt;/a&gt; utils: print error with valueless lctl set_param&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: e2973925ca550ad8ef7ad9af72d7d8766f9c1f41&lt;/p&gt;</comment>
                            <comment id="148355" author="emoly.liu" created="Mon, 11 Apr 2016 04:39:25 +0000"  >&lt;p&gt;Landed for 2.9.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="33164">LU-7437</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="34847">LU-7802</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|hzy1tj:</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>