Bug #22149
closedCan not set custom port for prometheus exporter
0%
Description
Step to reproduce:
ceph config-key set mgr/prometheus/server_port 8283
systemctl restart ceph-radosgw@rgw.ceph01.service
Expected result:
tcp6 0 0 :::8283 :::* LISTEN 46506/ceph-mgr
Actual result:
Port doesnt liseten
Additional info:
ceph config-key dump
{
...
"mgr/prometheus/server_port": "8283"
}
journalctl log:
ноя 17 15:20:51 ceph01 ceph-mgr46360: File "/usr/lib/ceph/mgr/prometheus/module.py", line 250, in serve
ноя 17 15:20:51 ceph01 ceph-mgr46360: cherrypy.engine.start()
ноя 17 15:20:51 ceph01 ceph-mgr46360: File "/usr/lib/python2.7/dist-packages/cherrypy/process/wspbus.py", line 258, in start
ноя 17 15:20:51 ceph01 ceph-mgr46360: raise e_info
ноя 17 15:20:51 ceph01 ceph-mgr46360: ChannelFailures: TypeError('an integer is required',)
if i change in
/usr/lib/ceph/mgr/prometheus/module.py (line 246):
'server.socket_port': server_port,
to
'server.socket_port': int(server_port),
all works fine
Updated by John Spray over 6 years ago
- Tracker changed from Bug to Backport
- Status changed from New to Resolved
- Release set to luminous
This was fixed in master here: https://github.com/ceph/ceph/pull/17746, and is also on the luminous branch (it didn't have a ticket originally so a bit hard to look up).
The fix will be in v12.2.2
Updated by John Spray over 6 years ago
- Tracker changed from Backport to Bug
- % Done set to 0
- Regression set to No
- Severity set to 3 - minor