<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:21:13 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-15777] HSM changelog indicates success for a failed restore</title>
                <link>https://jira.whamcloud.com/browse/LU-15777</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The layout swap can fail at the end of an HSM restore operation, but the error code isn&apos;t set in the generated changelog record.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;00000004:00000001:4.0:1650499429.250580:0:29125:0:(mdd_object.c:2378:mdd_swap_layouts()) Process leaving via stop (rc=18446744073709551521 : -95 : 0xffffffffffffffa1)&lt;br/&gt;
00000004:00000001:4.0:1650499429.250674:0:29125:0:(mdt_coordinator.c:1383:hsm_swap_layouts()) Process leaving (rc=18446744073709551521 : -95 : ffffffffffffffa1)&lt;br/&gt;
00000004:00000001:4.0:1650499429.251150:0:29125:0:(mdt_coordinator.c:1589:hsm_cdt_request_completed()) Process leaving via out (rc=18446744073709551521 : -95 : 0xffffffffffffffa1)&lt;br/&gt;
00000004:00000001:4.0:1650499429.251157:0:29125:0:(mdt_coordinator.c:1600:hsm_cdt_request_completed()) Process leaving (rc=18446744073709551521 : -95 : ffffffffffffffa1)&lt;br/&gt;
00000004:00000001:4.0:1650499429.251344:0:29125:0:(mdt_coordinator.c:1720:mdt_hsm_update_request_state()) Process leaving via out (rc=18446744073709551521 : -95 : 0xffffffffffffffa1)&lt;br/&gt;
00000004:00000001:4.0:1650499429.251362:0:29125:0:(mdt_hsm.c:144:mdt_hsm_progress()) Process leaving (rc=18446744073709551521 : -95 : ffffffffffffffa1)&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The issue can be reproduced by setting fail_loc=OBD_FAIL_MDS_HSM_SWAP_LAYOUTS (0x152):&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&amp;#35; lfs hsm_state /mnt/lustre/testdir0/testfile2&lt;br/&gt;
/mnt/lustre/testdir0/testfile2: (0x0000000d) released exists archived, archive_id:1&lt;br/&gt;
&amp;#35; lctl set_param fail_loc=0x152&lt;br/&gt;
fail_loc=0x152&lt;br/&gt;
&amp;#35; lfs hsm_restore /mnt/lustre/testdir0/testfile2&lt;br/&gt;
&amp;#35; lfs path2fid /mnt/lustre/testdir0/testfile2&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000bd1:0x6:0x0&amp;#93;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The copytool fails to restore the file, as expected:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;lhsmtool_posix: 1652985060.492662 lhsmtool_posix&lt;span class=&quot;error&quot;&gt;&amp;#91;436615&amp;#93;&lt;/span&gt;: Action completed, notifying coordinator cookie=0x62868c6a, FID=&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000bd1:0x6:0x0&amp;#93;&lt;/span&gt;, hp_flags=0 err=0&lt;br/&gt;
lhsmtool_posix: 1652985060.507948 lhsmtool_posix&lt;span class=&quot;error&quot;&gt;&amp;#91;436615&amp;#93;&lt;/span&gt;: llapi_hsm_action_end() on &apos;/mnt/lustre/.lustre/fid/0x200000bd1:0x6:0x0&apos; failed: Operation not supported (95)&lt;/p&gt;

&lt;p&gt;&amp;#35; lfs changelog testfs-MDT0000&lt;br/&gt;
86 16HSM 18:31:00.507625903 2022.05.19 0x0 t=&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000bd1:0x6:0x0&amp;#93;&lt;/span&gt; ef=0xf u=0:0 nid=0@lo&lt;br/&gt;
87 16HSM 18:31:00.507859827 2022.05.19 0x180 t=&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000bd1:0x6:0x0&amp;#93;&lt;/span&gt; ef=0xf u=0:0 nid=0@lo&lt;br/&gt;
88 16HSM 18:31:00.507874817 2022.05.19 0x80 t=&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000bd1:0x6:0x0&amp;#93;&lt;/span&gt; ef=0xf u=0:0 nid=0@lo&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The last changelog record has flags 0x80 == 0b10000000; according to the CLF_HSM_* macros, bits 0-6 are the error code and 7-9 are the HSM operation, so the error code is 0 and the HSM operation is 1, which is HE_RESTORE from enum hsm_event, so the EOPNOTSUPP (Operation not supported) that the copytool received is not being encoded in the changelog record flags, as it should be.&lt;/p&gt;</description>
                <environment></environment>
        <key id="69871">LU-15777</key>
            <summary>HSM changelog indicates success for a failed restore</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="nangelinas">Nikitas Angelinas</assignee>
                                    <reporter username="nangelinas">Nikitas Angelinas</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Apr 2022 17:09:33 +0000</created>
                <updated>Fri, 24 Nov 2023 09:25:52 +0000</updated>
                            <resolved>Tue, 4 Oct 2022 22:14:35 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="332690" author="gerrit" created="Fri, 22 Apr 2022 17:54:24 +0000"  >&lt;p&gt;&quot;Nikitas Angelinas &amp;lt;nikitas.angelinas@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47121&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47121&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15777&quot; title=&quot;HSM changelog indicates success for a failed restore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15777&quot;&gt;&lt;del&gt;LU-15777&lt;/del&gt;&lt;/a&gt; hsm: set changelog error for restore layout swap failure&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4879c784fa4120627b0b5adf14bf3eb2aa135551&lt;/p&gt;</comment>
                            <comment id="348693" author="gerrit" created="Tue, 4 Oct 2022 19:35:25 +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/c/fs/lustre-release/+/47121/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/47121/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15777&quot; title=&quot;HSM changelog indicates success for a failed restore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15777&quot;&gt;&lt;del&gt;LU-15777&lt;/del&gt;&lt;/a&gt; hsm: set changelog error for restore layout swap failure&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 09fe64719b888cd212b6cffe923545b7650f230f&lt;/p&gt;</comment>
                            <comment id="348715" author="pjones" created="Tue, 4 Oct 2022 22:14:35 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="377263" author="gerrit" created="Mon, 3 Jul 2023 14:02:00 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51542&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51542&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15777&quot; title=&quot;HSM changelog indicates success for a failed restore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15777&quot;&gt;&lt;del&gt;LU-15777&lt;/del&gt;&lt;/a&gt; hsm: set changelog error for restore layout swap failure&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a8b0be596cdb8f2e4973d7ec9359cced2242a409&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <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|i02nsv:</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>