When running the Horizon test cases, I get the following lines in the console:
Trying your patch leads me to: INFO:urllib3.connectionpool:Starting new HTTP connection (1): public.nova.example.com DEBUG:cinderclient.client:Connection refused: HTTPConnectionPool(host='public.nova.example.com', port=8776): Max retries exceeded with url: /v1/limits (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known) .INFO:urllib3.connectionpool:Starting new HTTP connection (1): public.nova.example.com DEBUG:cinderclient.client:Connection refused: HTTPConnectionPool(host='public.nova.example.com', port=8776): Max retries exceeded with url: /v1/limits (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known) .INFO:urllib3.connectionpool:Starting new HTTP connection (1): public.nova.example.com DEBUG:cinderclient.client:Connection refused: HTTPConnectionPool(host='public.nova.example.com', port=8776): Max retries exceeded with url: /v1/limits (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known) .INFO:urllib3.connectionpool:Starting new HTTP connection (1): public.nova.example.com DEBUG:cinderclient.client:Connection refused: HTTPConnectionPool(host='public.nova.example.com', port=8776): Max retries exceeded with url: /v1/limits (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)
It looks like Cinder client is not mocked.
Fix proposed to branch: master /review. openstack. org/61208
Review: https:/