<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Fri Feb 09 23:54:18 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>[LMR-5] Robinhood lhsm_remove policy not compatible with Lemur</title>
                <link>https://jira.whamcloud.com/browse/LMR-5</link>
                <project id="11910" key="LMR">Lemur</project>
                    <description>&lt;p&gt;I noticed today during some testing that the Robinhood feature of delayed &lt;br/&gt;
delete, wherein after a file is deleted on Lustre, robinhood will schedule &lt;br/&gt;
removing the corresponding HSM backend object after a configurable period - is &lt;br/&gt;
not working with Lemur.                                                  &lt;/p&gt;

&lt;p&gt;This may well be a Robinhood problem, but I wondered if you were aware of it &lt;br/&gt;
and could maybe comment on what might be going wrong?                    &lt;/p&gt;

&lt;p&gt;My setup is with Robinhood v3.0.0, and it&apos;s the &apos;lhsm_remove&apos; policy. I create &lt;br/&gt;
a file on lustre, archive it, and then delete it from Lustre. So there is an &lt;br/&gt;
object for this file on the HSM backend now, and files that have been deleted &lt;br/&gt;
like this are listed by robinhood in it&apos;s &apos;SOFT_RM&apos; table in the database. &lt;/p&gt;

&lt;p&gt;Robinhood then submits a HSM_REMOVE operation for this file, I see the &apos;remove&apos; &lt;br/&gt;
job submitted to the coordinator:                                        &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;lrh=[type=10680000 len=136 idx=1/5] fid=[0x200000bd0:0x3:0x0]  dfid=[0x200000bd0:0x3:0x0] compound/cookie=0x591c1c41/0x591c1c3e action=REMOVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0  status=SUCCEED data=[]                                                   
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and then I see the following in lhsmd logs: &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;ALERT 2017/05/17 15:01:19 /root/rpmbuild/BUILD/lemur-.5.1_2_g55041d6/src/github.com/intel-hpdd/lemur/cmd/lhsmd/agent/agent_action.go:127: Error reading UUID: trusted.lhsm_uuid: no such file or directory (id:3 REMOVE [0x200000bd0:0x3:0x0] )                                                  
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Is this because it&apos;s trying to do the equivalent of a &apos;lfs hsm_remove FID&apos; on a &lt;br/&gt;
FID that no longer is in the filesystem?                                 &lt;/p&gt;

&lt;p&gt;I think this feature works with lhsmtool_posix because they use the file&apos;s FID &lt;br/&gt;
to name the file on the HSM backend, and therefore the copytool can clean up &lt;br/&gt;
the object in the backend.  Here is what the logs of that copytool shows for &lt;br/&gt;
the same remove operation:                                               &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;1495099675.796599 lhsmtool_posix[3859]: &apos;[0x200000bd0:0xc:0x0]&apos; action REMOVE 
reclen 72, cookie=0x591c1c42 1495099675.797789 lhsmtool_posix[3859]: cannot get 
path of FID [0x200000bd0:0xc:0x0]: No such file or directory (2)         
1495099675.797837 lhsmtool_posix[3859]: removing file                    
&apos;/mnt/qstar/rds-s1/hsm/000c/0000/0bd0/0000/0002/0000/0x200000bd0:0xc:0x0&apos; 
1495099675.828181 lhsmtool_posix[3859]: Action completed, notifying coordinator 
cookie=0x591c1c42, FID=[0x200000bd0:0xc:0x0], hp_flags=0 err=0           
1495099675.828969 lhsmtool_posix[3859]: llapi_hsm_action_end() on        
&apos;/rds-s1/.lustre/fid/0x200000bd0:0xc:0x0&apos; ok (rc=0)                      
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m not sure how the Lemur UUID is constructed, I presume if a request like &lt;br/&gt;
this comes in for a HSM_REMOVE on a file that has been deleted from Lustre, it &lt;br/&gt;
isn&apos;t possible for Lemur to work out what that file&apos;s UUID would have been and &lt;br/&gt;
therefore HSM backend object to clean that up?&lt;/p&gt;</description>
                <environment></environment>
        <key id="46209">LMR-5</key>
            <summary>Robinhood lhsm_remove policy not compatible with Lemur</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="Lemur Triage">Lemur Triage</assignee>
                                    <reporter username="mrb">Matt R&#225;s&#243;-Barnett</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 May 2017 11:13:53 +0000</created>
                <updated>Fri, 19 May 2017 11:13:53 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>4</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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzzd9b:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>