Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1091020

Summary: horizon: not redirected to main page after a session expired
Product: Red Hat OpenStack Reporter: Dafna Ron <dron>
Component: python-django-horizonAssignee: Matthias Runge <mrunge>
Status: CLOSED ERRATA QA Contact: Amit Ugol <augol>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0CC: aortega, augol, dron, jpichon, mrunge, yeylon
Target Milestone: rc   
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: python-django-horizon-2014.1-6.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:42:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs none

Description Dafna Ron 2014-04-24 15:39:39 UTC
Created attachment 889339 [details]
logs

Description of problem:

when creating a snapshot for an instance, if the session expires and than we press the "instances" link again to refresh the screen, we get an error in the webadmin instead of being redirected to the login page

Version-Release number of selected component (if applicable):

python-django-horizon-2013.2.3-1.el6ost.noarch

How reproducible:

100%

Steps to Reproduce:
1. launch an instance and take a snapshot 
2. allow the session to time out 
3. press the "instances" link 

Actual results:

we get an error in horizon 

Expected results:

we should be redirected to the login page 

Additional info:

//10.35.160.71:35357/v2.0/tenants/c3178ebef2c24d1b9a045bd67483a83c -H "User-Agent: python-keystoneclient" -H "Forwarded: for=10.64.245.229;by=python-keystoneclient" -H "X-Auth-Token: ff244a6dcae7573250e32652773ffb53"
2014-04-24 15:20:28,642 2351 INFO openstack_auth.views Logging out user "admin".
2014-04-24 15:20:30,523 2351 ERROR django.request Internal Server Error: /dashboard/auth/login/
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 136, in get_response
    response = response.render()
  File "/usr/lib/python2.6/site-packages/django/template/response.py", line 104, in render
    self._set_content(self.rendered_content)
  File "/usr/lib/python2.6/site-packages/django/template/response.py", line 79, in rendered_content
    template = self.resolve_template(self.template_name)
  File "/usr/lib/python2.6/site-packages/django/template/response.py", line 57, in resolve_template
    return loader.get_template(template)
  File "/usr/lib/python2.6/site-packages/django/template/loader.py", line 145, in get_template
  File "/usr/lib/python2.6/site-packages/django/template/loader.py", line 138, in find_template
TemplateDoesNotExist: auth/login.html

Comment 1 Matthias Runge 2014-05-22 11:18:11 UTC
Dafna, unfortunately, I couldn't reproduce the issue, as I was correctly logged out and directed to the login page as well. Does this issue still happen with Icehouse?

Comment 2 Dafna Ron 2014-05-22 12:38:17 UTC
this is not reproduced in iceHouse.

Comment 3 Amit Ugol 2014-06-18 08:20:58 UTC
tested a few times, this is working well in IceHouse.

Comment 5 errata-xmlrpc 2014-07-08 15:42:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0855.html