← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1308983] [NEW] fter I had to force shut down my browser we are getting 'NameError: global name 'endpoint' is not defined'

 

Public bug reported:

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>

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1308983

Title:
  fter I had to force shut down my browser we are getting 'NameError:
  global name 'endpoint' is not defined'

Status in OpenStack Dashboard (Horizon):
  New

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>

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1308983/+subscriptions


Follow ups

References