From: SourceForge.net <no...@so...> - 2009-07-17 10:22:39
|
Bugs item #2821859, was opened at 2009-07-15 15:20 Message generated for change (Comment added) made by tanders You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2821859&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: agent Group: solaris Status: Open Resolution: None Priority: 5 Private: No Submitted By: Daniel Matuschek (matuschd) Assigned to: Nobody/Anonymous (nobody) Summary: not starting in a Solaris 10 zone, error on subcontainer ... Initial Comment: if installed in a Solaris 10 zone, Net-SNMP 5.5 (tested with pre2 and pre3) does not start. snmpd logs "error on subcontainer 'interface container' insert (-1)" NetSNMP 5.4 is running ok in a Solaris zone truss shows the following: so_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 7 so_socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 8 ioctl(8, SIOCGLIFNUM, 0xFFBF517C) = 0 ioctl(8, SIOCGLIFCONF, 0xFFBF516C) = 0 close(8) = 0 so_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 8 ioctl(8, SIOCGLIFINDEX, 0xFFBF4F90) Err#6 ENXIO close(8) = 0 so_socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 8 ioctl(8, SIOCGLIFINDEX, 0xFFBF4F90) Err#6 ENXIO close(8) = 0 so_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 8 ioctl(8, SIOCGLIFINDEX, 0xFFBF4F90) Err#6 ENXIO close(8) = 0 so_socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 8 ioctl(8, SIOCGLIFINDEX, 0xFFBF4F90) Err#6 ENXIO close(8) = 0 so_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 8 ioctl(8, SIOCGLIFINDEX, 0xFFBF4F90) Err#6 ENXIO close(8) = 0 so_socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 8 ioctl(8, SIOCGLIFINDEX, 0xFFBF4F90) Err#6 ENXIO close(8) = 0 close(7) = 0 putmsg(6, 0xFFBFF400, 0x00000000, 0) = 0 ioctl(6, I_FLUSH, FLUSHRW) = 0 putmsg(6, 0xFFBFF3B8, 0x00000000, 0) = 0 ioctl(6, I_FLUSH, FLUSHRW) = 0 write(3, " e r r o r o n s u b".., 56) = 56 ---------------------------------------------------------------------- >Comment By: Thomas Anders (tanders) Date: 2009-07-17 12:22 Message: What's your full configure line? ---------------------------------------------------------------------- Comment By: Daniel Matuschek (matuschd) Date: 2009-07-17 11:15 Message: unfortunately using exclusive IP is not an option in our environment. Not using --enable-mfd-rewrites does also not solve the problem. Using configure with and without --enable-mfd-rewrites results in exactly the same snmpd binary (that is not working). Seems, that this configuration option is not working in 5.5pre3 ---------------------------------------------------------------------- Comment By: Anders Persson (apersson) Date: 2009-07-17 01:13 Message: This is due to if_nameindex(3) reporting physical interface names rather than the logical one, even though the zone does not have access to the physical interface. So issuing subsequent SIOCGLIF* ioctls for the physical interface will fail and things break down. A couple of work arounds: (1) Configure the zone to use an exclusive IP-stack (2) Do not use the --enable-mfd-rewrites flag (which will unfortunately also disable ifXTable) I probably need to revert to using SIOCGLIFCONF directly rather than if_nameindex(3) to get this to work nicely on Solaris 10. ---------------------------------------------------------------------- Comment By: Daniel Matuschek (matuschd) Date: 2009-07-16 14:51 Message: more log using debugging: trace: getMibstat(): kernel_sunos5.c, 655: kernel_sunos5: getMibstat (1, *, 224, 2, *, *) trace: getMibstat(): kernel_sunos5.c, 674: kernel_sunos5: ... cache_valid 1 time 30 ttl 30 now 1247748351 trace: getentry(): kernel_sunos5.c, 780: kernel_sunos5: bad cache length -224 - not multiple of entry size 224 trace: getif(): kernel_sunos5.c, 1368: kernel_sunos5: ...... using if_nameindex trace: getMibstat(): kernel_sunos5.c, 739: kernel_sunos5: ... result 1 rc 0 trace: getMibstat(): kernel_sunos5.c, 754: kernel_sunos5: ... getMibstat returns 0 trace: netsnmp_arch_interface_container_load(): if-mib/data_access/interface_solaris2.c, 81: access:interface:container:arch: processing '' trace: netsnmp_access_interface_entry_create(): if-mib/data_access/interface.c, 277: access:interface:entry: create trace: netsnmp_access_interface_index_find(): if-mib/data_access/interface.c, 197: access:interface:find: index trace: getMibstat(): kernel_sunos5.c, 655: kernel_sunos5: getMibstat (4, *, 100, 1, *, *) trace: getMibstat(): kernel_sunos5.c, 674: kernel_sunos5: ... cache_valid 0 time 0 ttl 60 now 1247748351 trace: getmib(): kernel_sunos5.c, 874: kernel_sunos5: ...... getmib (260, 20, ...) trace: getmib(): kernel_sunos5.c, 1030: kernel_sunos5: ...... getmib buffer size is 2000 trace: getmib(): kernel_sunos5.c, 1046: kernel_sunos5: ...... getmib returns 2 trace: getMibstat(): kernel_sunos5.c, 739: kernel_sunos5: ... result 1 rc 2 trace: getMibstat(): kernel_sunos5.c, 754: kernel_sunos5: ... getMibstat returns 1 trace: getMibstat(): kernel_sunos5.c, 655: kernel_sunos5: getMibstat (18, *, 176, 1, *, *) trace: getMibstat(): kernel_sunos5.c, 674: kernel_sunos5: ... cache_valid 0 time 0 ttl 30 now 1247748351 trace: getmib(): kernel_sunos5.c, 874: kernel_sunos5: ...... getmib (268, 25, ...) trace: getmib(): kernel_sunos5.c, 1030: kernel_sunos5: ...... getmib buffer size is 3520 trace: getmib(): kernel_sunos5.c, 1046: kernel_sunos5: ...... getmib returns 2 trace: getMibstat(): kernel_sunos5.c, 739: kernel_sunos5: ... result 1 rc 2 trace: getMibstat(): kernel_sunos5.c, 754: kernel_sunos5: ... getMibstat returns 1 trace: netsnmp_arch_interface_container_load(): if-mib/data_access/interface_solaris2.c, 171: access:interface:container:arch: interface '' have 32-bit stat counters compare:index: compare .0 to .0 compare:index: result was 0 trace: netsnmp_binary_array_insert(): container_binary_array.c, 348: container: not inserting duplicate key error on subcontainer 'interface container' insert (-1) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2821859&group_id=12694 |