Project

General

Profile

Actions

Bug #38600

closed

mgr/dashboard: dashboard giving 401 unauthorized.

Added by 一帆 师 about 5 years ago. Updated about 3 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
General
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

I just install mon mgr and nothing, after i login the dashboard,it immediately log me out.
I tested two env. both the env just installed mon and mgr
the first env has just one network interface 192.168.6.0/24,the cluster network and storage network are on the same network,and it works. i can login it correctly.
the second one has there network interface, the manage network is 192.168.10.0/24,the public network is 192.168.20.0/24,and the cluster network is 192.168.30.0/24.and the dashboard doesn't work as the first env. the dashboard let me login, but it immediately log me out,and throw exception " Status Code: 401 Unauthorized ".
so i guess that, is the bug comes from the dashboard code with deal the multi network interfaces?


Files


Related issues 2 (0 open2 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
Is duplicate of Dashboard - Bug #38428: mgr/dashboard: dashboard giving 401 unauthorizedResolved

Actions
Actions #2

Updated by 一帆 师 about 5 years ago

我创建了两套环境,第一套只有一张网卡。dashboard可以正常登陆。
第二套环境我有一张千兆网卡和两张万兆网卡。public network和cluster network分别在一张万兆网卡上面。第二套环境登陆之后就会很快的弹出来。
两套环境唯一的区别就只有单网卡和多网卡的区别。

Actions #3

Updated by Volker Theile about 5 years ago

  • Is duplicate of Bug #38428: mgr/dashboard: dashboard giving 401 unauthorized added
Actions #4

Updated by 一帆 师 about 5 years ago

一帆 师 wrote:

I just install mon mgr and nothing, after i login the dashboard,it immediately log me out.
I tested two env. both the env just installed mon and mgr
the first env has just one network interface 192.168.6.0/24,the cluster network and storage network are on the same network,and it works. i can login it correctly.
the second one has there network interface, the manage network is 192.168.10.0/24,the public network is 192.168.20.0/24,and the cluster network is 192.168.30.0/24.and the dashboard doesn't work as the first env. the dashboard let me login, but it immediately log me out,and throw exception " Status Code: 401 Unauthorized ".
so i guess that, is the bug comes from the dashboard code with deal the multi network interfaces?

I upgrade the dashboard to 14.1.1,and it is still like this.

Actions #5

Updated by 一帆 师 about 5 years ago

一帆 师 wrote:

一帆 师 wrote:

I just install mon mgr and nothing, after i login the dashboard,it immediately log me out.
I tested two env. both the env just installed mon and mgr
the first env has just one network interface 192.168.6.0/24,the cluster network and storage network are on the same network,and it works. i can login it correctly.
the second one has there network interface, the manage network is 192.168.10.0/24,the public network is 192.168.20.0/24,and the cluster network is 192.168.30.0/24.and the dashboard doesn't work as the first env. the dashboard let me login, but it immediately log me out,and throw exception " Status Code: 401 Unauthorized ".
so i guess that, is the bug comes from the dashboard code with deal the multi network interfaces?

I upgrade the dashboard to 14.1.1,and it is still like this.

and,by the 14.1.0,I can login the dashboard in the one net-interface env.

but after I upgrade 14.1.0 to 14.1.1, both the 3 net-interface env and 1 net-interface env throw the same error.

I can't login any of them now.

Actions #6

Updated by 一帆 师 about 5 years ago

一帆 师 wrote:

一帆 师 wrote:

一帆 师 wrote:

I just install mon mgr and nothing, after i login the dashboard,it immediately log me out.
I tested two env. both the env just installed mon and mgr
the first env has just one network interface 192.168.6.0/24,the cluster network and storage network are on the same network,and it works. i can login it correctly.
the second one has there network interface, the manage network is 192.168.10.0/24,the public network is 192.168.20.0/24,and the cluster network is 192.168.30.0/24.and the dashboard doesn't work as the first env. the dashboard let me login, but it immediately log me out,and throw exception " Status Code: 401 Unauthorized ".
so i guess that, is the bug comes from the dashboard code with deal the multi network interfaces?

I upgrade the dashboard to 14.1.1,and it is still like this.

and,by the 14.1.0,I can login the dashboard in the one net-interface env.

but after I upgrade 14.1.0 to 14.1.1, both the 3 net-interface env and 1 net-interface env throw the same error.

I can't login any of them now.

I reinstalled the 1 net-interface env and it can be login now.

but the 3 net-interface env still doesn't work

Actions #7

Updated by 一帆 师 about 5 years ago

I found where the bug come from now.

it is come from the code to deal with the time zone.

I changed my time zone from CST to EDT. and the error resolved.

It is really a fucking bug.

Actions #8

Updated by 一帆 师 about 5 years ago

一帆 师 wrote:

I found where the bug come from now.

it is come from the code to deal with the time zone.

I changed my time zone from CST to EDT. and the error resolved.

It is really a fucking bug.

the bug is still on 14.2.0

Actions #9

Updated by Fareez Azhar about 5 years ago

Hi Im on 14.2.0, i have change my timezone to EDT, but the issue still there.

Actions #10

Updated by 一帆 师 about 5 years ago

Fareez Azhar wrote:

Hi Im on 14.2.0, i have change my timezone to EDT, but the issue still there.

try more timezone,My computer time zone is Asia Shanghai. And the server with EDT works. So u can try more time zone.

Actions #11

Updated by Lenz Grimmer about 5 years ago

  • Category changed from ceph-mgr to 132
  • Status changed from New to Duplicate

Resolving this one as a duplicate of #38428

See https://github.com/ceph/ceph/pull/27098 for a possible fix.

Actions #12

Updated by Lenz Grimmer about 5 years ago

  • Related to Bug #39300: mgr/dashboard: Can't login with a bigger time difference between user and server or make auth token work with UTC times only added
Actions #13

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 132 to General
Actions

Also available in: Atom PDF