<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:20: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-8829] &apos;default&apos; Secure RPC rule display issue</title>
                <link>https://jira.whamcloud.com/browse/LU-8829</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Adding a default secure RPC rule followed by a rule for a specific network changes how the initial default rule is displayed when viewed with &apos;lctl get_param mgs.*.live.testfs&apos;&lt;/p&gt;

&lt;p&gt;==&lt;br/&gt;
mgs# lctl conf_param testfs.srpc.flavor.default=skpi&lt;br/&gt;
mgs# lctl get_param mgs.*.live.testfs&lt;br/&gt;
...&lt;br/&gt;
Secure RPC Config Rules:&lt;br/&gt;
testfs.srpc.flavor.default=skpi&lt;/p&gt;

&lt;p&gt;mgs# lctl conf_param testfs.srpc.flavor.tcp=ska&lt;br/&gt;
mgs# lctl get_param mgs.*.live.testfs&lt;br/&gt;
...&lt;br/&gt;
Secure RPC Config Rules:&lt;br/&gt;
testfs.srpc.flavor.tcp=ska&lt;br/&gt;
testfs.srpc.flavor.tcp=skpi&lt;br/&gt;
==&lt;/p&gt;

&lt;p&gt;Notice how the initial testfs.srpc.flavor.default=skpi rule now appears as testfs.srpc.flavor.tcp=skpi.&lt;/p&gt;

&lt;p&gt;Below is the llog_reader dump of  testfs-sptlrpc:&lt;br/&gt;
mgs# llog_reader testfs-sptlrpc &lt;br/&gt;
rec #1 type=10620000 len=224 offset 8192&lt;br/&gt;
rec #2 type=10620000 len=104 offset 8416&lt;br/&gt;
rec #3 type=10620000 len=224 offset 8520&lt;br/&gt;
rec #4 type=10620000 len=224 offset 8744&lt;br/&gt;
rec #5 type=10620000 len=96 offset 8968&lt;br/&gt;
rec #6 type=10620000 len=224 offset 9064&lt;br/&gt;
Header size : 8192&lt;br/&gt;
Time : Fri Nov 11 12:57:59 2016&lt;br/&gt;
Number of records: 6&lt;br/&gt;
Target uuid : config_uuid&lt;br/&gt;
-----------------------&lt;br/&gt;
#01 (224)marker  62 (flags=0x01, v2.8.60.0) testfs          &apos;srpc.flavor.default&apos; Fri Nov 11 12:57:59 2016-&lt;br/&gt;
#02 (104)sptlrpc_conf 0:testfs  1:srpc.flavor.default=skpi  &lt;br/&gt;
#03 (224)END   marker  62 (flags=0x02, v2.8.60.0) testfs          &apos;srpc.flavor.default&apos; Fri Nov 11 12:57:59 2016-&lt;br/&gt;
#04 (224)marker  63 (flags=0x01, v2.8.60.0) testfs          &apos;srpc.flavor.tcp&apos; Fri Nov 11 13:50:03 2016-&lt;br/&gt;
#05 (096)sptlrpc_conf 0:testfs  1:srpc.flavor.tcp=ska  &lt;br/&gt;
#06 (224)END   marker  63 (flags=0x02, v2.8.60.0) testfs          &apos;srpc.flavor.tcp&apos; Fri Nov 11 13:50:03 2016-&lt;/p&gt;</description>
                <environment></environment>
        <key id="41510">LU-8829</key>
            <summary>&apos;default&apos; Secure RPC rule display issue</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="jhammond">John Hammond</assignee>
                                    <reporter username="nblavend">Nathan Lavender</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Nov 2016 19:24:40 +0000</created>
                <updated>Thu, 17 Nov 2016 08:13:36 +0000</updated>
                            <resolved>Thu, 17 Nov 2016 08:13:36 +0000</resolved>
                                    <version>Lustre 2.9.0</version>
                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="173501" author="jhammond" created="Mon, 14 Nov 2016 18:35:47 +0000"  >&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;ommit 907a321c9b9e2cd5f5ccf488cc516ba05dee0ad8
