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)
Running in verbose mode, we can see this happens for:
test_delete_ volume_ snapshot (openstack_ dashboard. dashboards. project. volumes. snapshots. tests.VolumeSna pshotsViewTests ) ... Error while checking action permissions.
test_index (openstack_ dashboard. dashboards. project. volumes. test.VolumeAndS napshotsTests) ... Error while checking action permissions.