<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:33:21 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-17186] Replace deprecated gethostby*() calls with get*info() to support resolv ordering</title>
                <link>https://jira.whamcloud.com/browse/LU-17186</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Please update the last places in the code where gethostbyaddr() and gethostbyname() are used, especially in the Kerberos user space utility with getaddrinfo() and getnameinfo().&lt;/p&gt;

&lt;p&gt;That will make Lustre compatible with the /etc/gai.conf file that gives control over how these calls return info, especially ordering of IP address when a DNS host has multiple IP addresses.&lt;/p&gt;

&lt;p&gt;(see man gai.conf)&lt;br/&gt;
&#160;&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;CONFORMING TO
POSIX.1-2001 &#160;specifies &#160;gethostbyname(), gethostbyaddr(), sethostent(), endhostent(), gethostent(), and h_errno; gethostbyname(), gethostbyaddr(), and h_errno are marked obsolescent in that standard. 
POSIX.1-2008 removes the specifications of gethostbyname(), gethostbyaddr(), and h_errno, recommending the use of getaddrinfo(3) and getnameinfo(3) instead.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is simple enough that this ticket could be handled by somebody which is not a Kerberos expert.&lt;/p&gt;</description>
                <environment></environment>
        <key id="78355">LU-17186</key>
            <summary>Replace deprecated gethostby*() calls with get*info() to support resolv ordering</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="yujian">Jian Yu</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Oct 2023 20:20:28 +0000</created>
                <updated>Mon, 8 Jan 2024 21:13:52 +0000</updated>
                            <resolved>Wed, 3 Jan 2024 14:23:05 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="388958" author="gerrit" created="Wed, 11 Oct 2023 20:22:04 +0000"  >&lt;p&gt;&quot;Jian Yu &amp;lt;yujian@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52632&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52632&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17186&quot; title=&quot;Replace deprecated gethostby*() calls with get*info() to support resolv ordering&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17186&quot;&gt;&lt;del&gt;LU-17186&lt;/del&gt;&lt;/a&gt; utils: replace gethostby*() with getaddrinfo()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2d293e9b72eecd41607834bc5bff31ad24814112&lt;/p&gt;</comment>
                            <comment id="397600" author="adilger" created="Wed, 20 Dec 2023 09:23:56 +0000"  >&lt;p&gt;Jian, does the &lt;tt&gt;getaddrinfo()&lt;/tt&gt; interface allow returning multiple addresses for the same hostname, and do the tools handle this?  It would be useful for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16738&quot; title=&quot;Improve mount.lustre with many MGS NIDs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16738&quot;&gt;LU-16738&lt;/a&gt; if a single MGS hostname could resolve to multiple NIDs with round-robin DNS, and would allow shortening the mount command line.  &lt;/p&gt;</comment>
                            <comment id="397659" author="yujian" created="Wed, 20 Dec 2023 17:37:17 +0000"  >&lt;p&gt;Yes, &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;user-hover&quot; rel=&quot;adilger&quot;&gt;adilger&lt;/a&gt;.&lt;br/&gt;
The getaddrinfo() function allocates and initializes a linked list of &lt;em&gt;addrinfo&lt;/em&gt; structures, one for each network address that matches &lt;em&gt;node&lt;/em&gt; and &lt;em&gt;service&lt;/em&gt;, subject to any restrictions imposed by &lt;em&gt;hints&lt;/em&gt;, and returns a pointer to the start of the list in &lt;em&gt;res&lt;/em&gt;. The items in the linked list are linked by the &lt;em&gt;ai_next&lt;/em&gt; field.&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;
       &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; getaddrinfo(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *node, &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *service,
                       &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct addrinfo *hints,
                       struct addrinfo **res);

       struct addrinfo {
           &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;              ai_flags;
           &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;              ai_family;
           &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;              ai_socktype;
           &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;              ai_protocol;
           socklen_t        ai_addrlen;
           struct sockaddr *ai_addr;
           &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt;            *ai_canonname;
           struct addrinfo *ai_next;
       };
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="398366" author="gerrit" created="Wed, 3 Jan 2024 03:02:27 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52632/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52632/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17186&quot; title=&quot;Replace deprecated gethostby*() calls with get*info() to support resolv ordering&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17186&quot;&gt;&lt;del&gt;LU-17186&lt;/del&gt;&lt;/a&gt; utils: replace gethostby*() with get*info()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: de82fd88a7e9300f9558f1d30fe1ed744be11aa2&lt;/p&gt;</comment>
                            <comment id="398417" author="pjones" created="Wed, 3 Jan 2024 14:23:05 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="75582">LU-16738</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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|i03y53:</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>