<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:58:26 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-6234] lfs computes pool name length incorrectly</title>
                <link>https://jira.whamcloud.com/browse/LU-6234</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When dealing with pools, you need to specify the file system name in front of the pool name as &amp;lt;fsname&amp;gt;.&amp;lt;pool_name&amp;gt;. The pool name, without the file system name, has a max length of 15 characters and is correctly enforced:&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;# lctl pool_new scratch.test_82b
Pool scratch.test_82b created
# lctl pool_new scratch.test_82abcdefgh
Pool scratch.test_82abcdefgh created
# lctl pool_new scratch.test_82abcdefghi
poolname test_82abcdefghi is too long (length is 16 max is 15)
argument scratch.test_82abcdefghi must be &amp;lt;fsname&amp;gt;.&amp;lt;poolname&amp;gt;
pool_new: File name too long
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Yet, when specifying a pool name in &apos;lfs setstripe&apos;, the file system name is used to compute the length of the pool name. The file system name is required when using the &apos;-p&apos; option in &apos;lfs setstripe&apos; as in the second example below. &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;# /usr/bin/lfs setstripe -p scratch.test_82b -o 7936 /lustre/scratch/d82b.conf-sanity/f82b.conf-sanity
error: setstripe: pool name &apos;scratch.test_82b&apos; is too long (max is 15 characters)
...
# /usr/bin/lfs setstripe -p test_82b -o 4 /lustre/scratch/d82b.conf-sanity/f82b.conf-sanity
can&apos;t find fs root for &apos;/lustre/scratch/d82b.conf-sanity&apos;: -19
&apos;/lustre/scratch/d82b.conf-sanity/f82b.conf-sanity&apos; is not on a Lustre filesystem: No such device (19)
error: setstripe: create stripe file &apos;/lustre/scratch/d82b.conf-sanity/f82b.conf-sanity&apos; failed
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This caused problems with the conf-sanity test 82b at &lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/e9152f7c-ade4-11e4-a0b6-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/e9152f7c-ade4-11e4-a0b6-5254006e85c2&lt;/a&gt;  &lt;/p&gt;</description>
                <environment>lustre-master tag 2.6.93</environment>
        <key id="28670">LU-6234</key>
            <summary>lfs computes pool name length incorrectly</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="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Feb 2015 17:48:24 +0000</created>
                <updated>Thu, 16 Mar 2017 19:24:21 +0000</updated>
                            <resolved>Tue, 18 Aug 2015 13:59:49 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>12</watches>
                                                                            <comments>
                            <comment id="106670" author="adilger" created="Wed, 11 Feb 2015 18:38:55 +0000"  >&lt;p&gt;This problem was introduced by change  &lt;a href=&quot;http://review.whamcloud.com/13241&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13241&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6081&quot; title=&quot;hsm: add file migrate support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6081&quot;&gt;LU-6081&lt;/a&gt; lfs: check that pool name is not too long&quot;. &lt;/p&gt;

&lt;p&gt;The problem is that the supplied pool name may include the FSNAME at the start, as is used in conf-sanity test_82b. In our test configuration we just happen to have the supplied pool name of &quot;lustre.test_82b&quot; which is shorter than the checked limit. The check in lfs_setstripe() should be changed to skip the leading fsname if present. &lt;/p&gt;

&lt;p&gt;That also begs the question - do we exclude &apos;.&apos; (and &apos;/&apos; and other problematic characters) from being part of the pool name?&lt;/p&gt;</comment>
                            <comment id="106697" author="fzago" created="Wed, 11 Feb 2015 21:05:47 +0000"  >&lt;p&gt;But does it make sense to pass a fsname? After all, the fsname is found through the file given in parameter.&lt;br/&gt;
Should 6ec0b4 be reverted?&lt;/p&gt;</comment>
                            <comment id="106719" author="adilger" created="Wed, 11 Feb 2015 23:31:05 +0000"  >&lt;p&gt;It appears that specifying the pool name avoids the need to extract the fsname from the target directory, so it makes the code somewhat more efficient.  Regardless, that is something that previously worked and was allowed, so it shouldn&apos;t be broken.  It was only allowed to land because it happened that the &lt;tt&gt;fsname.pool_name&lt;/tt&gt; was under the 15-char limit of the check.  I&apos;m OK with fixing the existing check to verify only the poolname part of the input is within the limits, or moving it lower in llapi to verify only the pool name after it has been stripped.&lt;/p&gt;</comment>
                            <comment id="106758" author="gerrit" created="Thu, 12 Feb 2015 04:31:10 +0000"  >&lt;p&gt;Bobi Jam (bobijam@hotmail.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13742&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13742&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6234&quot; title=&quot;lfs computes pool name length incorrectly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6234&quot;&gt;&lt;del&gt;LU-6234&lt;/del&gt;&lt;/a&gt; lfs: check pool name length w/o fsname in it&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a192f2660b86b3609b60bcc15911f4fd26d8ab7e&lt;/p&gt;</comment>
                            <comment id="106812" author="fzago" created="Thu, 12 Feb 2015 17:12:41 +0000"  >&lt;p&gt;Patch looks good. I&apos;ve added a few tests to sanity.sh. See attachment. Would you mind folding them into that patch?&lt;/p&gt;</comment>
                            <comment id="106926" author="jcl" created="Fri, 13 Feb 2015 13:16:57 +0000"  >&lt;p&gt;A pool specific test script has been added (ost-pools.sh). New pool tests should go to it.&lt;/p&gt;</comment>
                            <comment id="106945" author="fzago" created="Fri, 13 Feb 2015 16:58:27 +0000"  >&lt;p&gt;Thanks Jean-Charles.&lt;/p&gt;

&lt;p&gt;I&apos;ve updated the patch with tests in ost-pool.sh. See attachments.&lt;/p&gt;</comment>
                            <comment id="123093" author="schamp" created="Mon, 3 Aug 2015 21:33:35 +0000"  >&lt;p&gt;This is annoying.  What is stalling the patch?&lt;/p&gt;</comment>
                            <comment id="124398" author="gerrit" created="Tue, 18 Aug 2015 11:32:20 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/13742/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13742/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6234&quot; title=&quot;lfs computes pool name length incorrectly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6234&quot;&gt;&lt;del&gt;LU-6234&lt;/del&gt;&lt;/a&gt; util: check fsname and pool name&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7c25eb1ba2b1db3009a0e88b3ecf229134f8ac92&lt;/p&gt;</comment>
                            <comment id="124415" author="pjones" created="Tue, 18 Aug 2015 13:59:49 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                            <comment id="124531" author="adilger" created="Wed, 19 Aug 2015 05:12:54 +0000"  >&lt;p&gt;I noticed this patch landed, but it would have been good to add &apos;.&apos; to the characters that are not allowed in a pool or filesystem name.  Otherwise it will break &quot;lctl {get,set}&amp;#95;param&quot; using &apos;.&apos; as a separator.&lt;/p&gt;</comment>
                            <comment id="124532" author="bobijam" created="Wed, 19 Aug 2015 05:18:02 +0000"  >&lt;p&gt;isalnum(&apos;.&apos;) == false, and current patch can handle it.&lt;/p&gt;</comment>
                            <comment id="124678" author="adilger" created="Thu, 20 Aug 2015 05:31:21 +0000"  >&lt;p&gt;You are right, thanks.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="28048">LU-6081</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="31925">LU-7103</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="32104">LU-7155</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="16992" name="0001-LU-6234-tests-new-tests-for-pool-names-length.patch" size="3827" author="fzago" created="Fri, 13 Feb 2015 16:58:27 +0000"/>
                    </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|hzx66v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>17464</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>