<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:18: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-1673] Locking issue with 1.8.x clients talking to 2.2 Servers</title>
                <link>https://jira.whamcloud.com/browse/LU-1673</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We noticed that clients running Lustre 1.8.x seem to have trouble locking files hosted on 2.2 Servers.&lt;/p&gt;</description>
                <environment>client 1.8.x server 2.2</environment>
        <key id="15308">LU-1673</key>
            <summary>Locking issue with 1.8.x clients talking to 2.2 Servers</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="ys">Yang Sheng</assignee>
                                    <reporter username="ethz.support">ETHz Support</reporter>
                        <labels>
                            <label>client</label>
                            <label>locking</label>
                            <label>server</label>
                    </labels>
                <created>Wed, 25 Jul 2012 12:37:38 +0000</created>
                <updated>Mon, 19 Nov 2012 11:39:00 +0000</updated>
                            <resolved>Mon, 19 Nov 2012 11:39:00 +0000</resolved>
                                    <version>Lustre 2.2.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="42249" author="ethz.support" created="Wed, 25 Jul 2012 12:38:06 +0000"  >&lt;p&gt;This simple C code is enough to reproduce the problem:&lt;/p&gt;

&lt;p&gt;$ cat test.c &lt;br/&gt;
#include &amp;lt;sys/file.h&amp;gt;&lt;br/&gt;
#include &amp;lt;errno.h&amp;gt;&lt;/p&gt;

