Project

General

Profile

Actions

Bug #49916

closed

cephadm/test_dashboard_e2e.sh: api/rgw/daemon: 500 Internal Server Error

Added by Kefu Chai about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

orchestrator/01-hosts.e2e-spec.ts/Hosts page -- should not add an exsiting host -- before each hook

in teuthology.log

2021-03-22T03:22:44.833 INFO:tasks.workunit.client.0.smithi014.stdout:  Running:  orchestrator/01-hosts.e2e-spec.ts                                               (1 of 1)
2021-03-22T03:22:46.229 INFO:journalctl@ceph.mon.a.smithi014.stdout:Mar 22 03:22:45 smithi014 conmon[30525]: cluster 2021-03-22T03:22:44.207879+0000 mgr.a (mgr.14144) 270 : cluster [DBG] pgmap v256: 0 pgs: ; 0 B data, 15 MiB used, 268 GiB / 268 GiB avail
2021-03-22T03:22:47.528 INFO:tasks.workunit.client.0.smithi014.stderr:Couldn't determine Mocha version
2021-03-22T03:22:47.532 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:47.538 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:47.545 INFO:tasks.workunit.client.0.smithi014.stdout:  Hosts page
2021-03-22T03:22:47.546 INFO:tasks.workunit.client.0.smithi014.stdout:    when Orchestrator is available
2021-03-22T03:22:47.969 INFO:journalctl@ceph.mon.a.smithi014.stdout:Mar 22 03:22:47 smithi014 conmon[30525]: cluster 2021-03-22T03:22:46.208123
2021-03-22T03:22:47.969 INFO:journalctl@ceph.mon.a.smithi014.stdout:Mar 22 03:22:47 smithi014 conmon[30525]: +0000 mgr.a (mgr.14144) 271 : cluster [DBG] pgmap v257: 0 pgs: ; 0 B data, 15 MiB used, 268 GiB / 268 GiB avail
2021-03-22T03:22:47.969 INFO:journalctl@ceph.mon.a.smithi014.stdout:Mar 22 03:22:47 smithi014 conmon[30525]: audit 2021-03-22T03:22:47.270114+0000 mon.a (mon.0) 268 : audit [INF] from='mgr.14144 172.21.15.14:0/1703195866' entity='mgr.a'
2021-03-22T03:22:47.970 INFO:journalctl@ceph.mon.a.smithi014.stdout:Mar 22 03:22:47 smithi014 conmon[30525]: audit 2021-03-22T03:22:47.876843+0000 mon.a (mon.0) 269 : audit [INF] from='mgr.14144 172.21.15.14:0/1703195866' entity='mgr.a'
2021-03-22T03:22:47.970 INFO:journalctl@ceph.mon.a.smithi014.stdout:Mar 22 03:22:47 smithi014 conmon[30525]: audit 2021-03-22T03:22:47.878996+0000 mon.a (mon.0) 270 : audit [INF] from='mgr.14144 172.21.15.14:0/1703195866' entity='mgr.a'
2021-03-22T03:22:47.970 INFO:journalctl@ceph.mon.a.smithi014.stdout:Mar 22 03:22:47 smithi014 conmon[30525]: audit 2021-03-22T03:22:47.888209+0000 mon.a (mon.0) 271 : audit [INF] from='mgr.14144 172.21.15.14:0/1703195866' entity='mgr.a'
2021-03-22T03:22:47.970 INFO:journalctl@ceph.mon.a.smithi014.stdout:Mar 22 03:22:47 smithi014 conmon[30525]: audit 2021-03-22T03:22:47.890167+0000 mon.a (mon.0) 272 : audit [INF] from='mgr.14144 172.21.15.14:0/1703195866' entity='mgr.a'
2021-03-22T03:22:48.813 INFO:tasks.workunit.client.0.smithi014.stdout:      1) "before each" hook for "should not add an exsiting host" 
2021-03-22T03:22:48.878 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:48.879 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:48.879 INFO:tasks.workunit.client.0.smithi014.stdout:  0 passing (1s)
2021-03-22T03:22:48.879 INFO:tasks.workunit.client.0.smithi014.stdout:  1 failing
2021-03-22T03:22:48.879 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:48.879 INFO:tasks.workunit.client.0.smithi014.stdout:  1) Hosts page
2021-03-22T03:22:48.879 INFO:tasks.workunit.client.0.smithi014.stdout:       when Orchestrator is available
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:         "before each" hook for "should not add an exsiting host":
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:     The following error originated from your application code, not from Cypress.
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:  > Http failure response for https://smithi014.front.sepia.ceph.com:8443/api/rgw/daemon: 500 Internal Server Error
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:When Cypress detects uncaught errors originating from your application it will automatically fail the current test.
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event.
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:https://on.cypress.io/uncaught-exception-from-application
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:
2021-03-22T03:22:48.880 INFO:tasks.workunit.client.0.smithi014.stdout:Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `Hosts page`

