<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:32:28 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-17080] hsm_archive request got stuck in action queue forever when the file has immutable bit set </title>
                <link>https://jira.whamcloud.com/browse/LU-17080</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;We&apos;ve found an issue that lustre hsm archive request would get stuck in hsm action queue when user does &quot;chattr +i&quot; or &quot;chattr +a&quot; operation for a new file. I couldn&apos;t find existing ticket for this so just create this new one, please let me know if this is duplicate to any existing ticket. The fact it stuck in HSM action queue forever makes me wonder this may not be expected behavior and seems a bug. Thanks in advance for any insights here!&lt;/p&gt;

&lt;p&gt;To reproduce this:&lt;br/&gt;
On a lustre client which mounted with a lustre file system:&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@ip-10-0-130-193 ns1]# echo &lt;span class=&quot;code-quote&quot;&gt;&quot;test hsm_archive stuck&quot;&lt;/span&gt; &amp;gt; test_hsm_archive.txt
[root@ip-10-0-130-193 ns1]# chattr +i test_hsm_archive.txt&#160;
[root@ip-10-0-130-193 ns1]# lsattr test_hsm_archive.txt
----i----------- test_hsm_archive.txt
[root@ip-10-0-130-193 ns1]# lfs hsm_archive test_hsm_archive.txt&#160;
[root@ip-10-0-130-193 ns1]# lfs hsm_state test_hsm_archive.txt
test_hsm_archive.txt: (0x00000000)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;On MDS we&apos;ll notice the request stuck in hsm action queue forever:&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@ip-198-19-37-27 ns1]# sudo lctl get_param -n &lt;span class=&quot;code-quote&quot;&gt;&apos;mdt.*.hsm.actions&apos;&lt;/span&gt;
lrh=[type=10680000 len=136 idx=1/430] fid=[0x200000402:0x5:0x0] dfid=[0x200000402:0x5:0x0] compound/cookie=0x0/0x64c7be8e action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=WAITING data=[]&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Tracing through the code, it seems stuck due to EPERM returned when setting HSM exists (mdt_hsm_set_exists)&lt;br/&gt;
Stack trace:&lt;br/&gt;
&lt;a href=&quot;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdd/mdd_object.c#L1307-L1308&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdd/mdd_object.c#L1307-L1308&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdd/mdd_object.c#L1878&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdd/mdd_object.c#L1878&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdt/mdt_hsm.c#L77&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdt/mdt_hsm.c#L77&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdt/mdt_coordinator.c#L1180&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdt/mdt_coordinator.c#L1180&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdt/mdt_coordinator.c#L1250-L1257&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/lustre/lustre-release/blob/v2_12_90/lustre/mdt/mdt_coordinator.c#L1250-L1257&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Huaqing Wang&lt;br/&gt;
AWS Fsx for Lustre&lt;/p&gt;</description>
                <environment></environment>
        <key id="77733">LU-17080</key>
            <summary>hsm_archive request got stuck in action queue forever when the file has immutable bit set </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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="huaqing">Huaqing Wang</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Sep 2023 21:34:40 +0000</created>
                <updated>Fri, 1 Sep 2023 22:29:37 +0000</updated>
                                            <version>Lustre 2.12.9</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                    <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_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>hsm</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i03ujz:</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>