Bug #70744
closedmgr/dashboard: don't use rgw_dns_name to resolve rgw hosts in dashboard
0%
Description
When I enable the rgw_dns_name config option, and I set for example:
client.rgw.default advanced rgw_dns_name s3.cephlabs.com
The RGW dashboard section times out:
Traceback (most recent call last):
File "/usr/share/ceph/mgr/dashboard/rest_client.py", line 398, in do_request
resp = self.send_request(method, url, request_headers, params, data)
File "/usr/share/ceph/mgr/dashboard/rest_client.py", line 444, in send_request
resp = self.session.get(
File "/lib/python3.9/site-packages/requests/sessions.py", line 557, in get
return self.request('GET', url, **kwargs)
File "/usr/share/ceph/mgr/dashboard/rest_client.py", line 47, in request
return super(TimeoutRequestsSession, self).request(*args, **kwargs)
File "/lib/python3.9/site-packages/requests/sessions.py", line 544, in request
resp = self.send(prep, **send_kwargs)
File "/lib/python3.9/site-packages/requests/sessions.py", line 657, in send
r = adapter.send(request, **kwargs)
File "/lib/python3.9/site-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='s3.cephlabs.com', port=8000): Max retries exceeded with url: /admin/metadata/user?myself (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f99df22fe20>, 'Connection to s3.cephlabs.com timed out. (connect timeout=45)'))
It's related to the introduction of a change where rgw_dns_name if set is used as the address for the gateway:
https://github.com/ceph/ceph/blob/main/src/pybind/mgr/dashboard/services/rgw_client.py#L97
The rgw_dns_name parameter can be a list of domains to which you want the RGW to respond for virtual bucket access and does not represent the IP of an RGW; it would normally be the IP of a load balancer that may not be accessible from the Dashboard.
Updated by Aashish Sharma 12 months ago
- Assignee changed from Nizamudeen A to Aashish Sharma
- Backport set to squid,reef
- Pull request ID set to 62596
Updated by Aashish Sharma 12 months ago
- Status changed from Resolved to Pending Backport
Updated by Upkeep Bot 12 months ago
- Copied to Backport #70809: squid: mgr/dashboard: don't use rgw_dns_name to resolve rgw hosts in dashboard added
Updated by Upkeep Bot 12 months ago
- Copied to Backport #70810: reef: mgr/dashboard: don't use rgw_dns_name to resolve rgw hosts in dashboard added
Updated by Nizamudeen A 12 months ago
- Status changed from Pending Backport to Resolved
- Backport deleted (
squid,reef)
rejecting the backports as these shouldn't hit stable releases
Updated by Upkeep Bot 9 months ago
- Merge Commit set to 9aacbd1de3cb69f178fd13fcf4190465b1d29713
- Fixed In set to v20.0.0-1186-g9aacbd1de3c
- Upkeep Timestamp set to 2025-07-09T18:11:53+00:00
Updated by Upkeep Bot 8 months ago
- Fixed In changed from v20.0.0-1186-g9aacbd1de3c to v20.0.0-1186-g9aacbd1de3
- Upkeep Timestamp changed from 2025-07-09T18:11:53+00:00 to 2025-07-14T18:12:27+00:00
Updated by Afreen Misbah 5 months ago
- Assignee changed from Aashish Sharma to Nizamudeen A
Updated by Upkeep Bot 5 months ago
- Released In set to v20.2.0~648
- Upkeep Timestamp changed from 2025-07-14T18:12:27+00:00 to 2025-11-01T01:28:49+00:00