<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:45:12 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-4713] Failure on test suite sanity test_237: check_fhandle_syscalls failed </title>
                <link>https://jira.whamcloud.com/browse/LU-4713</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for sarah &amp;lt;sarah@whamcloud.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;http://maloo.whamcloud.com/test_sets/a67ae282-a01c-11e3-ab91-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://maloo.whamcloud.com/test_sets/a67ae282-a01c-11e3-ab91-52540035b04c&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The sub-test test_237 failed with the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;check_fhandle_syscalls failed&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;test log&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;== sanity test 237: Verify name_to_handle_at/open_by_handle_at syscalls ============================== 17:55:21 (1393466121)
name_by_handle_at(f237.sanity) error: Bad file descriptor
 sanity test_237: @@@@@@ FAIL: check_fhandle_syscalls failed 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>server: lustre-master build # 1911 RHEL6 ldiskfs&lt;br/&gt;
client is SLES11 SP3</environment>
        <key id="23467">LU-4713</key>
            <summary>Failure on test suite sanity test_237: check_fhandle_syscalls failed </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="bogl">Bob Glossman</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 5 Mar 2014 07:37:22 +0000</created>
                <updated>Wed, 14 May 2014 14:11:09 +0000</updated>
                            <resolved>Wed, 14 May 2014 14:11:09 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="79259" author="adilger" created="Thu, 13 Mar 2014 17:32:01 +0000"  >&lt;p&gt;Swapnil, could you please take a look at this bug, since it relates to the open_by_handle() code/test that you added.&lt;/p&gt;</comment>
                            <comment id="79326" author="spimpale" created="Fri, 14 Mar 2014 10:17:53 +0000"  >&lt;p&gt;Is there a way to reproduce this?&lt;/p&gt;</comment>
                            <comment id="81635" author="bogl" created="Tue, 15 Apr 2014 17:22:52 +0000"  >&lt;p&gt;As far as I can tell this is easy to reproduce.  Seen with any sles11sp3 client.  In sles11sp3 with default kernel .config lustre is built with &apos;#define HAVE_FHANDLE_SYSCALLS 1&apos; and &apos;#undef HAVE_FHANDLE_GLIBC_SUPPORT&apos;.  The test program check_fhandle_syscalls seems to build OK, but always returns an error when called.&lt;/p&gt;</comment>
                            <comment id="82360" author="spimpale" created="Thu, 24 Apr 2014 07:24:30 +0000"  >&lt;p&gt;The test failed with the following reason:&lt;br/&gt;
name_by_handle_at(f237.sanity) error: Bad file descriptor&lt;/p&gt;

&lt;p&gt;I don&apos;t think it failed because HAVE_FHANDLE_SYSCALLS is defined and HAVE_FHANDLE_GLIBC_SUPPORT is not. Because in that case we explicitly define struct file_handle, __NR_name_to_handle_at and __NR_open_by_handle_at.&lt;/p&gt;

&lt;p&gt;test_237 does the following:&lt;br/&gt;
echo &quot;Test file_handle syscalls&quot; &amp;gt; $DIR/$tfile&lt;br/&gt;
without checking whether the write succeeded. I think we should add a check here.&lt;/p&gt;</comment>
                            <comment id="82415" author="spimpale" created="Thu, 24 Apr 2014 17:30:07 +0000"  >&lt;p&gt;Patch with the above check: &lt;a href=&quot;http://review.whamcloud.com/#/c/10088/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10088/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="82505" author="bogl" created="Fri, 25 Apr 2014 17:24:54 +0000"  >&lt;p&gt;test run with your added check still fails and doesn&apos;t report failure in the write. it still reports what looks like a failure in check_fhandle_syscalls: &quot;name_by_handle_at(f237.sanity) error: Bad file descriptor&quot;&lt;/p&gt;