in ceph-mgr.a.log.gz

2021-03-22T03:22:48.392+0000 7fd98a73c700  0 [dashboard DEBUG request] [::ffff:172.21.15.14:48952] [GET] [None] /api/rgw/daemon
2021-03-22T03:22:48.392+0000 7fd98a73c700 20 mgr get_config  key: mgr/dashboard/AUDIT_API_ENABLED
2021-03-22T03:22:48.392+0000 7fd98a73c700 10 mgr get_typed_config  AUDIT_API_ENABLED not found
2021-03-22T03:22:48.392+0000 7fd98a73c700  0 [dashboard DEBUG auth] token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjZXBoLWRhc2hib2FyZCIsImp0aSI6IjRjMjZkZWNkLWU5ZTEtNGNhYS04Y2RkLTYyYWIyN2U5MmVlZCIsImV4cCI6MTYxNjQxMjE2NywiaWF0IjoxNjE2MzgzMzY3LCJ1c2VybmFtZSI6ImFkbWlu
In0.M0m9nFrV9fkdeOXU5xrcGyRJ9tIM-Cfj59Jjglg66DM
2021-03-22T03:22:48.392+0000 7fd98a73c700  4 mgr get_store get_store key: mgr/dashboard/jwt_token_block_list
2021-03-22T03:22:48.392+0000 7fd98a73c700  4 ceph_store_get jwt_token_block_list not found
2021-03-22T03:22:48.392+0000 7fd98a73c700  0 [dashboard DEBUG auth] checking authorization...
2021-03-22T03:22:48.392+0000 7fd98a73c700  0 [dashboard DEBUG auth] checking '['read']' access to 'rgw' scope
2021-03-22T03:22:48.392+0000 7fd98a73c700 20 mgr get_config  key: mgr/dashboard/RGW_API_ACCESS_KEY
2021-03-22T03:22:48.392+0000 7fd98a73c700 10 mgr get_typed_config  RGW_API_ACCESS_KEY not found
2021-03-22T03:22:48.393+0000 7fd98a73c700  0 [dashboard WARNING rgw_client] No credentials found, please consult the documentation about how to enable RGW for the dashboard.
2021-03-22T03:22:48.395+0000 7fd98a73c700  0 [dashboard ERROR exception] Internal Server Error
Traceback (most recent call last):
  File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 46, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 694, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 907, in wrapper
    return func(*vpath, **params)
  File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 92, in list
    instance = RgwClient.admin_instance()
  File "/usr/share/ceph/mgr/dashboard/services/rgw_client.py", line 322, in admin_instance
    return RgwClient.instance(daemon_name=daemon_name)
  File "/usr/share/ceph/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.

my batch does not contain any rgw, cephadm or dashboard related change.

/a/kchai-2021-03-22_02:52:16-rados-wip-kefu2-testing-2021-03-21-2353-distro-basic-smithi/5986452


Related issues 1 (0 open1 closed)

Related to Dashboard - Bug #49655: mgr/dashboard: error notification shown when no rgw daemons running.ResolvedAlfonso Martínez

Actions
Actions #1

Updated by Nizamudeen A about 3 years ago

I think this fix from Alfonso will take care of that error: https://github.com/ceph/ceph/pull/40005

Actions #2

Updated by Sage Weil about 3 years ago

  • Related to Bug #49655: mgr/dashboard: error notification shown when no rgw daemons running. added
Actions #3

Updated by Sage Weil about 3 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF