Bug 1792230

Summary: missing settings to configure the mgr dashboard module binding port/address
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Giulio Fidente <gfidente>
Component: Ceph-AnsibleAssignee: Francesco Pantano <fpantano>
Status: CLOSED ERRATA QA Contact: Nathan Weinberg <nweinber>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0CC: aschoen, ceph-eng-bugs, dhill, dsavinea, epuertat, gabrioux, gmeno, nthomas, nweinber, pasik, tserlin, ykaul
Target Milestone: rcKeywords: Triaged
Target Release: 4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-4.0.16-1.el8, ceph-ansible-4.0.16-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-19 17:32:06 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:
Bug Depends On:    
Bug Blocks: 1760354, 1792233, 1806495    

Description Giulio Fidente 2020-01-17 10:38:56 UTC
when colocating the mgr dashboard module with other services it is essential to be able to configure the binding ip address because 8443 is frequently in use by ohter services

this is supported in the dashboard module but can't be controlled via ceph-ansible [1]

for deployments where the mgr module is deployed together with openstack, 8443 will be used by haproxy to forward requests correctly to the internal services

1. https://docs.ceph.com/docs/master/mgr/dashboard/#host-name-and-port

Comment 1 Giulio Fidente 2020-01-17 11:09:37 UTC
note that it's necessary to use a different server_addr per instance, hence the best approach is probably to use a key in this format:

  `advanced mgr/dashboard/##hostname##/server_addr`

Comment 2 Ernesto Puerta 2020-01-17 11:43:33 UTC
@Giulio: currently, dashboard supports also localized `server_addr` (that is, cluster-wide setting or per-manager value). In fact, a localized setting (if existing) overrides the cluster-wide one. No need of code changes in dashboard.

Comment 3 Giulio Fidente 2020-01-17 13:48:50 UTC
(In reply to Ernesto Puerta from comment #2)
> @Giulio: currently, dashboard supports also localized `server_addr` (that
> is, cluster-wide setting or per-manager value). In fact, a localized setting
> (if existing) overrides the cluster-wide one. No need of code changes in
> dashboard.

yeah the BZ is for ceph-ansible, to implement support for what is described in comment #1

Comment 16 errata-xmlrpc 2020-05-19 17:32:06 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, 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-2020:2231