Project

General

Profile

Actions

Bug #38428

closed

mgr/dashboard: dashboard giving 401 unauthorized

Added by Lokesh Pashine over 5 years ago. Updated about 3 years ago.

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

0%

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

Description

Hello Team,

I have set up the ceph dashboard and its allowing me to login but immediately after login it log me out.

From logs I can see below
2019-02-22 13:44:33.919 7fbecd4fe700 0 mgr[dashboard] frontend error (https://192.168.1.142:8443/#/login): Http failure response for https://192.168.1.142:8443/api/summary: 401 Unauthorized

cephaio:/var/log/ceph # netstat -an| grep 8443
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN

cephaio:/usr/lib64/ceph/mgr/dashboard # radosgw-admin user info --uid ceph-admin {
"user_id": "ceph-admin",
"display_name": "ceph admin",
"email": "",
"suspended": 0,
"max_buckets": 1000,
"subusers": [],
"keys": [ {
"user": "ceph-admin",
"access_key": "ANXQI47HUI7T00G1UQFC",
"secret_key": "EShhS8EcAFeEvBXDabzUV9JCaAJjvB93CsQD9Nqg"
}
],
"swift_keys": [],
"caps": [],
"op_mask": "read, write, delete",
"system": "true",
"default_placement": "",
"default_storage_class": "",
"placement_tags": [],
"bucket_quota": {
"enabled": false,
"check_on_raw": false,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
},
"user_quota": {
"enabled": false,
"check_on_raw": false,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
},
"temp_url_keys": [],
"type": "rgw",
"mfa_ids": []
}

cephaio:/usr/lib64/ceph/mgr/dashboard # sudo ceph dashboard get-rgw-api-user-id
ceph-admin

cephaio:/usr/lib64/ceph/mgr/dashboard # ceph dashboard get-rgw-api-access-key
ANXQI47HUI7T00G1UQFC

cephaio:/usr/lib64/ceph/mgr/dashboard # ceph dashboard get-rgw-api-secret-key
EShhS8EcAFeEvBXDabzUV9JCaAJjvB93CsQD9Nqg

cephaio:/usr/lib64/ceph/mgr/dashboard # ceph dashboard get-rgw-api-ssl-verify
False

cephaio:/var/log/ceph # ceph dashboard ac-user-show ceph-admin {"username": "ceph-admin", "password": "$2b$12$62HYc/RwUN4T/Sdp.z5SgexAlJghnRvAS8htab9aXO.pGsgh4CTNi", "roles": ["administrator"], "name": null, "email": null, "lastUpdate": 1550721565}
cephaio:/var/log/ceph #

cephaio:/var/log/ceph # ceph dashboard get-rgw-api-access-key
ANXQI47HUI7T00G1UQFC

cephaio:/var/log/ceph # ceph dashboard get-rgw-api-secret-key
EShhS8EcAFeEvBXDabzUV9JCaAJjvB93CsQD9Nqg

cephaio:/var/log/ceph # ceph dashboard get-rgw-api-host

cephaio

cephaio:/var/log/ceph # ceph dashboard get-rgw-api-port
8003

cephaio:/var/log/ceph # ceph mgr services {
"dashboard": "https://0.0.0.0:8443/",
"restful": "https://cephaio:8003/"
}

cephaio:/var/log/ceph # ceph --version
ceph version 14.0.1-3975-g14d8f3cab5 (14d8f3cab592c4b3ac85000ccd8fc9fe03398428) nautilus (dev)
cephaio:/var/log/ceph #

cluster:
id: bfdfbe86-3ee9-417e-a3bd-0818694a18d0
health: HEALTH_WARN
application not enabled on 2 pool(s)
services:
mon: 1 daemons, quorum cephaio (age 2h)
mgr: cephaio(active, since 2m)
osd: 1 osds: 1 up (since 2h), 1 in (since 27h)
rgw: 1 daemon active
data:
pools: 6 pools, 34 pgs
objects: 191 objects, 5.2 KiB
usage: 45 MiB used, 979 MiB / 1 GiB avail
pgs: 34 active+clean

cephaio:/var/log/ceph #


Files

Auswahl_002.png (66 KB) Auswahl_002.png Volker Theile, 02/28/2019 11:27 AM
ceph-dashboard-response.jpg (214 KB) ceph-dashboard-response.jpg Lokesh Pashine, 02/28/2019 03:43 PM
screenshot.png (15.1 KB) screenshot.png Darrell Enns, 05/09/2019 10:02 PM

Related issues 4 (0 open4 closed)

Related to Dashboard - Bug #39300: mgr/dashboard: Can't login with a bigger time difference between user and server or make auth token work with UTC times onlyResolvedRicardo Dias

Actions
Related to Dashboard - Bug #40051: mgr/dashboard: Dashboard login page broken; summary returns 401Duplicate

Actions
Has duplicate Dashboard - Bug #38600: mgr/dashboard: dashboard giving 401 unauthorized.Duplicate

Actions
Copied to Dashboard - Backport #38871: nautilus: mgr/dashboard: dashboard giving 401 unauthorizedResolvedLenz GrimmerActions
Actions

Also available in: Atom PDF