Author: Dmitry Eremin &amp;lt;dmitry.eremin@intel.com&amp;gt;
Date:   Thu Dec 25 15:12:02 2014 +0300

    LU-6070 libcfs: provide separate buffers for libcfs_*2str()
    
    Provide duplicates with separate buffers for libcfs_*2str() functions.
    
    Replace libcfs_nid2str() with libcfs_nid2str_r() function in critical
    places.
    
    Provide buffer size for nf_addr2str functions.
    
    Use __u32 as nf_type always
    
    Signed-off-by: Dmitry Eremin &amp;lt;dmitry.eremin@intel.com&amp;gt;
    Change-Id: I7505271954745d1b1e288ef4e09a7f52bd970536
    Reviewed-on: http://review.whamcloud.com/13185
    Tested-by: Jenkins
    Reviewed-by: John L. Hammond &amp;lt;john.hammond@intel.com&amp;gt;
    Tested-by: Maloo &amp;lt;hpdd-maloo@intel.com&amp;gt;
    Reviewed-by: Andreas Dilger &amp;lt;andreas.dilger@intel.com&amp;gt;

diff --git a/lustre/mgs/lproc_mgs.c b/lustre/mgs/lproc_mgs.c
index 8ae52ea..2e4adf4 100644
--- a/lustre/mgs/lproc_mgs.c
+++ b/lustre/mgs/lproc_mgs.c
@@ -90,16 +90,14 @@ static void seq_show_srpc_rules(struct seq_file *seq, const char *tgtname,
         struct sptlrpc_rule    *r;
         char                    dirbuf[10];
         char                    flvrbuf[40];
-        char                   *net;
+       char                    net[LNET_NIDSTR_SIZE] = &quot;default&quot;;
         int                     i;
 
         for (i = 0; i &amp;lt; rset-&amp;gt;srs_nrule; i++) {
                 r = &amp;amp;rset-&amp;gt;srs_rules[i];
 
-                if (r-&amp;gt;sr_netid == LNET_NIDNET(LNET_NID_ANY))
-                        net = &quot;default&quot;;
-                else
-                        net = libcfs_net2str(r-&amp;gt;sr_netid);
+               if (r-&amp;gt;sr_netid != LNET_NIDNET(LNET_NID_ANY))
+                       libcfs_net2str_r(r-&amp;gt;sr_netid, net, sizeof(net));
 
                 if (r-&amp;gt;sr_from == LUSTRE_SP_ANY &amp;amp;&amp;amp; r-&amp;gt;sr_to == LUSTRE_SP_ANY)
                         dirbuf[0] = &apos;\0&apos;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="173514" author="gerrit" created="Mon, 14 Nov 2016 20:12:25 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/23756&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23756&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8829&quot; title=&quot;&amp;#39;default&amp;#39; Secure RPC rule display issue&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8829&quot;&gt;&lt;del&gt;LU-8829&lt;/del&gt;&lt;/a&gt; mgs: fix default secure RPC rule display&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e811fa9733e7127da1d1ae4d2d9babea3b8677c4&lt;/p&gt;</comment>
                            <comment id="174013" author="gerrit" created="Thu, 17 Nov 2016 04:31:10 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/23756/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23756/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8829&quot; title=&quot;&amp;#39;default&amp;#39; Secure RPC rule display issue&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8829&quot;&gt;&lt;del&gt;LU-8829&lt;/del&gt;&lt;/a&gt; mgs: fix default secure RPC rule display&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 207245382e8b8713f42c013a114aa55d3208b65f&lt;/p&gt;</comment>
                            <comment id="174026" author="pjones" created="Thu, 17 Nov 2016 08:13:36 +0000"  >&lt;p&gt;Landed for 2.9&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|hzyvdr:</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>