yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #37180
[Bug 1488168] [NEW] missing mock in loadbalancer tests
Public bug reported:
Recent merge introduced unmocked API calls for loadbalancer tests:
Error while checking action permissions.
Traceback (most recent call last):
File "/home/david-lyle/horizon/horizon/tables/base.py", line 1266, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/david-lyle/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/project/loadbalancers/tables.py", line 312, in allowed
if not api.network.floating_ip_supported(request):
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 91, in floating_ip_supported
return NetworkClient(request).floating_ips.is_supported()
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 37, in __init__
neutron.is_extension_supported(request, 'security-group')):
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1161, in is_extension_supported
extensions = list_extensions(request)
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1152, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 522, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
content_type=self.content_type())
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 170, in do_request
**kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 106, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
ConnectionFailed: Connection to neutron failed: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Error while checking action permissions.
Traceback (most recent call last):
File "/home/david-lyle/horizon/horizon/tables/base.py", line 1266, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/david-lyle/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/project/loadbalancers/tables.py", line 348, in allowed
if not api.network.floating_ip_supported(request):
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 91, in floating_ip_supported
return NetworkClient(request).floating_ips.is_supported()
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 37, in __init__
neutron.is_extension_supported(request, 'security-group')):
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1161, in is_extension_supported
extensions = list_extensions(request)
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1152, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 522, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
content_type=self.content_type())
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 170, in do_request
**kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 106, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
ConnectionFailed: Connection to neutron failed: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Error while checking action permissions.
Traceback (most recent call last):
File "/home/david-lyle/horizon/horizon/tables/base.py", line 1266, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/david-lyle/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/project/loadbalancers/tables.py", line 312, in allowed
if not api.network.floating_ip_supported(request):
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 91, in floating_ip_supported
return NetworkClient(request).floating_ips.is_supported()
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 37, in __init__
neutron.is_extension_supported(request, 'security-group')):
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1161, in is_extension_supported
extensions = list_extensions(request)
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1152, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 522, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
content_type=self.content_type())
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 170, in do_request
**kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 106, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
ConnectionFailed: Connection to neutron failed: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Error while checking action permissions.
Traceback (most recent call last):
File "/home/david-lyle/horizon/horizon/tables/base.py", line 1266, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/david-lyle/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/project/loadbalancers/tables.py", line 348, in allowed
if not api.network.floating_ip_supported(request):
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 91, in floating_ip_supported
return NetworkClient(request).floating_ips.is_supported()
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 37, in __init__
neutron.is_extension_supported(request, 'security-group')):
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1161, in is_extension_supported
extensions = list_extensions(request)
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1152, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 522, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
content_type=self.content_type())
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 170, in do_request
**kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 106, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
ConnectionFailed: Connection to neutron failed: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
** Affects: horizon
Importance: Medium
Assignee: David Lyle (david-lyle)
Status: New
** Tags: neutron unittest
--
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/1488168
Title:
missing mock in loadbalancer tests
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Recent merge introduced unmocked API calls for loadbalancer tests:
Error while checking action permissions.
Traceback (most recent call last):
File "/home/david-lyle/horizon/horizon/tables/base.py", line 1266, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/david-lyle/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/project/loadbalancers/tables.py", line 312, in allowed
if not api.network.floating_ip_supported(request):
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 91, in floating_ip_supported
return NetworkClient(request).floating_ips.is_supported()
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 37, in __init__
neutron.is_extension_supported(request, 'security-group')):
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1161, in is_extension_supported
extensions = list_extensions(request)
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1152, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 522, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
content_type=self.content_type())
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 170, in do_request
**kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 106, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
ConnectionFailed: Connection to neutron failed: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Error while checking action permissions.
Traceback (most recent call last):
File "/home/david-lyle/horizon/horizon/tables/base.py", line 1266, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/david-lyle/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/project/loadbalancers/tables.py", line 348, in allowed
if not api.network.floating_ip_supported(request):
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 91, in floating_ip_supported
return NetworkClient(request).floating_ips.is_supported()
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 37, in __init__
neutron.is_extension_supported(request, 'security-group')):
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1161, in is_extension_supported
extensions = list_extensions(request)
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1152, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 522, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
content_type=self.content_type())
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 170, in do_request
**kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 106, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
ConnectionFailed: Connection to neutron failed: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Error while checking action permissions.
Traceback (most recent call last):
File "/home/david-lyle/horizon/horizon/tables/base.py", line 1266, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/david-lyle/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/project/loadbalancers/tables.py", line 312, in allowed
if not api.network.floating_ip_supported(request):
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 91, in floating_ip_supported
return NetworkClient(request).floating_ips.is_supported()
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 37, in __init__
neutron.is_extension_supported(request, 'security-group')):
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1161, in is_extension_supported
extensions = list_extensions(request)
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1152, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 522, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
content_type=self.content_type())
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 170, in do_request
**kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 106, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
ConnectionFailed: Connection to neutron failed: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Error while checking action permissions.
Traceback (most recent call last):
File "/home/david-lyle/horizon/horizon/tables/base.py", line 1266, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/david-lyle/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/david-lyle/horizon/openstack_dashboard/dashboards/project/loadbalancers/tables.py", line 348, in allowed
if not api.network.floating_ip_supported(request):
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 91, in floating_ip_supported
return NetworkClient(request).floating_ips.is_supported()
File "/home/david-lyle/horizon/openstack_dashboard/api/network.py", line 37, in __init__
neutron.is_extension_supported(request, 'security-group')):
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1161, in is_extension_supported
extensions = list_extensions(request)
File "/home/david-lyle/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/david-lyle/horizon/openstack_dashboard/api/neutron.py", line 1152, in list_extensions
extensions_list = neutronclient(request).list_extensions()
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
ret = self.function(instance, *args, **kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 522, in list_extensions
return self.get(self.extensions_path, params=_params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
headers=headers, params=params)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
content_type=self.content_type())
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 170, in do_request
**kwargs)
File "/home/david-lyle/horizon/.venv/local/lib/python2.7/site-packages/neutronclient/client.py", line 106, in _cs_request
raise exceptions.ConnectionFailed(reason=e)
ConnectionFailed: Connection to neutron failed: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1488168/+subscriptions
Follow ups