Bug 2072626 - RHV-M generates SNMPv3 trap with msgAuthoritativeEngineBoots: 0 despite multiple engine restarts
Summary: RHV-M generates SNMPv3 trap with msgAuthoritativeEngineBoots: 0 despite multi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.10
Hardware: All
OS: All
high
high
Target Milestone: ovirt-4.5.1
: ---
Assignee: Eli Mesika
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-06 16:32 UTC by Sam Wachira
Modified: 2023-09-15 01:53 UTC (History)
5 users (show)

Fixed In Version: ovirt-engine-4.5.1
Doc Type: Bug Fix
Doc Text:
The ovirt-engine-notifier correctly increments the SNMP EngineBoots value after restarts, which enables the ovirt-engine-notifier to work with the SNMPv3 authPriv security level.
Clone Of:
Environment:
Last Closed: 2022-07-14 12:54:31 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 386 0 None open persist event notifier service boots 2022-05-23 13:13:00 UTC
Red Hat Issue Tracker RHV-45559 0 None None None 2022-04-06 18:30:57 UTC
Red Hat Product Errata RHSA-2022:5555 0 None None None 2022-07-14 12:55:15 UTC

Description Sam Wachira 2022-04-06 16:32:15 UTC
SNMPv3 traps sent by RHV-M always sets msgAuthoritative EngineBoots' to '0' value.
The SNMP manager monitoring these values does not accept any traps after restarting the ovirt-engine-notifier service.

Running a packet capture of the SNMP traffic originating from RHV-M confirms that 'msgAuthoritative EngineBoots' is always set to '0'.
~~~
Simple Network Management Protocol
	msgVersion: snmpv3 ( 3 )
	msgGlobalData
	msgAuthoritativeEngineID: 
	msgAuthoritative EngineBoots: 0
	msgAuthoritativeEngineTime: 750
	msgUserName: snmpuser
	msgAuthenticationParameters: d044e9583ec6895c03563c1
	msgPrivacyParameters: c52182329a8194a
	msgData: encryptedPDU ( 1 )
~~~


SNMP configuration in RHV-M.
~~~
$ cat /etc/ovirt-engine/notifier/notifier.conf.d/20-snmp.conf
FILTER="include:*(snmp:) ${FILTER}"
FILTER="include:*:WARNING(snmp:) ${FILTER}"
FILTER="include:*:ERROR(snmp:) ${FILTER}"
FILTER="include:*:ALERT(snmp:) ${FILTER}"
SNMP_MANAGERS="x.x.x.x"
SNMP_COMMUNITY=public
SNMP_VERSION=3
SNMP_ENGINE_ID="80:00:00:00:04:01:03:02"
SNMP_USERNAME=snmpuser
SNMP_AUTH_PROTOCOL=SHA
SNMP_AUTH_PASSPHRASE=securepassword
SNMP_PRIVACY_PROTOCOL=AES128
SNMP_PRIVACY_PASSPHRASE=verysecurepassword
SNMP_SECURITY_LEVEL=3
~~~


Version-Release number of selected component (if applicable):
rhvm-4.4.10.6-0.1.el8ev.noarch
snmp4j-3.6.4-0.1.el8ev.noarch


How reproducible:
Reproduced by customer.


Steps to Reproduce:
1. Configure RHV-M to send SNMPv3 traps.
(https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/administration_guide/index#Configuring_the_Red_Hat_Enterprise_Virtualization_Manager_to_Send_SNMP_Traps)
2. Restart the ovirt-engine-notifier service
# systemctl start ovirt-engine-notifier.service
3. Run packet capture on traffic originating from RHV-M and analyse SNMPv3 packets.

Actual results:
- The generated SNMP trap always sets 'msgAuthoritativeEngineBoots: 0'

Expected results:
- The generated SNMP trap should increase the value of 'msgAuthoritativeEngineBoots' with each engine restart, but it does not.

Additional info:

Comment 16 Guilherme Santos 2022-06-23 14:53:55 UTC
Verified on: ovirt-engine-4.5.1.2-0.11.el8ev.noarch

Followed steps on the description and noticed that msgAuthoritativeEngineBoots properly increments as expected

Comment 20 errata-xmlrpc 2022-07-14 12:54:31 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: RHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and 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-2022:5555

Comment 21 Red Hat Bugzilla 2023-09-15 01:53:42 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days


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