<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:28:27 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-9699] osp_obd_connect()) ASSERTION( osp-&gt;opd_connects == 1 ) failed</title>
                <link>https://jira.whamcloud.com/browse/LU-9699</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Writeconf on an MDT with index &amp;gt; 0000 will cause &quot;add mdc&quot; to be added to &lt;tt&gt;$FSNAME&amp;#45;client&lt;/tt&gt; config and &quot;&lt;tt&gt;add osp&lt;/tt&gt;&quot; to be added to &lt;tt&gt;$FSNAME&amp;#45;MDTXXXX&lt;/tt&gt; configs.&lt;/p&gt;

&lt;p&gt;However, the configs may already contain these directives. Duplicating the OSP device will cause the assertion failure, unlike duplicating the MDC which will just return &lt;tt&gt;&amp;#45;EEXIST&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;A possible solution is to check configs for duplicates before writing to them. However, sometimes we would like to change nids which are part of &quot;&lt;tt&gt;add mdc&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;add osp&lt;/tt&gt;&quot;.&lt;/p&gt;

&lt;p&gt;Another solution is to mark previous entries with SKIP flags. This patch implements this approach. Since after revoking the config lock, the clients and the MDTs will receive the updated log and apply its newer entries, we still have to handle OSP duplication, but this is only an issue immediately after writeconf processing.&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;[1904009.530445] LDISKFS-fs (md0): mounted filesystem with ordered data mode. quota=on. Opts:
[1904010.544738] LustreError: 11-0: snx11117-MDT0000-osp-MDT0001: Communicating with 10.9.100.10@o2ib3, operation mds_connect failed with -114.
[1904010.814980] Lustre: snx11117-MDD0001: changelog on
[1904019.177269] LustreError: 84835:0:(genops.c:345:class_newdev()) Device snx11117-MDT0002-osp-MDT0001 already exists at 7, won&apos;t add
[1904019.189880] LustreError: 84835:0:(obd_config.c:368:class_attach()) Cannot create device snx11117-MDT0002-osp-MDT0001 of type osp : -17
[1904019.202925] LustreError: 84835:0:(obd_config.c:1610:class_config_llog_handler()) MGC10.9.100.9@o2ib3: cfg command failed: rc = -17
[1904019.215616] Lustre:    cmd=cf001 0:snx11117-MDT0002-osp-MDT0001  1:osp  2:snx11117-MDT0001-mdtlov_UUID
[1904019.215617]
[1904019.228104] LustreError: 84588:0:(mgc_request.c:517:do_requeue()) failed processing log: -17
[1904036.493105] LustreError: 85373:0:(obd_config.c:464:class_setup()) Device 7 already setup (type osp)
[1904036.503095] LustreError: 85373:0:(obd_config.c:1610:class_config_llog_handler()) MGC10.9.100.9@o2ib3: cfg command failed: rc = -17
[1904036.515779] Lustre:    cmd=cf003 0:snx11117-MDT0002-osp-MDT0001  1:snx11117-MDT0002_UUID  2:10.9.100.16@o2ib3
[1904036.515780]
[1904036.528886] LustreError: 84588:0:(mgc_request.c:517:do_requeue()) failed processing log: -17
[1904044.588103] LustreError: 85579:0:(osp_dev.c:1175:osp_obd_connect()) ASSERTION( osp-&amp;gt;opd_connects == 1 ) failed:
[1904044.599237] LustreError: 85579:0:(osp_dev.c:1175:osp_obd_connect()) LBUG
[1904044.606507] Pid: 85579, comm: llog_process_th
[1904044.611432]
[1904044.611433] Call Trace:
[1904044.616506]  [&amp;lt;ffffffffa07dd895&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
[1904044.624041]  [&amp;lt;ffffffffa07dde97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
[1904044.630798]  [&amp;lt;ffffffffa0919f2c&amp;gt;] osp_obd_connect+0x3bc/0x420 [osp]
[1904044.645834]  [&amp;lt;ffffffffa06fb7c1&amp;gt;] lod_add_device+0x8d1/0x1e00 [lod]
[1904044.652674]  [&amp;lt;ffffffffa06f4259&amp;gt;] lod_process_config+0xb89/0x1720 [lod]
[1904044.667268]  [&amp;lt;ffffffffa099a370&amp;gt;] class_process_config+0x1900/0x1ac0 [obdclass]
[1904044.682914]  [&amp;lt;ffffffffa099b664&amp;gt;] class_config_llog_handler+0xa34/0x18b0 [obdclass]
[1904044.697415]  [&amp;lt;ffffffffa095ecf9&amp;gt;] llog_process_thread+0xaa9/0xe80 [obdclass]
[1904044.705421]  [&amp;lt;ffffffffa095f115&amp;gt;] llog_process_thread_daemonize+0x45/0x70 [obdclass]
[1904044.722898]  [&amp;lt;ffffffff8109ac66&amp;gt;] kthread+0x96/0xa0
[1904044.728341]  [&amp;lt;ffffffff8100c20a&amp;gt;] child_rip+0xa/0x20
[1904044.745110]
[1904044.747419] Kernel panic - not syncing: LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="46797">LU-9699</key>
            <summary>osp_obd_connect()) ASSERTION( osp-&gt;opd_connects == 1 ) failed</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="jadhav.vikram">VIKRAM BABASO JADHAV</assignee>
                                    <reporter username="jadhav.vikram">VIKRAM BABASO JADHAV</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 21 Jun 2017 08:48:21 +0000</created>
                <updated>Sat, 24 Sep 2022 15:13:51 +0000</updated>
                            <resolved>Wed, 22 Sep 2021 13:26:00 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="199816" author="gerrit" created="Wed, 21 Jun 2017 08:52:39 +0000"  >&lt;p&gt;jadhav.vikram (jadhav.vikram@seagate.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/27753&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27753&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9699&quot; title=&quot;osp_obd_connect()) ASSERTION( osp-&amp;gt;opd_connects == 1 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9699&quot;&gt;&lt;del&gt;LU-9699&lt;/del&gt;&lt;/a&gt;: ASSERTION(osp-&amp;gt;opd_connects == 1) failed&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 72a2595023498ec212f80a9aed1c02189d2b900c&lt;/p&gt;</comment>
                            <comment id="201993" author="jadhav.vikram" created="Thu, 13 Jul 2017 10:50:34 +0000"  >&lt;p&gt;Patch&#160;&lt;a href=&quot;https://review.whamcloud.com/27753&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27753&lt;/a&gt;&#160;abounded so please close this ticket&lt;/p&gt;

&lt;p&gt;&#160;&lt;a href=&quot;https://review.whamcloud.com/#/c/28026/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/28026/&lt;/a&gt;&#160;is created under SEA-428&lt;/p&gt;</comment>
                            <comment id="223018" author="pjones" created="Fri, 9 Mar 2018 23:37:59 +0000"  >&lt;p&gt;It seems as if this patch has been resurrected&lt;/p&gt;</comment>
                            <comment id="224293" author="jhammond" created="Thu, 22 Mar 2018 17:52:50 +0000"  >&lt;p&gt;The issue description should be updated to say how to reproduce this.&lt;/p&gt;</comment>
                            <comment id="312738" author="gerrit" created="Tue, 14 Sep 2021 14:23:37 +0000"  >&lt;p&gt;&quot;Mike Pershin &amp;lt;mpershin@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/44912&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44912&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9699&quot; title=&quot;osp_obd_connect()) ASSERTION( osp-&amp;gt;opd_connects == 1 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9699&quot;&gt;&lt;del&gt;LU-9699&lt;/del&gt;&lt;/a&gt; osp: don&apos;t assert on OSP duplicating&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e714e4ef02032114942c399a213d6823c5db5651&lt;/p&gt;</comment>
                            <comment id="313600" author="gerrit" created="Wed, 22 Sep 2021 04:42:19 +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/27753/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27753/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9699&quot; title=&quot;osp_obd_connect()) ASSERTION( osp-&amp;gt;opd_connects == 1 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9699&quot;&gt;&lt;del&gt;LU-9699&lt;/del&gt;&lt;/a&gt; osp: don&apos;t assert on OSP duplicating&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 98f107b53e4daa3bfaf026c379c0a9c41cb5f161&lt;/p&gt;</comment>
                            <comment id="313660" author="pjones" created="Wed, 22 Sep 2021 13:26:00 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="51438">LU-10828</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="65994">LU-15000</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="66799">LU-15151</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|hzzfhr:</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>