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 5 product line. The current stable release is 5.10. 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 556824

Summary: udpTable has wrong indexes
Product: Red Hat Enterprise Linux 5 Reporter: Karel Srot <ksrot>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: low    
Version: 5.4.zCC: jsafrane, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 543352
: 1184433 (view as bug list) Environment:
Last Closed: 2011-07-21 09:11:47 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:

Description Karel Srot 2010-01-19 15:11:46 UTC
Similar problem can be reproduced on RHEL5.4 on s390x.

after executing following command in the test 58:
# /usr/src/redhat/BUILD/net-snmp-5.3.2.2/apps/snmpnetstat/snmpnetstat -Cn -Cp udp -v2c -c testcommunity udp:localhost:8791

The output is searched for "127.0.0.1.8791" therefore it should be something like:

Active Internet (udp) Connections
Proto Local Address               
... excluded several lines with open udp ports ...
udp   127.0.0.1.123         
udp   127.0.0.1.8791        

but instead of it the output is:

Active Internet (udp) Connections
Proto Local Address               
... excluded several lines with open udp ports ...
udp   *:123         
udp   *:8791        

and therefore the test fails

58:testing if snmpnetstat finds the running agent in udpTable...FAIL


Version of the component:
net-snmp-5.3.2.2-7.el5_4.2.s390x


How to reproduce:
1. build binaries from source
2. cd into "testing" directory  /usr/src/redhat/BUILD/net-snmp../testing
3. run the specified test using ./RUNTEST script


+++ This bug was initially created as a clone of Bug #543352 +++

Description of problem:
The package compilation fails on ppc64 in %check section where 'make test' is executed with following error:

58:testing if snmpnetstat finds the running agent in udpTable...FAIL

The reason is thet snmpd reports udpTable with all IP addresses in indexes '0.0.0.0' instead of real IP address:


"udpTable.udpEntry.udpLocalAddress.0.0.0.0.161 = IpAddress: 127.0.0.1"
shold be:
"udpTable.udpEntry.udpLocalAddress.127.0.0.1.161 = IpAddress: 127.0.0.1"

This affects only big endian systems.

Comment 4 RHEL Program Management 2011-01-11 20:34:51 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 5 RHEL Program Management 2011-01-11 23:07:33 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 6 Jan Safranek 2011-01-25 13:47:31 UTC
The root cause is that snmpd reports udpTable indexes always as 0.0.0.0, even something (=snmpd) listens on loopback only:

$ snmpwalk -v2c -c public localhost udp
Wrong:
UDP-MIB::udpLocalAddress.0.0.0.0.161 = IpAddress: 127.0.0.1
Correct:
UDP-MIB::udpLocalAddress.127.0.0.1.161 = IpAddress: 127.0.0.1

Comment 10 errata-xmlrpc 2011-07-21 09:11:47 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-1076.html

Comment 11 errata-xmlrpc 2011-07-21 12:20:43 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-1076.html