Bug 2274719 - Add support for 'only_bind_port_on_networks' spec parameter for alertmanager
Summary: Add support for 'only_bind_port_on_networks' spec parameter for alertmanager
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 8.1
Assignee: Shweta Bhosale
QA Contact: Vinayak Papnoi
URL:
Whiteboard:
Depends On:
Blocks: 2356569 2356571 2356570
TreeView+ depends on / blocked
 
Reported: 2024-04-12 12:23 UTC by Manoj Katari
Modified: 2025-06-26 12:12 UTC (History)
10 users (show)

Fixed In Version: ceph-19.2.1-33.el9cp
Doc Type: Enhancement
Doc Text:
Alertmanager now binds to an IP within a specific network on a host, rather that always binding to 0.0.0.0 With this enhancement, using a alertmanager specification file that includes both the networks' section with the network that alertmanager binds to an IP on, and `only_bind_port_on_networks: true` included in the "spec" section of the specification, Cephadm configures the alertmanager daemon to bind to an IP within that network rather than 0.0.0.0. This enables users to use the same port that alertmanager uses for another service but on a different IP on the host. If it is a specification update that does not cause them all to be moved, `ceph orch redeploy alertmanager` can be run to pick up the changes to the settings. alertmanager specification file: ---- service_type: alertmanager service_name: alertmanager placement: count: 1 networks: 192.168.122.0/24 spec: only_bind_port_on_networks: true ----
Clone Of:
: 2356569 (view as bug list)
Environment:
Last Closed: 2025-06-26 12:12:19 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-8802 0 None None None 2024-04-12 12:24:02 UTC
Red Hat Knowledge Base (Solution) 7071082 0 None None None 2025-04-12 23:47:25 UTC
Red Hat Product Errata RHSA-2025:9775 0 None None None 2025-06-26 12:12:37 UTC

Description Manoj Katari 2024-04-12 12:23:37 UTC
currently the Fix given for BZ 2233659 adds the new spec parameter  'only_bind_port_on_networks' only for grafana and prometheus but not for alertmanager

[ceph: root@controller-0 /]# ceph orch apply -i /mnt/alertmanager
Error EINVAL: ServiceSpec: __init__() got an unexpected keyword argument 'only_bind_port_on_networks'
[ceph: root@controller-0 /]# 


parameter should also be added to alertmanager.

Comment 9 errata-xmlrpc 2025-06-26 12:12:19 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 8.1 security, bug fix, and enhancement updates), 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-2025:9775


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