Bug 1461492
Summary: | inet:gethostbyname returns IPv4 results when IPv6 is configured [OSP-11] | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | John Eckersberg <jeckersb> |
Component: | erlang | Assignee: | Peter Lemenkov <plemenko> |
Status: | CLOSED ERRATA | QA Contact: | pkomarov |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 11.0 (Ocata) | CC: | achernet, apevec, fdinitto, jeckersb, jschluet, lhh, michele, plemenko, ushkalim |
Target Milestone: | z2 | Keywords: | Triaged, ZStream |
Target Release: | 11.0 (Ocata) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | erlang-18.3.4.5-3.el7ost.1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1461190 | Environment: | |
Last Closed: | 2017-09-13 21:50:42 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
John Eckersberg
2017-06-14 15:10:26 UTC
Different build (against RHEL 7.3) - erlang-18.3.4.5-3.el7ost.1 Verified : on Ver. :erlang-18.3.4.5-3.el7ost.1 Steps taken: erlang ver. check: [root@controller-0 ~]#yum list *erlang*|grep '18'|awk '{print $2}'|uniq 18.3.4.5-3.el7ost.1 prepare env. for erlang run: [root@controller-0 ~]#export ERL_INET_GETHOST_DEBUG=5 [root@controller-0 ~]#export ERL_INETRC=/root/inetrc [root@controller-0 ~]#export ERL_EPMD_ADDRESS=$(grep `hostname -s`\.localdomain /etc/hosts|awk '{print $1}') [root@controller-0 ~]#echo "{inet6, true}.">>/root/inetrc [root@controller-0 ~]#pcs cluster stop --all [root@controller-0 ~]#killall epmd Test execution: Expected results are validated - we get ipv6 output from "net:gethostbyname" [root@controller-0 ~]# erl -sname foo -proto_dist inet6_tcp inet_gethost[932209] (DEBUG):Saved domainname . inet_gethost[932209] (DEBUG):Created worker[932210] with fd 3 inet_gethost[932209] (DEBUG):Saved domainname . inet_gethost[932210] (DEBUG):Worker got request, op = 1, proto = 1, data = controller-0. inet_gethost[932210] (DEBUG):Starting gethostbyname(controller-0) inet_gethost[932210] (DEBUG):gethostbyname OK inet_gethost[932209] (DEBUG):End of file while reading from pipe. inet_gethost[932209] (DEBUG):Erlang has closed. Erlang/OTP 18 [erts-7.3.1.3] [source] [64-bit] [smp:12:12] [async-threads:10] [hipe] [kernel-poll:false] Eshell V7.3.1.3 (abort with ^G) (foo@controller-0)1> inet:gethostbyname("controller-0"). inet_gethost[932308] (DEBUG):Saved domainname . inet_gethost[932308] (DEBUG):Created worker[932309] with fd 3 inet_gethost[932308] (DEBUG):Saved domainname . inet_gethost[932309] (DEBUG):Worker got request, op = 1, proto = 2, data = controller-0. inet_gethost[932309] (DEBUG):Starting getaddrinfo(controller-0, ...) inet_gethost[932309] (DEBUG):getaddrinfo returned 0 {ok,{hostent,"controller-0.localdomain",[],inet6,16, [{9760,82,0,9134,0,0,0,25}]}} Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2722 |