<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:15:24 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-15095] lctl: error invoking upcall /usr/sbin/lctl set_param *.*.lbug_on_grant_miscount=1</title>
                <link>https://jira.whamcloud.com/browse/LU-15095</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I&apos;m getting many messages like this:&lt;br/&gt;
lctl: error invoking upcall /usr/sbin/lctl set_param &lt;b&gt;.&lt;/b&gt;.lbug_on_grant_miscount=1&lt;br/&gt;
in the logs.&lt;br/&gt;
this was introduced in bb5d81ea95 (&quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14543&quot; title=&quot;tgt_grant_discard(): avoid  tgd-&amp;gt;tgd_tot_granted overflowing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14543&quot;&gt;&lt;del&gt;LU-14543&lt;/del&gt;&lt;/a&gt; target: prevent overflowing of tgd-&amp;gt;tgd_tot_granted&quot;)&lt;br/&gt;
I don&apos;t quite understand why this clearly debugging tunable needs to be persisten in the config logs?&lt;br/&gt;
IMO, the better would be to have node-wide non-persisten tunable like osd&apos;s track_declare_assert&lt;/p&gt;</description>
                <environment></environment>
        <key id="66611">LU-15095</key>
            <summary>lctl: error invoking upcall /usr/sbin/lctl set_param *.*.lbug_on_grant_miscount=1</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="vsaveliev">Vladimir Saveliev</assignee>
                                    <reporter username="bzzz">Alex Zhuravlev</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Oct 2021 06:54:06 +0000</created>
                <updated>Wed, 16 Mar 2022 23:46:29 +0000</updated>
                            <resolved>Sat, 22 Jan 2022 08:41:24 +0000</resolved>
                                    <version>Upstream</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="315410" author="bzzz" created="Wed, 13 Oct 2021 12:39:42 +0000"  >&lt;p&gt;yet another interesting side-effect of that patch:&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;
== sanity test 901: don&apos;t leak a mgc lock on client umount ========================================================== 10:40:03 (1634121603)
192.168.121.177@tcp:/lustre /mnt/lustre lustre rw,checksum,flock,user_xattr,lruresize,lazystatfs,nouser_fid2path,verbose,noencrypt 0 0
Stopping client tmp.hAgqpwOV43 /mnt/lustre (opts:)
Starting client: tmp.hAgqpwOV43:  -o user_xattr,flock tmp.hAgqpwOV43@tcp:/lustre /mnt/lustre
 sanity test_901: @@@@@@ FAIL: mgc lock leak (16 != 17) 
  Trace dump:
  = ./../tests/test-framework.sh:6330:error()
  = sanity.sh:27444:test_901()
  = ./../tests/test-framework.sh:6634:run_one()
  = ./../tests/test-framework.sh:6681:run_one_logged()
  = ./../tests/test-framework.sh:6522:run_test()
  = sanity.sh:27449:main()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I disabled this line:&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;do_node $(mgs_node) &lt;span class=&quot;code-quote&quot;&gt;&quot;$LCTL set_param -P *.*.lbug_on_grant_miscount=1&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and sanity/901 stops to fail&lt;/p&gt;</comment>
                            <comment id="315414" author="simmonsja" created="Wed, 13 Oct 2021 13:39:36 +0000"  >&lt;p&gt;Looking at the patch their is no lbug_on_grant_miscount on the MGS node. Only the MDS servers. Is lbug_on_grant_miscount meant for MGS servers or MDS servers?&lt;/p&gt;</comment>
                            <comment id="315420" author="bzzz" created="Wed, 13 Oct 2021 14:14:11 +0000"  >&lt;p&gt;hmm, I think MGS was specified to make the parameter persistent, i.e. write it to the config logs for MDTs and OSTs (which do grants)&lt;/p&gt;</comment>
                            <comment id="315973" author="simmonsja" created="Tue, 19 Oct 2021 15:26:10 +0000"  >&lt;p&gt;Looking at it with fresh eyes and I see the -P now. Looking at the error I see a corner case missed. Normally when setting persistent values an udev event is sent out. In this case it doesn&apos;t and ends up with the fall back of using the upcall which does fail. The reason for this is that in&#160;process_param2_config() we use&#160;kset_find_obj() to find a top level kobj to use to send the event. In this case its &apos;*&apos; which doesn&apos;t exist. In this case we should just use the top kset kobject to send the event.&lt;/p&gt;</comment>
                            <comment id="317744" author="simmonsja" created="Tue, 9 Nov 2021 15:59:37 +0000"  >&lt;p&gt;I think the simple solution is change &lt;b&gt;.&lt;/b&gt;.lbug_on_grant_miscount=1 to &lt;span class=&quot;error&quot;&gt;&amp;#91;mdt|obdfilter&amp;#93;&lt;/span&gt;.*.lbug_on_grant_miscount=1&lt;/p&gt;</comment>
                            <comment id="317751" author="bzzz" created="Tue, 9 Nov 2021 16:27:28 +0000"  >&lt;p&gt;do we really need to save this to the log? why not use a variable like cfs_fail_loc or ldiskfs_track_declares_assert ?&lt;/p&gt;</comment>
                            <comment id="317760" author="simmonsja" created="Tue, 9 Nov 2021 17:48:41 +0000"  >&lt;p&gt;That is really good point. Do we want lbug_on_grant_miscount set across reboots?&lt;/p&gt;</comment>
                            <comment id="317825" author="vsaveliev" created="Wed, 10 Nov 2021 12:25:56 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Do we want lbug_on_grant_miscount set across reboots?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Without that the parameter lbug_on_grant_miscount would get turned off in tests which include failover.&lt;br/&gt;
