<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:14:56 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-8133] ost-pools are not destroyed if test-case using ost-pools fail.</title>
                <link>https://jira.whamcloud.com/browse/LU-8133</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It is found that if the test-case involving ost-pools fails, the pools created in the test-case is not destroyed.&lt;br/&gt;
Following is the result when I purposely made sanity/test_220 to fail and found out that pool test_220 still exists in the 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;== sanity test 220: preallocated MDS objects still used &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ENOSPC from OST == 15:27:51 (1463047071)
pdsh@Seagate: 169.254.90.7: ssh exited with exit code 3
UUID                      Inodes       IUsed       IFree IUse% Mounted on
lustre-MDT0000_UUID       100000         218       99782   0% /mnt/lustre[MDT:0]
lustre-OST0000_UUID        50016       50016           0 100% /mnt/lustre[OST:0]
lustre-OST0001_UUID        50016       50016           0 100% /mnt/lustre[OST:1]

filesystem summary:          218         218           0 100% /mnt/lustre

fail_val=-1
fail_loc=0x229
169.254.90.6: Pool lustre.test_220 created
169.254.90.6: poolname is empty
169.254.90.6: argument lustre. must be &amp;lt;fsname&amp;gt;.&amp;lt;poolname&amp;gt;
169.254.90.6: pool_add: Invalid argument
pdsh@Seagate: 169.254.90.6: ssh exited with exit code 22
 sanity test_220: @@@@@@ FAIL: test_220 failed with 2 
  Trace dump:
  = /root/Desktop/code/lustre-wc-rel/lustre/tests/test-framework.sh:4673:error()
  = /root/Desktop/code/lustre-wc-rel/lustre/tests/test-framework.sh:4933:run_one()
  = /root/Desktop/code/lustre-wc-rel/lustre/tests/test-framework.sh:4969:run_one_logged()
  = /root/Desktop/code/lustre-wc-rel/lustre/tests/test-framework.sh:4775:run_test()
  = sanity.sh:11787:main()
Dumping lctl log to /tmp/test_logs/1463047063/sanity.test_220.*.1463047083.log
169.254.90.7: ssh: Could not resolve hostname Seagate: Temporary failure in name resolution
169.254.90.7: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
169.254.90.7: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
pdsh@Seagate: 169.254.90.7: ssh exited with exit code 12
169.254.90.6: ssh: Could not resolve hostname Seagate: Temporary failure in name resolution
169.254.90.6: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
169.254.90.6: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
pdsh@Seagate: 169.254.90.6: ssh exited with exit code 12
169.254.90.8: ssh: Could not resolve hostname Seagate: Temporary failure in name resolution
169.254.90.8: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
169.254.90.8: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
pdsh@Seagate: 169.254.90.8: ssh exited with exit code 12
test_220 returned 1
FAIL 220 (13s)
== sanity test complete, duration 21 sec == 15:28:04 (1463047084)
debug=&lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt; ioctl neterror warning dlmtrace error emerg ha rpctrace vfstrace config console lfsck
[root@Seagate tests]# lctl pool_list lustre 
Pools from lustre:
lustre.test_220       &amp;lt;==pool still exists
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Similar is the case for other tests like replay-single/test_85b, etc.&lt;/p&gt;</description>
                <environment></environment>
        <key id="36873">LU-8133</key>
            <summary>ost-pools are not destroyed if test-case using ost-pools fail.</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="529964">Bhagyesh Dudhediya</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 May 2016 10:07:32 +0000</created>
                <updated>Wed, 1 Mar 2017 12:46:08 +0000</updated>
                            <resolved>Wed, 1 Mar 2017 12:46:08 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="152038" author="adilger" created="Thu, 12 May 2016 18:01:51 +0000"  >&lt;p&gt;The proper way to handle this is to create a &lt;tt&gt;cleanup_220()&lt;/tt&gt; function that does the test cleanup, and add an exit trap so that it is run even when the test fails.  It turns out there is an existing &lt;tt&gt;cleanup_pools()&lt;/tt&gt; helper function that could be used for this, just need to set &lt;tt&gt;${FSNAME}_CREATED_POOLS=$TESTNAME&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="152149" author="529964" created="Fri, 13 May 2016 02:49:19 +0000"  >&lt;p&gt;Hello Andreas,&lt;br/&gt;
Thanks a lot for your time.&lt;br/&gt;
A pool is added to the list &lt;tt&gt;${FSNAME}_CREATED_POOLS&lt;/tt&gt; only when pool is created by calling &lt;tt&gt;create_pool_nofail()&lt;/tt&gt; or a function which internally calls &lt;tt&gt;create_pool()&lt;/tt&gt;. In such cases &lt;tt&gt;cleanup_pools()&lt;/tt&gt; help in cleaning those pools. &lt;br/&gt;
However, if pools are created using &lt;tt&gt;lctl&lt;/tt&gt; commands as seen in sanity/test_220, replay-single/test_85b, &lt;tt&gt;cleanup_pools()&lt;/tt&gt; will not help.&lt;br/&gt;
I guess &lt;tt&gt;destroy_pool_int()&lt;/tt&gt; can do the job in such cases. Also we will have to figure out all the test-cases and have a cleanup function(as mentioned by you) for those if not already present.&lt;br/&gt;
Do correct me if I am missing anything.&lt;br/&gt;
Thanks!&lt;/p&gt;</comment>
                            <comment id="186587" author="adilger" created="Wed, 1 Mar 2017 12:46:08 +0000"  >&lt;p&gt;There is already a patch under &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8952&quot; title=&quot;Handling test specific cleanup of ost pools&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8952&quot;&gt;&lt;del&gt;LU-8952&lt;/del&gt;&lt;/a&gt; to fix this.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="42498">LU-8952</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|hzybcn:</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>