Project

General

Profile

Actions

Bug #49655

closed

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

Added by Alfonso Martínez about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
Component - 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 3 (0 open3 closed)

Related to Dashboard - Feature #47375: mgr/dashboard: support multiple RGW zone configurationResolvedAlfonso Martínez

Actions
Related to Orchestrator - Bug #49916: cephadm/test_dashboard_e2e.sh: api/rgw/daemon: 500 Internal Server ErrorResolved

Actions
Copied to Dashboard - Backport #49941: pacific: mgr/dashboard: error notification shown when no rgw daemons running.ResolvedAlfonso MartínezActions
Actions #1

Updated by Alfonso Martínez about 3 years ago

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

Updated by Alfonso Martínez about 3 years ago

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

Updated by Sage Weil about 3 years ago

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

Updated by Ernesto Puerta about 3 years ago

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

Updated by Backport Bot about 3 years ago

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

Updated by Ernesto Puerta about 3 years ago

  • Status changed from Pending Backport to Resolved
Actions #7

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 143 to Component - RGW
Actions

Also available in: Atom PDF