&lt;p&gt;int main() {&lt;br/&gt;
        int fd;&lt;br/&gt;
        int r;&lt;/p&gt;

&lt;p&gt;        printf(&quot;-- starting --\n&quot;);&lt;/p&gt;

&lt;p&gt;        fd = open(&quot;locktest.txt&quot;, O_RDWR);&lt;br/&gt;
        if(fd &amp;lt; 0) &lt;/p&gt;
{
                printf(&quot;open failed\n&quot;);
                exit(1);
        }

&lt;p&gt;        r = flock(fd, LOCK_EX|LOCK_NB);&lt;br/&gt;
        if(r == -1) &lt;/p&gt;
{
                printf(&quot;Error in flock: %d\n&quot;, errno);
                exit(1);
        }

&lt;p&gt;        flock(fd, LOCK_UN);&lt;br/&gt;
        close(fd);&lt;br/&gt;
        return 0;&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;Creating &apos;locktest.txt&apos; on a 2.2 server (while using the 1.8) client + starting the application ~2-3 times causes flock() to fail:&lt;/p&gt;

&lt;p&gt;rm -f locktest.txt ; touch locktest.txt ; for x in &lt;/p&gt;
{0..5}
&lt;p&gt; ; do ./a.out ; sleep 1 ; done&lt;br/&gt;
&amp;#8211; starting &amp;#8211;&lt;br/&gt;
-- starting &amp;#8211;&lt;br/&gt;
Error in flock: 11&lt;br/&gt;
&amp;#8211; starting &amp;#8211;&lt;br/&gt;
Error in flock: 11&lt;br/&gt;
&amp;#8211; starting &amp;#8211;&lt;br/&gt;
Error in flock: 11&lt;br/&gt;
&amp;#8211; starting &amp;#8211;&lt;br/&gt;
Error in flock: 11&lt;br/&gt;
&amp;#8211; starting &amp;#8211;&lt;br/&gt;
Error in flock: 11&lt;/p&gt;

&lt;p&gt;The &apos;EAGAIN&apos; error will be gone after a couple of seconds (i suppose that&apos;s when the leaked&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/help_16.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; lock timed out).&lt;/p&gt;


&lt;p&gt;Note that exactly the same code works fine on:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;A 1.8.x client talking to 1.8.x servers&lt;/li&gt;
	&lt;li&gt;A 2.2 client talking to 2.2 servers&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;The 1.8 client in my test is running:&lt;br/&gt;
$ cat /proc/fs/lustre/version &lt;br/&gt;
lustre: 1.8.7.80&lt;br/&gt;
kernel: patchless_client&lt;br/&gt;
build:  ../lustre/scripts--PRISTINE-2.6.18-308.1.1.el5&lt;/p&gt;

&lt;p&gt;The 2.2 servers are on:&lt;/p&gt;

&lt;p&gt;bash-4.1$ uname -r&lt;br/&gt;
2.6.32-220.4.2.el6_lustre.x86_64&lt;/p&gt;

&lt;p&gt;bash-4.1$ cat /proc/fs/lustre/version &lt;br/&gt;
lustre: 2.2.0&lt;br/&gt;
kernel: patchless_client&lt;br/&gt;
build:  2.2.0-RC2--PRISTINE-2.6.32-220.4.2.el6_lustre.x86_64&lt;/p&gt;


&lt;p&gt;The filesystem is mounted via:&lt;br/&gt;
$ grep _xl /etc/fstab&lt;br/&gt;
10.201.62.13@o2ib:10.201.62.14@o2ib:/nero /cluster/scratch_xl lustre flock,_netdev 0 0&lt;/p&gt;
</comment>
                            <comment id="42252" author="pjones" created="Wed, 25 Jul 2012 12:54:23 +0000"  >&lt;p&gt;Oleg is look into this one&lt;/p&gt;</comment>
                            <comment id="42253" author="green" created="Wed, 25 Jul 2012 12:56:30 +0000"  >&lt;p&gt;Hm, I was under impression that the fix for this landed in time for 2.2, but alas.&lt;/p&gt;

&lt;p&gt;The patch that fixes this could be found here: &lt;a href=&quot;http://review.whamcloud.com/#change,2193&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,2193&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="42335" author="ethz.support" created="Thu, 26 Jul 2012 11:27:49 +0000"  >&lt;p&gt;Would we have to patch only the MDS or also all OSTs?&lt;br/&gt;
Upgrading all OSTs requires quite some downtime :-/&lt;/p&gt;



&lt;p&gt;Could you provide us the rpms patched for 2.2 servers? &lt;/p&gt;



&lt;p&gt;Thanks in advance.&lt;/p&gt;</comment>
                            <comment id="42369" author="green" created="Fri, 27 Jul 2012 01:11:56 +0000"  >&lt;p&gt;flocks are only taken on MDS, so updating just MDS is fine.&lt;/p&gt;</comment>
                            <comment id="42384" author="ethz.support" created="Fri, 27 Jul 2012 06:15:06 +0000"  >&lt;p&gt;Could you provide us patched rpms?&lt;/p&gt;



&lt;p&gt;Thanks in advance&lt;/p&gt;</comment>
                            <comment id="42393" author="pjones" created="Fri, 27 Jul 2012 09:40:23 +0000"  >&lt;p&gt;Yangsheng is working on creating patched RPMs&lt;/p&gt;</comment>
                            <comment id="42394" author="simmonsja" created="Fri, 27 Jul 2012 09:44:15 +0000"  >&lt;p&gt;Don&apos;t forget the patch for &lt;a href=&quot;http://review.whamcloud.com/#change,3008&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,3008&lt;/a&gt; as well since it is need to 2.3 &amp;lt;-&amp;gt; 2.2 interop testing,&lt;/p&gt;</comment>
                            <comment id="42395" author="pjones" created="Fri, 27 Jul 2012 10:02:55 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#change,3486&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,3486&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="42421" author="green" created="Sat, 28 Jul 2012 01:10:03 +0000"  >&lt;p&gt;James, like you correctly mention, that change is only needed for 2.3 interop which is not the case here, so there is no rush to get it included, esp. since there is no official 2.3 release and won&apos;t be for some time.&lt;/p&gt;

&lt;p&gt;You can get RPMs here: &lt;a href=&quot;http://build.whamcloud.com/job/lustre-reviews/7975/arch=x86_64,build_type=server,distro=el6,ib_stack=inkernel/artifact/artifacts/RPMS/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://build.whamcloud.com/job/lustre-reviews/7975/arch=x86_64,build_type=server,distro=el6,ib_stack=inkernel/artifact/artifacts/RPMS/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="48000" author="ys" created="Mon, 19 Nov 2012 11:39:00 +0000"  >&lt;p&gt;As Lurii commented in gerrit:&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;Iurii Golovach		Nov 2

Patch Set 1: I would prefer that you didn&apos;t submit this

This patch looks obsolete since there are already number of patches which cover this issue:

http://review.whamcloud.com/#change,3722 http://review.whamcloud.com/#change,3202 http://review.whamcloud.com/#change,3203 http://review.whamcloud.com/#change,3725 http://review.whamcloud.com/#change,3727
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So close this bug.&lt;/p&gt;</comment>
                    </comments>
                    <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_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic</customfieldname>
                        <customfieldvalues>
                                        <label>client</label>
            <label>locking</label>
            <label>server</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzv34v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4007</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10021"><![CDATA[2]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>