'NameError: global name 'endpoint' is not defined' after browser crash

Bug #1308983 reported by Dafna Ron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
High
Unassigned

Bug Description

I was working on horizon when my firefox browser stopped responding and I had to force shut down the browser and restart it.
once I restored the session, none of the objects could be retrieved by horizon and when I logged out I could not log in with http access error.
the only way I was able to refresh the session is logging in with hostname instead of ip which somehow refreshed the session and allowed me to log in.

Version-Release number of selected component (if applicable):
python-httplib2-0.7.2-1.el6.noarch
httpd-tools-2.2.15-29.el6_4.x86_64
httpd-2.2.15-29.el6_4.x86_64

firefox-17.0.10-1.el6_4.x86_64
rhel-csb-firefox-config-0.1-1.el6.rhis.x86_64

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

How reproducible:

unknown - below is what happened to me.

Steps to Reproduce:
1. open a session to horizon in firefox using ip (http://10.35.x.x)
2. crash firefox (I suppose killing -9 the pid should simulate this)
3. restore the browser
4. log out/log in with ip again
5. log in with dnsname of host (http://hostname)

Actual results:

we fail to get objects from the setup and when we log out we fail to login again until we change from ip to dns name of host

Expected results:

we should refresh the session after a crash in browser.

Additional info:

[Thu Apr 17 10:03:10 2014] [error] RESP BODY: {"limits": {"rate": [], "absolute": {"maxServerMeta": 128, "maxPersonality": 5, "maxImageMeta": 128, "maxPersonalitySize": 10240, "maxSecurityGroupRules": 20, "maxTotalKeypairs": 100, "totalR
AMUsed": 4096, "totalInstancesUsed": 1, "maxSecurityGroups": 10, "totalFloatingIpsUsed": 0, "maxTotalCores": 20, "totalSecurityGroupsUsed": 0, "maxTotalFloatingIps": 10, "maxTotalInstances": 10, "totalCoresUsed": 2, "maxTotalRAMSize": 51
200}}}
[Thu Apr 17 10:03:10 2014] [error]
[Thu Apr 17 10:07:11 2014] [error] Exception in thread Thread-5:
[Thu Apr 17 10:07:11 2014] [error] Traceback (most recent call last):
[Thu Apr 17 10:07:11 2014] [error] File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
[Thu Apr 17 10:07:11 2014] [error] self.run()
[Thu Apr 17 10:07:11 2014] [error] File "/usr/lib64/python2.6/threading.py", line 484, in run
[Thu Apr 17 10:07:11 2014] [error] self.__target(*self.__args, **self.__kwargs)
[Thu Apr 17 10:07:11 2014] [error] File "/usr/lib/python2.6/site-packages/openstack_auth/views.py", line 93, in delete_all_tokens
[Thu Apr 17 10:07:11 2014] [error] endpoint=endpoint,
[Thu Apr 17 10:07:11 2014] [error] NameError: global name 'endpoint' is not defined
[Thu Apr 17 10:07:11 2014] [error]
[Thu Apr 17 10:46:28 2014] [error] Exception in thread Thread-6:
[Thu Apr 17 10:46:28 2014] [error] Traceback (most recent call last):
[Thu Apr 17 10:46:28 2014] [error] File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
[Thu Apr 17 10:46:28 2014] [error] self.run()
[Thu Apr 17 10:46:28 2014] [error] File "/usr/lib64/python2.6/threading.py", line 484, in run
[Thu Apr 17 10:46:28 2014] [error] self.__target(*self.__args, **self.__kwargs)
[Thu Apr 17 10:46:28 2014] [error] File "/usr/lib/python2.6/site-packages/openstack_auth/views.py", line 93, in delete_all_tokens
[Thu Apr 17 10:46:28 2014] [error] endpoint=endpoint,
[Thu Apr 17 10:46:28 2014] [error] NameError: global name 'endpoint' is not defined
[Thu Apr 17 10:46:28 2014] [error]
[Thu Apr 17 10:55:03 2014] [error] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 10.35.160.71
[Thu Apr 17 10:55:03 2014] [error] DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1309
[Thu Apr 17 10:55:03 2014] [error] DEBUG:iso8601.iso8601:Parsed 2014-04-18T10:55:03Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'10', 'tz_hour': None, 'month': u'04', 'timezone': u'Z', 'second': u'03', 'tz_minute': None, 'y
ear': u'2014', 'separator': u'T', 'day': u'18', 'minute': u'55'} with default timezone <iso8601.iso8601.Utc object at 0x7f973cec5750>

summary: - fter I had to force shut down my browser we are getting 'NameError:
- global name 'endpoint' is not defined'
+ 'NameError: global name 'endpoint' is not defined' after browser crash
Revision history for this message
Akihiro Motoki (amotoki) wrote :

The workaround now is to access the URL with /auth/logout (e.g. http://<horizon URL base>/auth/logout).
It is confusing to users and it is nice we have a solution.

Changed in horizon:
importance: Undecided → High
milestone: none → juno-3
Revision history for this message
Akihiro Motoki (amotoki) wrote :

I temporarily target this bug to High and Juno-3 to raise the visibility of the bug.

Akihiro Motoki (amotoki)
tags: added: dashboard-core
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-3 → juno-rc1
David Lyle (david-lyle)
Changed in horizon:
status: New → Incomplete
status: Incomplete → Won't Fix
Revision history for this message
David Lyle (david-lyle) wrote :

The method throwing the exception, delete_all_tokens, last existed in version 1.1.2 of django_openstack_auth. The current version is 1.1.6. Having an out of date version of django_openstack_auth will miss bug fixes and potentially cause all sorts of exceptions. If a similar problem occurs with an up-to-date version of django_openstack_auth, please post that here. And I'll reopen the bug.

Changed in horizon:
milestone: juno-rc1 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.