Completely missed the "set-rgw-api-user-id" as its not mentioned in the
guide for adding the users.That helped, as I can now access the "clients"
list
However, now get 500 when accessing anything but the "clients" page.
Suspect I need something, but documentation is pretty much non-existing.
When accessing users I get:
2021-02-12 13:10:07.273 7fb91c99f700 0 mgr[dashboard] RGW REST API failed
GET req status: 4002021-02-12 13:10:07.273 7fb91c99f700 0 mgr[dashboard]
dashboard_exception_handlerTraceback (most recent call last): File
"/usr/share/ceph/mgr/dashboard/services/exception.py", line 88, in
dashboard_exception_handler return handler(*args, **kwargs) File
"/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 60, in
__call__ return self.callable(*self.args, **self.kwargs) File
"/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 663, in
inner ret = func(*args, **kwargs) File
"/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 856, in
wrapper return func(*vpath, **params) File
"/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 214, in list
result = self.proxy('GET', 'user?list', params) File
"/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 104, in proxy
raise DashboardException(e, http_status_code=500,
component='rgw')DashboardException: RGW REST API failed request with status
code
400'{"Code":"InvalidArgument","RequestId":"tx000000000000000010a2c-006026701f-6ba0ba-default","HostId":"6ba0ba-default-default"}'
If I access the "buckets" I also get a 500:
2021-02-12 13:12:00.594 7fb91c99f700 0 mgr[dashboard]
[12/Feb/2021:13:12:00] HTTPTraceback (most recent call last): File
"/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in
respond response.body = self.handler() File
"/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 220, in
__call__ self.body = self.oldhandler(*args, **kwargs) File
"/usr/lib/python2.7/dist-packages/cherrypy/_cptools.py", line 237, in wrap
return self.newhandler(innerfunc, *args, **kwargs) File
"/usr/share/ceph/mgr/dashboard/services/exception.py", line 88, in
dashboard_exception_handler return handler(*args, **kwargs) File
"/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 60, in
__call__ return self.callable(*self.args, **self.kwargs) File
"/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 663, in
inner ret = func(*args, **kwargs) File
"/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 856, in
wrapper return func(*vpath, **params) File
"/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 150, in list
result = [self._append_bid(bucket) for bucket in result] File
"/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 122, in
_append_bid if bucket['tenant'] else bucket['bucket']KeyError:
'tenant'2021-02-12 13:12:00.598 7fb91c99f700 0 mgr[dashboard] [::ffff:
10.192.200.117:38922] [GET] [500] [1.272s] [user] [513B]
/api/rgw/bucket2021-02-12 13:12:00.598 7fb91c99f700 0 mgr[dashboard]
['{"status": "500 Internal Server Error", "detail":
"The server encountered
an unexpected condition which prevented it from fulfilling the request.",
"request_id": "00c28e23-7215-4458-b3a1-d5f6c8a23c58"}
$ radosgw-admin realm list
{ "default_info": "", "realms": []}
$ radosgw-admin zonegroup list
{ "default_info": "2e6dbd49-5c58-43fd-8721-c8a9e88ebbad",
"zonegroups": [ "default" ]}
$ radosgw-admin zone list
{ "default_info": "7e36e3ef-3858-4775-b74a-7a2ef9e48484",
"zones": [
"default" ]}
On Fri, Feb 12, 2021 at 12:13 AM Alfonso Martinez Hidalgo <
almartin(a)redhat.com> wrote:
Hi Troels,
1) It seems you need to set up the user id like this:
ceph dashboard set-rgw-api-user-id <user_id>
More info here:
https://docs.ceph.com/en/nautilus/mgr/dashboard/#enabling-the-object-gatewa…
2) Have you set up multisite configuration (realms/zonegroups/zones) ?
Please paste the output of:
radosgw-admin realm list
radosgw-admin zonegroup list
radosgw-admin zone list
Regards,
--
Alfonso Martínez
Senior Software Engineer, Ceph Storage
Red Hat <https://www.redhat.com>
<https://red.ht/sig>
_______________________________________________
ceph-users mailing list -- ceph-users(a)ceph.io
To unsubscribe send an email to ceph-users-leave(a)ceph.io
--
Med venlig hilsen
*Troels Hansen*
Senior Linux Konsulent
Tlf.: 22 43 71 57
tha(a)miracle.dk
www.miracle.dk