Bug 554956 - The snmpd reports a error message 'error on subcontainer '' insert (-1)' for alias interfaces
Summary: The snmpd reports a error message 'error on subcontainer '' insert (-1)' for ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: net-snmp
Version: 5.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Safranek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 555318
TreeView+ depends on / blocked
 
Reported: 2010-01-13 06:59 UTC by Masahiro Matsuya
Modified: 2022-03-13 13:50 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 555318 (view as bug list)
Environment:
Last Closed: 2011-07-21 09:09:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1076 0 normal SHIPPED_LIVE net-snmp bug fix and enhancement update 2011-07-21 09:07:58 UTC

Description Masahiro Matsuya 2010-01-13 06:59:54 UTC
Description of Problem:

The snmpd reports a error message into /var/log/messages as follows.

snmpd[PID]: error on subcontainer '' insert (-1)

According to the debugging log, some key was overlapped when the snmpd captured
EtherLike-MIB::dot3StatsTable.

2009-12-16 15:00:11 snmp_agent: tp->start EtherLike-MIB::dot3StatsTable, tp->end EtherLike-MIB::dot3.3,
<snip>
2009-12-16 15:00:11 trace: netsnmp_binary_array_insert(): container_binary_array.c, 377:
2009-12-16 15:00:11 container: not inserting duplicate key
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009-12-16 15:00:11 error on subcontainer '' insert (-1)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Then, according to ifconfig, an IP aliasing "eth0:1" was set up to eth0.

eth0      Link encap:Ethernet  HWaddr 00:0A:E4:8B:F7:B2  
          inet addr:192.168.1.31  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:166692481 errors:0 dropped:0 overruns:0 frame:0
          TX packets:197237691 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2333128041 (2.1 GiB)  TX bytes:935095508 (891.7 MiB)
          Memory:ce160000-ce180000

eth0:1    Link encap:Ethernet  HWaddr 00:0A:E4:8B:F7:B2  
          inet addr:192.168.1.30  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Memory:ce160000-ce180000

The snmpd reports the error message mentioned above when it captures
the following two MIBs on an environment where an IP aliasing is set up.
- ETHERLIKE-MIB:dot3StatsTable
- RMON-MIB::etherStatsTable


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

 Release Number: 5.3
 Architecture: x86
 Kernel Version: 2.6.18-128.el5
 Related Package Version: net-snmp-5.3.2.2-7.el5_4.2

How reproducible:

 always

Steps to Reproduce:

1) Run the following command to set up an IP aliasing "eth0:1" to eth0.

# ifconfig eth0:1 192.168.1.100

2) Run the following command to restart the snmpd service.

# service snmpd restart

3) Capture EtherLike-MIB::dot3StatsTable or RMON-MIB::etherStatsTable
 
# snmpwalk -c public -v 1 localhost EtherLike-MIB::dot3StatsTable
EtherLike-MIB::dot3StatsIndex.2 = INTEGER: 2
EtherLike-MIB::dot3StatsAlignmentErrors.2 = Counter32: 0
EtherLike-MIB::dot3StatsSingleCollisionFrames.2 = Counter32: 0
EtherLike-MIB::dot3StatsMultipleCollisionFrames.2 = Counter32: 0
EtherLike-MIB::dot3StatsLateCollisions.2 = Counter32: 0
EtherLike-MIB::dot3StatsExcessiveCollisions.2 = Counter32: 0
EtherLike-MIB::dot3StatsDuplexStatus.2 = INTEGER: fullDuplex(3)

Actual results:

The snmpd reports a error message "error on subcontainer '' insert (-1)".

Expected results:

The snmpd doesn't report a error message "error on subcontainer '' insert (-1)".

Additional info:

The entry for these tables is stored with ifindex as the key. The ifindex of eth0:1 is same as that of eth0:1. So, it was recognized as duplicate entry.

Comment 2 Jan Safranek 2010-01-14 12:45:48 UTC
I've fixed it slightly differently upstream, SVN rev. 18006.

Comment 9 RHEL Program Management 2010-08-09 18:45:39 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 14 errata-xmlrpc 2011-07-21 09:09:15 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 15 errata-xmlrpc 2011-07-21 12:20:18 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


Note You need to log in before you can comment on or make changes to this bug.