<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:51:27 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-12309] write fails with -EOPNOTSUPP with zfs 0.8.0-rc5 using 0.7.x pool</title>
                <link>https://jira.whamcloud.com/browse/LU-12309</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Testing Lustre 2.10.7 against zfs 0.8.0-rc5&lt;/p&gt;

&lt;p&gt;If the file system is stored in pools created under previous versions of zfs and the project quota feature has not yet been enabled on those pools, writes fail with -EOPNOTSUPP&lt;/p&gt;

&lt;p&gt;Debug logs on the OST seem to indicate that the -EOPNOTSUPP is returned from osd_declare_attr_set(), which requires that if Lustre has been built with the ZFS project quota feature enabled, that the pool must have the feature enabled.&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;#ifdef ZFS_PROJINHERIT
       if (attr &amp;amp;&amp;amp; attr-&amp;gt;la_valid &amp;amp; LA_PROJID) {
               if (!osd-&amp;gt;od_projectused_dn)
                       GOTO(out, rc = -EOPNOTSUPP);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It&apos;s unclear why this is necessary.  In addition, every user who upgrades from an earlier version of lustre will initially be in this state, where their zfs software supports project quotas, but the feature is not enabled on the pool.  As long as they do not enable the feature on the pool, they can revert to the earlier zfs version if they encounter issues.&lt;/p&gt;</description>
                <environment></environment>
        <key id="55660">LU-12309</key>
            <summary>write fails with -EOPNOTSUPP with zfs 0.8.0-rc5 using 0.7.x pool</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="utopiabound">Nathaniel Clark</assignee>
                                    <reporter username="ofaaland">Olaf Faaland</reporter>
                        <labels>
                            <label>llnl</label>
                    </labels>
                <created>Thu, 16 May 2019 16:04:50 +0000</created>
                <updated>Wed, 12 Jun 2019 11:47:52 +0000</updated>
                            <resolved>Sat, 25 May 2019 05:35:24 +0000</resolved>
                                    <version>Lustre 2.10.7</version>
                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.12.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="247279" author="ofaaland" created="Thu, 16 May 2019 16:37:37 +0000"  >&lt;p&gt;The stack is 2.10.7 plus a few build-related patches.  For the exact source, see&lt;br/&gt;
&lt;a href=&quot;https://github.com/ofaaland/lustre/commits/b-lustre210-zfs08&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/ofaaland/lustre/commits/b-lustre210-zfs08&lt;/a&gt;&lt;br/&gt;
commit 2331955&lt;/p&gt;</comment>
                            <comment id="247280" author="pjones" created="Thu, 16 May 2019 16:39:11 +0000"  >&lt;p&gt;Nathaniel&lt;/p&gt;

&lt;p&gt;Could you please investigate?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="247281" author="ofaaland" created="Thu, 16 May 2019 16:42:22 +0000"  >&lt;p&gt;-1 debug logs from client and one of the OSTs attached.&lt;/p&gt;</comment>
                            <comment id="247283" author="ofaaland" created="Thu, 16 May 2019 16:49:58 +0000"  >&lt;p&gt;I haven&apos;t tried it, but I believe you could reproduce this with a new file system easily, just by using option &quot;-d&quot; to zpool create, and then explicitly enabling features other than project quotas.&lt;/p&gt;</comment>
                            <comment id="247289" author="gerrit" created="Thu, 16 May 2019 17:34:55 +0000"  >&lt;p&gt;Nathaniel Clark (nclark@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34888&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34888&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12309&quot; title=&quot;write fails with -EOPNOTSUPP with zfs 0.8.0-rc5 using 0.7.x pool&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12309&quot;&gt;&lt;del&gt;LU-12309&lt;/del&gt;&lt;/a&gt; osd-zfs: Support disabled project quotas&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 74733dd3aa761dbe0477b599b166a3791e8582c5&lt;/p&gt;</comment>
                            <comment id="247290" author="adilger" created="Thu, 16 May 2019 18:18:14 +0000"  >&lt;p&gt;I think the intent is that someone trying to set the projid on a file where the storage does not support (or enable) project quota should get }{-ENOTSUPP}}.  Definitely it shouldn&apos;t refuse to mount in that case. &lt;/p&gt;

&lt;p&gt;Is there something that you are running in userspace that is trying to set projid, or is this just normal usage?&lt;/p&gt;

&lt;p&gt;Possibly the check could have a caveat that it shouldn&apos;t try to set projid if it is zero and not enabled, because that is just the default value?&lt;/p&gt;</comment>
                            <comment id="247292" author="ofaaland" created="Thu, 16 May 2019 20:04:45 +0000"  >&lt;blockquote&gt;&lt;p&gt;Is there something that you are running in userspace that is trying to set projid, or is this just normal usage?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Mount (all the servers and the client) is successful.  I see the failure with an ordinary write, e.g. using bash redirect or using dd. &lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Possibly the check could have a caveat that it shouldn&apos;t try to set projid if it is zero and not enabled, because that is just the default value?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Good idea.&lt;/p&gt;</comment>
                            <comment id="247687" author="gerrit" created="Sat, 25 May 2019 04:54:59 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34888/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34888/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12309&quot; title=&quot;write fails with -EOPNOTSUPP with zfs 0.8.0-rc5 using 0.7.x pool&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12309&quot;&gt;&lt;del&gt;LU-12309&lt;/del&gt;&lt;/a&gt; osd-zfs: Support disabled project quotas&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 291e7196d39365739f9daa02efd25535b5415174&lt;/p&gt;</comment>
                            <comment id="247702" author="pjones" created="Sat, 25 May 2019 05:35:24 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                            <comment id="248077" author="gerrit" created="Thu, 30 May 2019 20:26:39 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35009&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35009&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12309&quot; title=&quot;write fails with -EOPNOTSUPP with zfs 0.8.0-rc5 using 0.7.x pool&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12309&quot;&gt;&lt;del&gt;LU-12309&lt;/del&gt;&lt;/a&gt; osd-zfs: Support disabled project quotas&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 259c14db010a0733c4e467e451250a89c5efac3e&lt;/p&gt;</comment>
                            <comment id="248802" author="gerrit" created="Sat, 8 Jun 2019 02:37:58 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/35009/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35009/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12309&quot; title=&quot;write fails with -EOPNOTSUPP with zfs 0.8.0-rc5 using 0.7.x pool&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12309&quot;&gt;&lt;del&gt;LU-12309&lt;/del&gt;&lt;/a&gt; osd-zfs: Support disabled project quotas&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 965af09947473129c45e8201e9f9b4cd4da77d8b&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="32578" name="dk.slag10.1557965090.txt" size="8423450" author="ofaaland" created="Thu, 16 May 2019 16:41:52 +0000"/>
                            <attachment id="32579" name="dk.slag11.1557964642.txt" size="3632423" author="ofaaland" created="Thu, 16 May 2019 16:41:51 +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|i00gev:</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>