Project

General

Profile

Bug #49655

mgr/dashboard: error notification shown when no rgw daemons running.

Added by Alfonso Martínez about 1 month ago. Updated 6 days ago.

Status:
Resolved
Priority:
Normal
Category:
dashboard/rgw
Target version:
% Done:

0%

Source:
Tags:
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

After merging this: https://tracker.ceph.com/issues/47375

We access to Landing Page when no RGW daemon configured and we get
error notification & see this in logs:

2021-03-08T09:27:07.185+0000 7f363e74c700  0 [dashboard DEBUG request] [::ffff:172.20.0.1:32968] [GET] [None] /api/rgw/daemon
2021-03-08T09:27:07.185+0000 7f363e74c700  0 [dashboard DEBUG auth] token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjZXBoLWRhc2hib2FyZCIsImp0aSI6IjQzMzc1NmJmLTk1MzktNDZlOS1hZTEwLTYzMDY1MzkyNGE2MiIsImV4cCI6MTYxNTIyNDQyNywiaWF0IjoxNjE1MTk1NjI3LCJ1c2VybmFtZSI6ImFkbWluIn0.4-r_1be-wIsqdG54vFoD6lZTRq5qBjF7d_DK6tVYEUM
2021-03-08T09:27:07.185+0000 7f363e74c700  0 [dashboard DEBUG auth] checking authorization...
2021-03-08T09:27:07.185+0000 7f363e74c700  0 [dashboard DEBUG auth] checking '['read']' access to 'rgw' scope
2021-03-08T09:27:07.186+0000 7f363e74c700  0 [dashboard WARNING rgw_client] No credentials found, please consult the documentation about how to enable RGW for the dashboard.
2021-03-08T09:27:07.189+0000 7f363e74c700  0 [dashboard ERROR exception] Internal Server Error
Traceback (most recent call last):
  File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 46, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 694, in inner
    ret = func(*args, **kwargs)
  File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 907, in wrapper
    return func(*vpath, **params)
  File "/ceph/src/pybind/mgr/dashboard/controllers/rgw.py", line 92, in list
    instance = RgwClient.admin_instance()
  File "/ceph/src/pybind/mgr/dashboard/services/rgw_client.py", line 322, in admin_instance
    return RgwClient.instance(daemon_name=daemon_name)
  File "/ceph/src/pybind/mgr/dashboard/services/rgw_client.py", line 269, in instance
    raise NoCredentialsException()
dashboard.services.rgw_client.NoCredentialsException: No RGW credentials found, please consult the documentation on how to enable RGW for the dashboard.


Related issues

Related to Dashboard - Feature #47375: mgr/dashboard: support multiple RGW zone configuration Resolved
Related to Orchestrator - Bug #49916: cephadm/test_dashboard_e2e.sh: api/rgw/daemon: 500 Internal Server Error Resolved
Copied to mgr - Backport #49941: pacific: mgr/dashboard: error notification shown when no rgw daemons running. Resolved

History

#1 Updated by Alfonso Martínez about 1 month ago

  • Related to Feature #47375: mgr/dashboard: support multiple RGW zone configuration added

#2 Updated by Alfonso Martínez about 1 month ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 40005

#3 Updated by Sage Weil 30 days ago

  • Related to Bug #49916: cephadm/test_dashboard_e2e.sh: api/rgw/daemon: 500 Internal Server Error added

#4 Updated by Ernesto Puerta 29 days ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to pacific

#5 Updated by Backport Bot 29 days ago

  • Copied to Backport #49941: pacific: mgr/dashboard: error notification shown when no rgw daemons running. added

#6 Updated by Ernesto Puerta 28 days ago

  • Status changed from Pending Backport to Resolved

#7 Updated by Ernesto Puerta 6 days ago

  • Project changed from mgr to Dashboard
  • Category changed from dashboard/rgw to dashboard/rgw

Also available in: Atom PDF