<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:13:22 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-14855] nodemap_add_range failed: MGS: OBD_IOC_NODEMAP command CE042 for ... : rc = -12</title>
                <link>https://jira.whamcloud.com/browse/LU-14855</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I attempted to add a new range to a nodemap that we use in production here, and got the following error:&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;
[root@rds-mds10 ~]# lctl nodemap_add_range --name csd3 --range 10.43.240.[198-199]@tcp2                                                                                                                                                                        
error: invalid ioctl: 000ce042 errno: 12 with rc=-1
error: nodemap_add_range: cannot add range &lt;span class=&quot;code-quote&quot;&gt;&apos;10.43.240.[198-199]@tcp2&apos;&lt;/span&gt; to nodemap &lt;span class=&quot;code-quote&quot;&gt;&apos;csd3&apos;&lt;/span&gt;: rc = -1&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;With the following in syslog:&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;
Jul 16 15:27:08 rds-mds10 kernel: LustreError: 111140:0:(nodemap_handler.c:812:nodemap_add_range_helper()) cannot insert nodemap range into &lt;span class=&quot;code-quote&quot;&gt;&apos;csd3&apos;&lt;/span&gt;: rc = -17
Jul 16 15:27:08 rds-mds10 kernel: LustreError: 111140:0:(mgs_handler.c:892:mgs_iocontrol_nodemap()) MGS: OBD_IOC_NODEMAP command CE042 &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; csd3: rc = -12 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The environment of this server is:&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;
[root@rds-mds10 ~]# lfs --version
lfs 2.12.5
[root@rds-mds10 ~]# uname -r
3.10.0-1127.8.2.el7_lustre.x86_64&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Do those errors give any clue as to what the cause of the problem is here?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Matt&lt;/p&gt;</description>
                <environment></environment>
        <key id="65246">LU-14855</key>
            <summary>nodemap_add_range failed: MGS: OBD_IOC_NODEMAP command CE042 for ... : rc = -12</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="mrb">Matt R&#225;s&#243;-Barnett</reporter>
                        <labels>
                    </labels>
                <created>Fri, 16 Jul 2021 14:34:28 +0000</created>
                <updated>Mon, 19 Jul 2021 17:40:40 +0000</updated>
                            <resolved>Mon, 19 Jul 2021 17:40:13 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="307582" author="jhammond" created="Fri, 16 Jul 2021 17:20:11 +0000"  >&lt;p&gt;Does this range already exist in the nodemap?&lt;/p&gt;</comment>
                            <comment id="307584" author="adilger" created="Fri, 16 Jul 2021 17:24:07 +0000"  >&lt;p&gt;Just looking at&#160;&lt;tt&gt;nodemap_add_range_helper()&lt;/tt&gt; it appears this error is generated from &lt;tt&gt;range_insert()&lt;/tt&gt; returning &lt;tt&gt;-EEXIST = -17&lt;/tt&gt;.  Are you sure this range is not already included in the &lt;tt&gt;csd3&lt;/tt&gt; nodemap?&lt;/p&gt;</comment>
                            <comment id="307588" author="mrb" created="Fri, 16 Jul 2021 17:54:13 +0000"  >&lt;p&gt;Weirdly, yes, it is showing up when viewing the ranges from this server, which is in a HA pair and is mounting only the MGS currently:&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;
[root@rds-mds10 ~]# lctl get_param nodemap.csd3.ranges | grep 10.43.240
 { id: 88, start_nid: 10.43.240.198@tcp2, end_nid: 10.43.240.199@tcp2 },
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;but is &lt;b&gt;not&lt;/b&gt; visible from the partner server, currently mounting the MDTs for this filesystem (and was where I was testing this from initially).&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;
[root@rds-mds9 ~]# lctl get_param nodemap.csd3.ranges | grep 10.43.240.198&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and this nodemap has a fileset configured, and the clients whose IPs I&apos;m trying to add here, cannot mount the filesystem.&lt;/p&gt;

&lt;p&gt;So I guess this is some kind of communication problem with the MGS, possibly related to my other issue mentioned in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14802&quot; title=&quot;MGS configuration problems - cannot add new OST, change parameters, hanging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14802&quot;&gt;&lt;del&gt;LU-14802&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For what it&apos;s worth I&apos;ve tried simply restarting the MGS itself, but that didn&apos;t help things. I could try fail it over to the other server, but due to the issues I was having in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14802&quot; title=&quot;MGS configuration problems - cannot add new OST, change parameters, hanging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14802&quot;&gt;&lt;del&gt;LU-14802&lt;/del&gt;&lt;/a&gt;, I&apos;ve kept the MGT device on a separate server so it can be restarted without impacting the MDT devices.&lt;/p&gt;

&lt;p&gt;Thanks for the quick replies,&lt;br/&gt;
Matt&lt;/p&gt;</comment>
                            <comment id="307758" author="pjones" created="Mon, 19 Jul 2021 17:40:13 +0000"  >&lt;p&gt;Let&apos;s focus on &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14802&quot; title=&quot;MGS configuration problems - cannot add new OST, change parameters, hanging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14802&quot;&gt;&lt;del&gt;LU-14802&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="64938">LU-14802</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|i01zf3:</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="10021"><![CDATA[2]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>