Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183489 - net-analyzer/net-snmp-5.4 "error on subcontainer 'ia_addr' insert" messages to syslog every 20 seconds
Summary: net-analyzer/net-snmp-5.4 "error on subcontainer 'ia_addr' insert" messages t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Netmon project
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-28 08:10 UTC by Vic Cross
Modified: 2007-09-06 08:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Output from "emerge --info" (emerge.info,3.44 KB, text/plain)
2007-06-28 08:12 UTC, Vic Cross
Details
Upstream patch for "duplicate IP address" bug (net-snmp-5.3.1-shared-ip-2.patch,9.85 KB, patch)
2007-06-28 08:17 UTC, Vic Cross
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vic Cross 2007-06-28 08:10:41 UTC
Upstream has a patch for a bug in 5.4 caused by net-snmp believing that an IP address is present on more than one interface.

The URL points to the upstream bug report; last update at time of writing was that the patch was requested to go into 5.4.1-rc1.

As there are a number of reports of bugs in 5.4 fixed by patches from upstream, please consider adding an ebuild (testing would be fine) that includes these upstream patches.

Reproducible: Always

Steps to Reproduce:
1. Build net-snmp-5.4 from portage ebuild
2. Start snmpd

Actual Results:  
Error messages appear in syslog every 20 seconds.

Expected Results:  
No error messages every 20 seconds OR a warning message at startup.

The issue has also been reported when using interface bonding (my situation I believe, as I don't have IP addresses on more than one interface).  When I build 5.4 including the upstream patch, I get the following single message at startup:

  snmpd[21091]: Duplicate IPv6 address detected, some interfaces may not be visible in IP-MIB

which is the behaviour that the patch produces.
Comment 1 Vic Cross 2007-06-28 08:12:53 UTC
Created attachment 123282 [details]
Output from "emerge --info"
Comment 2 Vic Cross 2007-06-28 08:17:25 UTC
Created attachment 123283 [details, diff]
Upstream patch for "duplicate IP address" bug

This is the patch from upstream that resolves the issue I'm seeing.  I created a "net-snmp-5.4-r1.ebuild" in my portage overlay with just the epatch to apply it, and it cleanly builds for me.
Comment 3 Vic Cross 2007-06-28 08:19:31 UTC
For completeness, the diff to show what I did to make the ebuild...

--- /usr/portage/net-analyzer/net-snmp/net-snmp-5.4.ebuild      2007-05-18 
06:38:30.000000000 +1000
+++ /usr/local/portage/net-analyzer/net-snmp/net-snmp-5.4-r1.ebuild     2007-06-28 01:36:12.000000000 +1000
@@ -40,6 +40,7 @@
        cd "${S}"

        epatch "${FILESDIR}"/${P}-makefile.patch
+       epatch "${FILESDIR}"/net-snmp-5.3.1-shared-ip-2.patch

 #      The lm_sensors patch has a memory leak
 #      If you can help, please attach a patch to bug 109785
Comment 4 Markus Ullmann (RETIRED) gentoo-dev 2007-09-06 08:00:26 UTC
This has been fixed in our 5.4.1 ebuild with upstream patch from Robin Johnson