Re: rgw gateways query via /api/rgw/daemon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Seems like need to change in this file: /usr/share/ceph/mgr/dashboard/controllers/rgw.py
This line: 'port': int(metadata['frontend_config#0'].split('port=')[1])
To be like this: 'port': int(metadata['frontend_config#0'].split('port=')[-1].split(':')[-1])

MGR not properly parse the gateway names.

________________________________
From: Szabo, Istvan (Agoda) <Istvan.Szabo@xxxxxxxxx>
Sent: Friday, February 21, 2025 10:08 AM
To: Ceph Users <ceph-users@xxxxxxx>
Subject:  rgw gateways query via /api/rgw/daemon

Hi,

I'd like to query the gateways via the rgw daemon api, but I got this error:

[src/ceph_client.rs:97:9] s.clone() = "{\"status\": \"500 Internal Server Error\", \"detail\": \"The server encountered an unexpected condition which prevented it from fulfilling the request.\", \"request_id\": \"089f9e0a-3bce-4902-91ee-cdf9a4f57839\"} " [src/ceph_client.rs:193:13] l = Err( "expected array value", )

Checked couple of threads pointing to the rgw_dns_name setting in ceph.conf (didn't work) and also in the mailist there is a thread but without solution.
Also went through this: https://docs.ceph.com/en/quincy/mgr/dashboard/#enabling-the-object-gateway-management-frontend but didn't help.

On the dashboard I set our certificates, in the ceph logs I can see these:
2025-02-21T09:51:49.394+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.186, port=8085, ssl=False
2025-02-21T09:51:49.394+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.187, port=8081, ssl=False
2025-02-21T09:51:49.394+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.187, port=8082, ssl=False
2025-02-21T09:51:49.394+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.187, port=8085, ssl=False
2025-02-21T09:51:49.394+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.187, port=8080, ssl=False
2025-02-21T09:51:49.394+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.199.84, port=8080, ssl=False
2025-02-21T09:51:49.398+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.185, port=8082, ssl=False
2025-02-21T09:51:49.398+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.185, port=8085, ssl=False
2025-02-21T09:51:49.398+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.185, port=8081, ssl=False
2025-02-21T09:51:49.398+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.185, port=8080, ssl=False
2025-02-21T09:51:49.398+0700 7f5310dd4640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=x.x.207.185, port=8083, ssl=False
2025-02-21T09:51:49.398+0700 7f5310dd4640  0 [dashboard ERROR exception] Internal Server Error
Traceback (most recent call last):
  File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 47, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 258, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py", line 190, in wrapper
    return func(*vpath, **params)
  File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 108, in list
    'port': int(metadata['frontend_config#0'].split('port=')[1])
IndexError: list index out of range
2025-02-21T09:51:49.398+0700 7f5310dd4640  0 [dashboard ERROR request] [10.105.176.214:49981] [GET] [500] [0.011s] [admin] [513.0B] /api/rgw/daemon
2025-02-21T09:51:49.398+0700 7f5310dd4640  0 [dashboard ERROR request] [b'{"status": "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "request_id": "1739b2ab-5450-4c16-b934-82bf67198cbc"}                                                                                                                                                                                                                                                                                                                        ']
2025-02-21T09:51:49.398+0700 7f5310dd4640  0 [dashboard INFO request] [10.105.176.214:49981] [GET] [500] [0.011s] [admin] [513.0B] /api/rgw/daemon
2025-02-21T09:51:49.474+0700 7f530ddce640  0 [dashboard INFO request] [10.105.176.214:49983] [GET] [200] [0.010s] [admin] [79.0B] /api/feature_toggles
2025-02-21T09:51:49.478+0700 7f530e5cf640  0 [dashboard INFO request] [10.105.176.214:49968] [GET] [200] [0.013s] [admin] [1.6K] /api/summary

My ceph version is: 17.2.7 non containerized.

Thank you

________________________________
This message is confidential and is for the sole use of the intended recipient(s). It may also be privileged or otherwise protected by copyright or other legal rules. If you have received it by mistake please let us know by reply email and delete it from your system. It is prohibited to copy this message or disclose its content to anyone. Any confidentiality or privilege is not waived or lost by any mistaken delivery or unauthorized disclosure of the message. All messages sent to and from Agoda may be monitored to ensure compliance with company policies, to protect the company's interests and to remove potential malware. Electronic messages may be intercepted, amended, lost or deleted, or contain viruses.
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux