Bug 2160723

Summary: Net-SNMP not responding when proxy requests times out
Product: Red Hat Enterprise Linux 8 Reporter: Amey <abetkike>
Component: net-snmpAssignee: Josef Ridky <jridky>
Status: CLOSED ERRATA QA Contact: Evgeny Fedin <efedin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: net-snmp-5.8-27.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 09:05:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amey 2023-01-13 13:42:44 UTC
Description of problem:

When Net-SNMP daemon is configured to proxy requests on another agent. If this agent is not running, or in case of internal failure or timeout in the sub agent, the proxy requests fail as expected. But if a snmpset query is executed afterwards, the set request is queued and never processed. This causes all other subsequent snmpget requests to be never processed as well. That leaves our Net-SNMP daemon not responsive for ever.


How reproducible: Always

Steps to Reproduce:

Our local snmp agent is running on default port 161

Then add configuration for a dummy proxy (here there is no agent running on 163) in snmpd.conf file

 proxy -v 2c -c public localhost:163 .1.3.6.1.6666

Execute a snmpget on Net-SNMP that will be sent to the target agent.

snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.6666.1.0
This request times out as we never get a response.

Execute a snmpget.

snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.11.30.0
This request is successful as we get the expected results.

Execute a snmpset.

snmpset -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.11.30.0 i 1
This request times out and is never processed.

Execute a snmpget

snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.11.30.0
This request times out. At this moment, Net-SNMP is not responding anymore to any requests.


Actual results:

snmp fails to respond to any query.

Expected results:

snmp should not stop responding.

Additional info:

This is discussed upstream and also a fix is available.

https://github.com/net-snmp/net-snmp/issues/147

Comment 1 Josef Ridky 2023-01-16 07:44:17 UTC
Fix available upstream.
We plan to fix this issue for RHEL-8.8.0 release.

Comment 8 errata-xmlrpc 2023-05-16 09:05:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: net-snmp security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2969