Bug 2164853 - SNMP gateway daemon incorrectly set in cephadm binary
Summary: SNMP gateway daemon incorrectly set in cephadm binary
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 5.3
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 5.3z1
Assignee: Adam King
QA Contact: Mohit Bisht
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-26 16:50 UTC by Adam King
Modified: 2023-02-28 10:07 UTC (History)
4 users (show)

Fixed In Version: ceph-16.2.10-121.el8cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-28 10:06:27 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-6035 0 None None None 2023-01-26 16:53:08 UTC
Red Hat Product Errata RHSA-2023:0980 0 None None None 2023-02-28 10:07:21 UTC

Description Adam King 2023-01-26 16:50:11 UTC
In the cephadm binary portion that lists the default images you can see

DEFAULT_SNMP_GATEWAY_IMAGE = 'registry.redhat.io/rhceph/snmp-notifier-rhel8:latest'
DEFAULT_REGISTRY = 'registry.redhat.io'   # normalize unqualified digests to this
DEFAULT_SNMP_GATEWAY_IMAGE = 'docker.io/maxwo/snmp-notifier:v1.2.1'

so while the image is being set correctly at first, it is being reset back to the docker image. This should have any real impact unless users try to manually deploy SNMP gateway through the cephadm tool without using the orchestrator mgr module (which is unlikely) but we should remove the extra, incorrect line.

I don't think we need to do any actual SNMP testing to verify this is fixed, just check the cephadm binary code doesn't include the line setting the image to the docker one. As mentioned, this only has an effect in unconventional deployment scenarios. This issue does not exist in the cephadm mgr module, only the cephadm binary.

Comment 1 Scott Ostapovicz 2023-02-06 17:21:48 UTC
 Missed the 5.3 z1 window.  Moving to 6.1.  Please advise if this is a problem.

Comment 8 errata-xmlrpc 2023-02-28 10:06:27 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 (Important: Red Hat Ceph Storage 5.3 Bug fix and security 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:0980


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