Project

General

Profile

Bug #38600

mgr/dashboard: dashboard giving 401 unauthorized.

Added by 一帆 师 about 5 years ago. Updated almost 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?

企业微信截图_15518577851553.png View (91.1 KB) 一帆 师, 03/06/2019 07:36 AM


Related issues

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 only Resolved
Duplicates Dashboard - Bug #38428: mgr/dashboard: dashboard giving 401 unauthorized Resolved

History

#2 Updated by 一帆 师 about 5 years ago

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

#3 Updated by Volker Theile about 5 years ago

  • Duplicates Bug #38428: mgr/dashboard: dashboard giving 401 unauthorized added

#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.

#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.

#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

#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.

#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

#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.

#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.

#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.

#12 Updated by Lenz Grimmer almost 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

#13 Updated by Ernesto Puerta almost 3 years ago

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

Also available in: Atom PDF