<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:04:42 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-13843] removing non existing path with lctl pcc del returns 0 (success) exit code without error message</title>
                <link>https://jira.whamcloud.com/browse/LU-13843</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Check that cache is not configured. Empty list.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;lctl pcc list /mnt/lustre&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;#&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Try to delete any cache&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;lctl pcc del /mnt/lustre /mnt/pccro/&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;echo $?&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;0&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Try for any word&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;lctl pcc del /mnt/lustre abc&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;echo $?&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;0&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This is not critical, but it is good to have proper return codes for scripting or control that this is expected.&lt;/p&gt;</description>
                <environment></environment>
        <key id="60210">LU-13843</key>
            <summary>removing non existing path with lctl pcc del returns 0 (success) exit code without error message</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="vilapa">Vikentsi Lapa</reporter>
                        <labels>
                            <label>PCC</label>
                    </labels>
                <created>Fri, 31 Jul 2020 06:53:57 +0000</created>
                <updated>Wed, 5 Aug 2020 08:49:39 +0000</updated>
                            <resolved>Wed, 5 Aug 2020 08:49:39 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="276573" author="qian_wc" created="Mon, 3 Aug 2020 03:04:34 +0000"  >&lt;p&gt;I tried the test in my local system, It reported errors as expected.&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@qian tests]# ../utils/lctl pcc add /mnt/lustre /mnt/pcc -p &lt;span class=&quot;code-quote&quot;&gt;&quot;projid={100} rwid=2&quot;&lt;/span&gt;

[root@qian tests]# ../utils/lctl pcc del /mnt/lustre /mnt/pcc2 || echo $?
lctl pcc pcc: error: setting llite.lustre-ffff9ebf38692800.pcc=&lt;span class=&quot;code-quote&quot;&gt;&apos;del /mnt/pcc2&apos;&lt;/span&gt;: No such file or directory (2)
2
[root@qian tests]# ../utils/lctl pcc del /mnt/lustre /mnt/pcc2&#160; &#160; &#160; &#160; &#160; &#160;
lctl pcc pcc: error: setting llite.lustre-ffff9ebf38692800.pcc=&lt;span class=&quot;code-quote&quot;&gt;&apos;del /mnt/pcc2&apos;&lt;/span&gt;: No such file or directory (2)
[root@qian tests]# ../utils/lctl pcc del /mnt/lustre /kkk&#160; &#160; &#160;
lctl pcc pcc: error: setting llite.lustre-ffff9ebf38692800.pcc=&lt;span class=&quot;code-quote&quot;&gt;&apos;del /kkk&apos;&lt;/span&gt;: No such file or directory (2)
[root@qian tests]# echo $?
2
[root@qian tests]# ../utils/lctl pcc del /mnt/lustre abc&#160;
lctl pcc pcc: error: setting llite.lustre-ffff9ebf38692800.pcc=&lt;span class=&quot;code-quote&quot;&gt;&apos;del abc&apos;&lt;/span&gt;: Invalid argument (22)
[root@qian tests]# ../utils/lctl pcc del /mnt/lustre /mnt/pcc
[root@qian tests]# echo $?
0
[root@qian tests]# ../utils/lctl pcc del /mnt/lustre /mnt/pcc
lctl pcc pcc: error: setting llite.lustre-ffff9ebf38692800.pcc=&lt;span class=&quot;code-quote&quot;&gt;&apos;del /mnt/pcc&apos;&lt;/span&gt;: No such file or directory (2)
[root@qian tests]# ../utils/lctl pcc list /mnt/lustre&#160; &#160; &#160; &#160; &#160;
[root@qian tests]# ../utils/lctl pcc del /mnt/lustre /mnt/pcc
lctl pcc pcc: error: setting llite.lustre-ffff9ebf38692800.pcc=&lt;span class=&quot;code-quote&quot;&gt;&apos;del /mnt/pcc&apos;&lt;/span&gt;: No such file or directory (2)
[root@qian tests]#&#160;

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="276596" author="vilapa" created="Mon, 3 Aug 2020 14:30:27 +0000"  >&lt;p&gt;I am using&#160; versions below for test, can you provide your build version?&lt;/p&gt;

&lt;p&gt;rpm -qa | grep lustre&lt;br/&gt;
kmod-lustre-client-2.13.55_3_gaaa3279-1.el7.x86_64&lt;br/&gt;
lustre-client-2.13.55_3_gaaa3279-1.el7.x86_64&lt;br/&gt;
lustre-iokit-2.13.55_3_gaaa3279-1.el7.x86_64&lt;br/&gt;
lustre-client-tests-2.13.55_3_gaaa3279-1.el7.x86_64&lt;/p&gt;

&lt;p&gt;1. Check that something attached to the cache&lt;/p&gt;

&lt;p&gt;lctl pcc list /mnt/lustre&lt;br/&gt;
pcc:&lt;br/&gt;
 -&lt;br/&gt;
 pccpath: /mnt/pccro_tst&lt;br/&gt;
 hsmtool: posix&lt;br/&gt;
 rwid: 5&lt;br/&gt;
 roid: 5&lt;br/&gt;
 flags: 3e&lt;br/&gt;
 autocache: projid={100}&lt;br/&gt;
 -&lt;br/&gt;
 pccpath: /mnt/pccro&lt;br/&gt;
 hsmtool: posix&lt;br/&gt;
 rwid: 4&lt;br/&gt;
 roid: 4&lt;br/&gt;
 flags: 3e&lt;br/&gt;
 autocache: projid={100}&lt;/p&gt;

&lt;p&gt;2.&#160; Than check delete option&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@trevis-59vm12 ~]# lctl pcc del /mnt/lustre abc
[root@trevis-59vm12 ~]# echo $?
0

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="276645" author="qian_wc" created="Tue, 4 Aug 2020 08:16:11 +0000"  >&lt;p&gt;This bug was introduced in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12373&quot; title=&quot;detach and delete the PCC cached files when remove a PCC backend from a client&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12373&quot;&gt;LU-12373&lt;/a&gt;. The patch I tested was&#160;&lt;a href=&quot;https://review.whamcloud.com/#/c/38305/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/38305/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I have fixed this bug in&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/38352&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38352&lt;/a&gt; &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12373&quot; title=&quot;detach and delete the PCC cached files when remove a PCC backend from a client&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12373&quot;&gt;LU-12373&lt;/a&gt; pcc: uncache the pcc copies when remove a PCC backend&lt;/p&gt;

&lt;p&gt;Please try again!&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Qian&lt;/p&gt;</comment>
                            <comment id="276698" author="vilapa" created="Wed, 5 Aug 2020 08:49:39 +0000"  >&lt;p&gt;Verified with lustre-2.13.55_3_g066eec1-1.el7.x86_64&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;
# lctl pcc del /mnt/lustre abc
del: failed to delete &lt;span class=&quot;code-quote&quot;&gt;&apos;abc&apos;&lt;/span&gt; on &lt;span class=&quot;code-quote&quot;&gt;&apos;/mnt/lustre&apos;&lt;/span&gt;: No such file or directory
[root@trevis-59vm9 ~]# echo $?
2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="50196">LU-10499</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i016nr:</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>