Project

General

Profile

Actions

Bug #39252

closed

mgr/dashboard: RGW port autodetection does not support "Beast" RGW frontend

Added by Nathan Cutler about 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Component - RGW
Target version:
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
Yes
Severity:
2 - major
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.)


Related issues 1 (0 open1 closed)

Copied to Dashboard - Backport #44203: nautilus: mgr/dashboard: RGW port autodetection does not support "Beast" RGW frontendResolvedVolker TheileActions
Actions

Also available in: Atom PDF