2013-10-22 16:03:45 |
David Lyle |
bug |
|
|
added bug |
2013-10-22 16:14:01 |
David Lyle |
horizon: assignee |
|
David Lyle (david-lyle) |
|
2013-10-22 16:14:09 |
David Lyle |
summary |
timeout logic causes logout when loud balanced |
timeout logic causes logout when load balanced |
|
2013-10-22 16:40:32 |
David Lyle |
description |
The session timeout code in the Horizon middleware can cause inappropriate timeout/logout when running Horizon behind a load balancer on two machines that are slightly out of sync time-wise. |
The session timeout code in the Horizon middleware can cause inappropriate timeout/logout when running Horizon behind a load balancer on two machines that are slightly out of sync time-wise.
Example with 3 minute time difference:
import datetime
timestamp = datetime.datetime.now()
day_one = datetime.datetime(2007, 12, 5, 9, 1, 1)
day_two = datetime.datetime(2007, 12, 5, 9, 5, 1)
print (day_one - day_two).seconds
print (day_two - day_one).seconds
print abs((day_one - day_two).total_seconds())
print abs((day_two - day_one).total_seconds())
Output:
86160
240
240.0
240.0 |
|
2013-10-22 16:42:55 |
OpenStack Infra |
horizon: status |
New |
In Progress |
|
2013-10-22 16:48:15 |
David Lyle |
description |
The session timeout code in the Horizon middleware can cause inappropriate timeout/logout when running Horizon behind a load balancer on two machines that are slightly out of sync time-wise.
Example with 3 minute time difference:
import datetime
timestamp = datetime.datetime.now()
day_one = datetime.datetime(2007, 12, 5, 9, 1, 1)
day_two = datetime.datetime(2007, 12, 5, 9, 5, 1)
print (day_one - day_two).seconds
print (day_two - day_one).seconds
print abs((day_one - day_two).total_seconds())
print abs((day_two - day_one).total_seconds())
Output:
86160
240
240.0
240.0 |
The session timeout code in the horizon/middleware.py can cause inappropriate timeouts/logouts when running Horizon behind a load balancer on two machines that are slightly out of sync time-wise.
Example with 3 minute time difference:
import datetime
timestamp = datetime.datetime.now()
day_one = datetime.datetime(2007, 12, 5, 9, 1, 1)
day_two = datetime.datetime(2007, 12, 5, 9, 5, 1)
print (day_one - day_two).seconds
print (day_two - day_one).seconds
print abs((day_one - day_two).total_seconds())
print abs((day_two - day_one).total_seconds())
Output:
86160
240
240.0
240.0 |
|
2013-10-22 18:46:06 |
David Lyle |
description |
The session timeout code in the horizon/middleware.py can cause inappropriate timeouts/logouts when running Horizon behind a load balancer on two machines that are slightly out of sync time-wise.
Example with 3 minute time difference:
import datetime
timestamp = datetime.datetime.now()
day_one = datetime.datetime(2007, 12, 5, 9, 1, 1)
day_two = datetime.datetime(2007, 12, 5, 9, 5, 1)
print (day_one - day_two).seconds
print (day_two - day_one).seconds
print abs((day_one - day_two).total_seconds())
print abs((day_two - day_one).total_seconds())
Output:
86160
240
240.0
240.0 |
The session timeout code in the horizon/middleware.py can cause inappropriate timeouts/logouts when running Horizon behind a load balancer on two machines that are slightly out of sync time-wise.
Example with 3 minute time difference:
import datetime
timestamp = datetime.datetime.now()
day_one = datetime.datetime(2007, 12, 5, 9, 1, 1)
day_two = datetime.datetime(2007, 12, 5, 9, 5, 1)
print (day_one - day_two).seconds
print (day_two - day_one).seconds
print abs((day_one - day_two).total_seconds()) // apparently no total_seconds in python 2.6
print abs((day_two - day_one).total_seconds())
print abs(day_one - day_two).seconds
print abs(day_two - day_one).seconds
Output:
86160
240
240.0
240.0
240
240 |
|
2013-10-22 18:54:30 |
David Lyle |
description |
The session timeout code in the horizon/middleware.py can cause inappropriate timeouts/logouts when running Horizon behind a load balancer on two machines that are slightly out of sync time-wise.
Example with 3 minute time difference:
import datetime
timestamp = datetime.datetime.now()
day_one = datetime.datetime(2007, 12, 5, 9, 1, 1)
day_two = datetime.datetime(2007, 12, 5, 9, 5, 1)
print (day_one - day_two).seconds
print (day_two - day_one).seconds
print abs((day_one - day_two).total_seconds()) // apparently no total_seconds in python 2.6
print abs((day_two - day_one).total_seconds())
print abs(day_one - day_two).seconds
print abs(day_two - day_one).seconds
Output:
86160
240
240.0
240.0
240
240 |
The session timeout code in the horizon/middleware.py can cause inappropriate timeouts/logouts when running Horizon behind a load balancer on two machines that are slightly out of sync time-wise.
Results in redirection to the login screen and Session expired error if not fixed.
Example with 3 minute time difference:
import datetime
timestamp = datetime.datetime.now()
day_one = datetime.datetime(2007, 12, 5, 9, 1, 1)
day_two = datetime.datetime(2007, 12, 5, 9, 5, 1)
print (day_one - day_two).seconds
print (day_two - day_one).seconds
print abs((day_one - day_two).total_seconds()) // apparently no total_seconds in python 2.6
print abs((day_two - day_one).total_seconds())
print abs(day_one - day_two).seconds
print abs(day_two - day_one).seconds
Output:
86160
240
240.0
240.0
240
240 |
|
2013-10-22 19:21:07 |
David Lyle |
tags |
|
havana-backport-potential |
|
2013-11-11 08:41:57 |
David Lyle |
horizon: importance |
Undecided |
Low |
|
2013-11-11 08:42:01 |
David Lyle |
horizon: milestone |
|
icehouse-1 |
|
2013-12-03 15:45:12 |
Thierry Carrez |
horizon: milestone |
icehouse-1 |
icehouse-2 |
|
2014-01-12 20:18:53 |
David Lyle |
horizon: status |
In Progress |
Fix Committed |
|
2014-01-13 00:23:14 |
Kieran Spear |
nominated for series |
|
horizon/havana |
|
2014-01-13 00:23:14 |
Kieran Spear |
bug task added |
|
horizon/havana |
|
2014-01-13 00:23:27 |
Kieran Spear |
horizon/havana: status |
New |
Triaged |
|
2014-01-13 02:32:12 |
Kieran Spear |
horizon/havana: assignee |
|
Kieran Spear (kspear) |
|
2014-01-13 02:32:17 |
Kieran Spear |
horizon/havana: importance |
Undecided |
Low |
|
2014-01-13 02:49:07 |
OpenStack Infra |
horizon/havana: status |
Triaged |
In Progress |
|
2014-01-13 02:51:11 |
Kieran Spear |
tags |
havana-backport-potential |
|
|
2014-01-22 20:17:18 |
Thierry Carrez |
horizon: status |
Fix Committed |
Fix Released |
|
2014-02-13 18:00:33 |
Alan Pevec |
horizon/havana: status |
In Progress |
Fix Committed |
|
2014-02-13 18:00:33 |
Alan Pevec |
horizon/havana: milestone |
|
2013.2.2 |
|
2014-02-13 19:24:30 |
Alan Pevec |
horizon/havana: status |
Fix Committed |
Fix Released |
|
2014-04-17 09:47:22 |
Thierry Carrez |
horizon: milestone |
icehouse-2 |
2014.1 |
|