Bug #39252
closedmgr/dashboard: RGW port autodetection does not support "Beast" RGW frontend
0%
Description
The documentation at http://docs.ceph.com/docs/master/mgr/dashboard/#enabling-the-object-gateway-management-frontend currently makes an unequivocal statement:
"This is all you have to do to get the Object Gateway management functionality working. The host and port of the Object Gateway are determined automatically."
However, with the advent of Beast this is no longer the case.
In the "RGW always uses civetweb" paradigm, the RGW port could be determined automatically using a regex that matches port={}
, like so:
match = re.search(r'port=(.*:)?(\d+)(s)?', config)
But nowadays, assuming the dashboard should also support Beast, that regex is broken because Beast has different semantics for specifying the RGW endpoint. For example, the relevant line in ceph.conf
might look like this:
rgw frontends = "beast endpoint=[::]:80"
I'm not sure what the "correct" regex should be. Should it support both Civetweb and Beast, or just one or the other?
Should it support both IPv4 and IPv6?
(My thanks to Ricardo Marques for helping gather the above information.)