Bug #38600
closed
mgr/dashboard: dashboard giving 401 unauthorized.
Added by 一帆 师 about 5 years ago.
Updated about 3 years ago.
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
我创建了两套环境,第一套只有一张网卡。dashboard可以正常登陆。
第二套环境我有一张千兆网卡和两张万兆网卡。public network和cluster network分别在一张万兆网卡上面。第二套环境登陆之后就会很快的弹出来。
两套环境唯一的区别就只有单网卡和多网卡的区别。
- Is duplicate of Bug #38428: mgr/dashboard: dashboard giving 401 unauthorized added
一帆 师 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.
一帆 师 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.
一帆 师 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
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.
一帆 师 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
Hi Im on 14.2.0, i have change my timezone to EDT, but the issue still there.
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.
- Category changed from ceph-mgr to 132
- Status changed from New to Duplicate
- 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
- Project changed from mgr to Dashboard
- Category changed from 132 to General
Also available in: Atom
PDF