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

Bug 1088888

Summary: horizon: after I had to force shut down my browser we are getting 'NameError: global name 'endpoint' is not defined'
Product: Red Hat OpenStack Reporter: Dafna Ron <dron>
Component: python-django-horizonAssignee: Matthias Runge <mrunge>
Status: CLOSED UPSTREAM QA Contact: Ami Jeain <ajeain>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0CC: aortega, jpichon, mrunge, yeylon
Target Milestone: ---   
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-11 08:19:37 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-17 11:19:02 UTC
Created attachment 887148 [details]
logs

Description of problem:

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:logs


[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>

Comment 1 Matthias Runge 2014-06-11 08:19:37 UTC
moving to upstream; closing here in bugzilla