yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #10226
[Bug 1284664] [NEW] TypeError for fake_init_exception when running tests
Public bug reported:
When running openstack_dashboard tests, this error is displayed twice
and ignored (no tests fail):
Error while checking action permissions.
Traceback (most recent call last):
File "/home/sheep/devel/horizon/horizon/tables/base.py", line 1119, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/sheep/devel/horizon/horizon/tables/actions.py", line 133, in _allowed
return self.allowed(request, datum)
File "/home/sheep/devel/horizon/openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 75, in allowed
usages = quotas.tenant_quota_usages(request)
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/usage/quotas.py", line 195, in tenant_quota_usages
disabled_quotas = get_disabled_quotas(request)
File "/home/sheep/devel/horizon/openstack_dashboard/usage/quotas.py", line 175, in get_disabled_quotas
if neutron.is_security_group_extension_supported(request):
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 861, in is_security_group_extension_supported
return is_extension_supported(request, 'security-group')
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 841, in is_extension_supported
extensions = list_extensions(request)
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 832, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 111, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 294, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1236, in get
headers=headers, params=params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1221, in retry_request
headers=headers, params=params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1156, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 192, in do_request
**kwargs)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 154, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
TypeError: fake_init_exception() takes exactly 3 arguments (1 given)
Error while checking action permissions.
Traceback (most recent call last):
File "/home/sheep/devel/horizon/horizon/tables/base.py", line 1119, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/sheep/devel/horizon/horizon/tables/actions.py", line 133, in _allowed
return self.allowed(request, datum)
File "/home/sheep/devel/horizon/openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 75, in allowed
usages = quotas.tenant_quota_usages(request)
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/usage/quotas.py", line 195, in tenant_quota_usages
disabled_quotas = get_disabled_quotas(request)
File "/home/sheep/devel/horizon/openstack_dashboard/usage/quotas.py", line 175, in get_disabled_quotas
if neutron.is_security_group_extension_supported(request):
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 861, in is_security_group_extension_supported
return is_extension_supported(request, 'security-group')
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 841, in is_extension_supported
extensions = list_extensions(request)
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 832, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 111, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 294, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1236, in get
headers=headers, params=params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1221, in retry_request
headers=headers, params=params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1156, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 192, in do_request
**kwargs)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 154, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
TypeError: fake_init_exception() takes exactly 3 arguments (1 given)
** Affects: horizon
Importance: Medium
Status: Confirmed
--
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/1284664
Title:
TypeError for fake_init_exception when running tests
Status in OpenStack Dashboard (Horizon):
Confirmed
Bug description:
When running openstack_dashboard tests, this error is displayed twice
and ignored (no tests fail):
Error while checking action permissions.
Traceback (most recent call last):
File "/home/sheep/devel/horizon/horizon/tables/base.py", line 1119, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/sheep/devel/horizon/horizon/tables/actions.py", line 133, in _allowed
return self.allowed(request, datum)
File "/home/sheep/devel/horizon/openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 75, in allowed
usages = quotas.tenant_quota_usages(request)
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/usage/quotas.py", line 195, in tenant_quota_usages
disabled_quotas = get_disabled_quotas(request)
File "/home/sheep/devel/horizon/openstack_dashboard/usage/quotas.py", line 175, in get_disabled_quotas
if neutron.is_security_group_extension_supported(request):
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 861, in is_security_group_extension_supported
return is_extension_supported(request, 'security-group')
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 841, in is_extension_supported
extensions = list_extensions(request)
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 832, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 111, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 294, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1236, in get
headers=headers, params=params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1221, in retry_request
headers=headers, params=params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1156, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 192, in do_request
**kwargs)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 154, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
TypeError: fake_init_exception() takes exactly 3 arguments (1 given)
Error while checking action permissions.
Traceback (most recent call last):
File "/home/sheep/devel/horizon/horizon/tables/base.py", line 1119, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/sheep/devel/horizon/horizon/tables/actions.py", line 133, in _allowed
return self.allowed(request, datum)
File "/home/sheep/devel/horizon/openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 75, in allowed
usages = quotas.tenant_quota_usages(request)
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/usage/quotas.py", line 195, in tenant_quota_usages
disabled_quotas = get_disabled_quotas(request)
File "/home/sheep/devel/horizon/openstack_dashboard/usage/quotas.py", line 175, in get_disabled_quotas
if neutron.is_security_group_extension_supported(request):
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 861, in is_security_group_extension_supported
return is_extension_supported(request, 'security-group')
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 841, in is_extension_supported
extensions = list_extensions(request)
File "/home/sheep/devel/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/sheep/devel/horizon/openstack_dashboard/api/neutron.py", line 832, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 111, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 294, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1236, in get
headers=headers, params=params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1221, in retry_request
headers=headers, params=params)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1156, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 192, in do_request
**kwargs)
File "/home/sheep/devel/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 154, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
TypeError: fake_init_exception() takes exactly 3 arguments (1 given)
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1284664/+subscriptions
Follow ups
References