That is, it was made permanent intentionally.&lt;/p&gt;

&lt;p&gt;I did not get &quot;lctl: error invoking upcall&quot; in my tests and will debug the issue.&lt;/p&gt;


&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="317826" author="vsaveliev" created="Wed, 10 Nov 2021 12:44:56 +0000"  >&lt;blockquote&gt;
&lt;p&gt;do we really need to save this to the log? why not use a variable like cfs_fail_loc or ldiskfs_track_declares_assert ?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Do you mean to make it as parameter of module ptlrpc?&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-object&quot;&gt;int&lt;/span&gt; ldiskfs_track_declares_assert;
module_param(ldiskfs_track_declares_assert, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;, 0644);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It sounds like a good idea, thanks.&lt;/p&gt;</comment>
                            <comment id="317827" author="bzzz" created="Wed, 10 Nov 2021 12:45:02 +0000"  >&lt;p&gt;in some cases this parameter is set (written) into the config few times. &lt;/p&gt;

&lt;p&gt;to reproduce it should be enough to run llmount.sh locally:&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;
[   30.040858] Lustre: Modifying parameter general.*.*.lbug_on_grant_miscount in log params
[   30.161330] LustreError: 5029:0:(obd_config.c:1326:process_param2_config()) lctl: error invoking upcall /usr/sbin/lctl set_param *.*.lbug_on_grant_miscount=1: rc = -2; time 191us
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="317829" author="bzzz" created="Wed, 10 Nov 2021 12:58:28 +0000"  >&lt;blockquote&gt;&lt;p&gt;Do you mean to make it as parameter of module ptlrpc?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;yes&lt;/p&gt;</comment>
                            <comment id="317873" author="gerrit" created="Wed, 10 Nov 2021 16:39:46 +0000"  >&lt;p&gt;&quot;Vladimir Saveliev &amp;lt;vlaidimir.saveliev@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45521&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45521&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15095&quot; title=&quot;lctl: error invoking upcall /usr/sbin/lctl set_param *.*.lbug_on_grant_miscount=1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15095&quot;&gt;&lt;del&gt;LU-15095&lt;/del&gt;&lt;/a&gt; target: lbug_on_grant_miscount module parameter&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 91f914fe01c71280523c5fee3bf2d31db593c9e5&lt;/p&gt;</comment>
                            <comment id="321403" author="gerrit" created="Thu, 23 Dec 2021 07:19:24 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45521/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45521/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15095&quot; title=&quot;lctl: error invoking upcall /usr/sbin/lctl set_param *.*.lbug_on_grant_miscount=1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15095&quot;&gt;&lt;del&gt;LU-15095&lt;/del&gt;&lt;/a&gt; target: lbug_on_grant_miscount module parameter&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2c787065441ee60c6c163dc77851d0964f81a89c&lt;/p&gt;</comment>
                            <comment id="321459" author="pjones" created="Thu, 23 Dec 2021 14:40:07 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="322867" author="adilger" created="Sun, 16 Jan 2022 07:55:54 +0000"  >&lt;p&gt;Moving this patch to a module parameter is causing RHEL7.9 testing to fail 100% with:&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/8a2e1a74-c60f-4e33-bbfa-2c3a7efa7e13&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/8a2e1a74-c60f-4e33-bbfa-2c3a7efa7e13&lt;/a&gt;&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;ptlrpc/ptlrpc options: &apos;lbug_on_grant_miscount=1&apos;
[console] Lustre: Lustre: Build Version: 2.14.56_68_g5914687
[console] ptlrpc: Unknown parameter `lbug_on_grant_miscount&apos;
modprobe: ERROR: could not insert &apos;ptlrpc&apos;: Unknown symbol in module, or unknown parameter (see dmesg)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The build version is the same on the client and server, so it isn&apos;t a case of an old build being used on the client. &lt;/p&gt;

&lt;p&gt;I think the problem is that this is a client-only build being tested, and the module parameter is only for the server, so it just doesn&apos;t exist on the el7.9 client. I think the test-framework needs to be changed to only set this parameter on the OSS and MDS and not the client nodes. &lt;/p&gt;</comment>
                            <comment id="323110" author="gerrit" created="Wed, 19 Jan 2022 00:02:29 +0000"  >&lt;p&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46185&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46185&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15095&quot; title=&quot;lctl: error invoking upcall /usr/sbin/lctl set_param *.*.lbug_on_grant_miscount=1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15095&quot;&gt;&lt;del&gt;LU-15095&lt;/del&gt;&lt;/a&gt; tests: skip lbug_on_grant_miscount on client&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c168c309860dbf9745af1105ed3b236c0e2ce89c&lt;/p&gt;</comment>
                            <comment id="323525" author="gerrit" created="Fri, 21 Jan 2022 20:13:20 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/46185/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46185/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15095&quot; title=&quot;lctl: error invoking upcall /usr/sbin/lctl set_param *.*.lbug_on_grant_miscount=1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15095&quot;&gt;&lt;del&gt;LU-15095&lt;/del&gt;&lt;/a&gt; tests: skip lbug_on_grant_miscount on client&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 49e29f38343ce0389df0aecf308b0986de94c029&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="63449">LU-14543</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|i0271z:</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>