Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 651364

Summary: gethostbyname2 returns 0.0.0.0 IPv4 address for hosts from LDAP on s390x
Product: Red Hat Enterprise Linux 4 Reporter: Ondrej Moriš <omoris>
Component: nss_ldapAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED ERRATA QA Contact: Ondrej Moriš <omoris>
Severity: high Docs Contact:
Priority: medium    
Version: 4.9CC: dpal, jplans
Target Milestone: rc   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: nss_ldap-253-16.el4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-16 14:03:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 205243    

Description Ondrej Moriš 2010-11-09 12:02:52 UTC
Description of problem:

Consider the following:

* nsswitch is configured to query ldap for hosts,
* nss_ldap is configured to use local OpenLDAP server and
* local OpenLDAP server contains the following:

dn: dc=example,dc=com
objectclass: top
objectclass: domain
dc: example

dn: cn=testhost.example.com,dc=example,dc=com
cn: testhost.example.com
objectClass: device
objectClass: ipHost
ipHostNumber: 172.31.0.1

Then host queries via getent or, for instance, gethostbyname2 function return wrong IPv4 address for the aforementioned "testhost":

# getent hosts
127.0.0.1       localhost.localdomain localhost
10.16.112.55    s390x-4as-v1.ss.eng.bos.redhat.com s390x-4as-v1
0.0.0.0         testhost.example.com

Version-Release number of selected component (if applicable):

nss_ldap-253-15.el4.s390x
nss_ldap-253-7.el4_8.4.s390x

How reproducible:

Always.

Steps to Reproduce:

See above or execute /CoreOS/nss_ldap/Regression/bz205243-gethostbyname2-queried-with-AF-INET6-IPv6-return.
  
Actual results:

0.0.0.0    testhost.example.com

Expected results:

172.31.0.1 testhost.example.com

Additional info:

This issue is only on s390x, the other architectures (i386, ia64, ppcp, x86_64 and s390x) are not affected.

Comment 2 Nalin Dahyabhai 2010-11-09 23:10:39 UTC
I need some help getting access to an s390x system.  Beaker's watchdog aborted my reserve one after about 3 hours.

Comment 7 errata-xmlrpc 2011-02-16 14:03:05 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0239.html