<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:14:46 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-15020] OSP_DISCONNECT blocking MDT unmount</title>
                <link>https://jira.whamcloud.com/browse/LU-15020</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Send OSP_DISCONNECT only on health import. Otherwise, force local disconnect for unhealthy imports.&lt;/p&gt;</description>
                <environment></environment>
        <key id="65737">LU-15020</key>
            <summary>OSP_DISCONNECT blocking MDT unmount</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="tappro">Mikhail Pershin</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Fri, 20 Aug 2021 15:55:17 +0000</created>
                <updated>Mon, 17 Jan 2022 15:33:49 +0000</updated>
                            <resolved>Mon, 17 Jan 2022 15:33:49 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="310778" author="tappro" created="Fri, 20 Aug 2021 17:18:33 +0000"  >&lt;p&gt;From these reports about MDT hangs, what would be the easiest way to reproduce that issue?&lt;/p&gt;</comment>
                            <comment id="310782" author="jhammond" created="Fri, 20 Aug 2021 18:36:18 +0000"  >&lt;p&gt;Setup a FS with MDTs spread over 2 VMs. Start the FS, do some cross MDT operations, destroy one VM (no unmount, no shutdown) and try to umount (no --force) an MDT on the other vm.&lt;/p&gt;</comment>
                            <comment id="310889" author="tappro" created="Mon, 23 Aug 2021 18:18:47 +0000"  >&lt;p&gt;While I am checking how to make server disconnect gracefully, possible way to go with --force umount is to set device read-only before that, in that case clients will be preserved on server I think.&lt;/p&gt;</comment>
                            <comment id="311246" author="tappro" created="Thu, 26 Aug 2021 07:36:09 +0000"  >&lt;p&gt;&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;, I am not sure about this hang while MDT unmounting is related to stat() call you&apos;ve mentioned. That problem and related patch are for client unmount and client RPC, but here we have local mountpoint unmount on server, I doubt it causes inter MDT stat, though there can be some other RPC.&lt;/p&gt;

&lt;p&gt;As for osp_disconnect() thing, simplest thing would be just to call &lt;tt&gt;ptlrpc_disconnect_import()&lt;/tt&gt;&#160;with &lt;tt&gt;obd_force&lt;/tt&gt; set if import is in recovery, so there will no waiting for import to recover and no disconnect RPC, if import is healthy then disconnect will be send, so other MDT could clean related resources.&lt;/p&gt;

&lt;p&gt;Another my question is about whole situation as per description, it states that server hangs waiting for response to DISCONNECT RPC, at the same time this RPC is sent always with &lt;tt&gt;rq_no_resent&lt;/tt&gt; flag, so it should fail after timeout but not hang forever. So was that hang observed by customers are just long in time or it never ends really?&lt;/p&gt;</comment>
                            <comment id="311247" author="gerrit" created="Thu, 26 Aug 2021 07:38:36 +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/44753&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44753&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15020&quot; title=&quot;OSP_DISCONNECT blocking MDT unmount&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15020&quot;&gt;&lt;del&gt;EX-3687&lt;/del&gt;&lt;/a&gt; osp: do force disconnect if import is not ready&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1a5d067b340e0b62f5577a20779401427ca0adca&lt;/p&gt;</comment>
                            <comment id="313189" author="gerrit" created="Fri, 17 Sep 2021 14:10:41 +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/44753/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44753/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15020&quot; title=&quot;OSP_DISCONNECT blocking MDT unmount&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15020&quot;&gt;&lt;del&gt;EX-3687&lt;/del&gt;&lt;/a&gt; osp: do force disconnect if import is not ready&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8203c0f7a043aad9d087018119e278e4279ca8bc&lt;/p&gt;</comment>
                            <comment id="322916" author="pjones" created="Mon, 17 Jan 2022 15:33:49 +0000"  >&lt;p&gt;Fix on master by &lt;a href=&quot;https://review.whamcloud.com/#/c/44753/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/44753/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|i022bz:</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>