&lt;p&gt;I suspect the local definitions in the test program that are used in the case of !defined(HAVE_FHANDLE_GLIBC_SUPPORT) &amp;amp;&amp;amp; defined(HAVE_FHANDLE_SYSCALLS) don&apos;t exactly match the definitions in the underlying kernel.&lt;/p&gt;</comment>
                            <comment id="82516" author="bogl" created="Fri, 25 Apr 2014 17:55:19 +0000"  >&lt;p&gt;Since in Centos where the feature doesn&apos;t exist the test program always just reports success without really doing anything and in SLES where the feature does exist the test always fails, I&apos;m going to just disable the test for now.  In its current state this test isn&apos;t adding any value and it&apos;s just making SLES test runs fail.&lt;/p&gt;</comment>
                            <comment id="82525" author="bogl" created="Fri, 25 Apr 2014 18:10:11 +0000"  >&lt;p&gt;patch to disable the test&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/10105&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10105&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="82536" author="simmonsja" created="Fri, 25 Apr 2014 18:56:06 +0000"  >&lt;p&gt;That is strange. The test should succeed on systems with kernel fhandle and lacking glibc support. That is the test setup I worked with. What does the config logs show for your SP3 system? Is HAVE_FHANDLE_GLIBC_SUPPORT set when it shouldn&apos;t be?&lt;/p&gt;</comment>
                            <comment id="82537" author="bogl" created="Fri, 25 Apr 2014 19:05:01 +0000"  >&lt;p&gt;no, I&apos;m seeing HAVE_FHANDLE_GLIBC_SUPPORT #undef&apos;ed.  I can manually run check_fhandle_syscalls and it fails every time.  As I said I suspect the internal definitions in the test program don&apos;t match the real definitions in the underlying kernel.  That&apos;s the only think I can think of that might be a cause.&lt;/p&gt;</comment>
                            <comment id="82985" author="bogl" created="Thu, 1 May 2014 13:45:47 +0000"  >&lt;p&gt;Just as speculation I tried replacing the local definitions of syscall numbers and struct file_handle with ones from SLES #include files.  I&apos;m guessing the ones that are in there now are from RHEL instances.  If I do that then the test passes.  I think this confirms my theory about the local definitions in the test program not matching the underlying kernel.&lt;/p&gt;

&lt;p&gt;However there&apos;s still a problem.  I can&apos;t figure out how to define the correct syscall numbers for all builds.  It seems to vary based on the arch type.&lt;/p&gt;

&lt;p&gt;In arch/x86/include/asm/unistd_64.h it&apos;s:&lt;/p&gt;

&lt;p&gt;#define __NR_name_to_handle_at 303&lt;br/&gt;
#define __NR_open_by_handle_at 304&lt;/p&gt;

&lt;p&gt;while in arch/x86/include/asm/unistd_32.h it&apos;s:&lt;/p&gt;

&lt;p&gt;#define __NR_name_to_handle_at 341&lt;br/&gt;
#define __NR_open_by_handle_at 342&lt;/p&gt;

&lt;p&gt;and in include/asm-generic/unistd.h it&apos;s:&lt;/p&gt;

&lt;p&gt;#define __NR_name_to_handle_at 264&lt;br/&gt;
#define __NR_open_by_handle_at 265&lt;/p&gt;

&lt;p&gt;Since I&apos;m on x86_64 I hard coded the values from unistd_64.h and it worked for me, but that&apos;s hardly a production worthy general solution.&lt;/p&gt;
</comment>
                            <comment id="82991" author="simmonsja" created="Thu, 1 May 2014 14:58:48 +0000"  >&lt;p&gt;I wonder if their is a way to do header magic to make this work.&lt;/p&gt;</comment>
                            <comment id="82995" author="bogl" created="Thu, 1 May 2014 15:21:56 +0000"  >&lt;p&gt;It seems likely there is a way to do header magic to get what is needed, but I can&apos;t figure out how.  The only method I can come up with so far is a horrible, ad-hoc series of #if tests hard coded in.  Pretty sure that&apos;s not the way to go.&lt;/p&gt;</comment>
                            <comment id="83000" author="bogl" created="Thu, 1 May 2014 16:00:55 +0000"  >&lt;p&gt;fix for test program:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/10189&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10189&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I did the horrible sequence of #if&apos;s as I couldn&apos;t come up with a better scheme.&lt;br/&gt;
Please add review comments if you have a better idea.&lt;/p&gt;</comment>
                            <comment id="84081" author="simmonsja" created="Wed, 14 May 2014 14:06:23 +0000"  >&lt;p&gt;Patch landed to master. Ticket can be closed and be reopened if needed.&lt;/p&gt;</comment>
                            <comment id="84085" author="pjones" created="Wed, 14 May 2014 14:11:09 +0000"  >&lt;p&gt;Landed for 2.6&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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzwgrz:</customfieldvalue>

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