ccsdk/plugins/dmaap$ tox GLOB sdist-make: ccsdk/plugins/dmaap/setup.py py27 inst-nodeps: ccsdk/plugins/dmaap/.tox/.tmp/package/1/dmaap-1.3.5.zip py27 installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support,astroid==1.6.6,atomicwrites==1.3.0,attrs==19.3.0,backports.functools-lru-cache==1.6.1,bottle==0.12.7,certifi==2019.9.11,chardet==3.0.4,cloudify-common==5.0.0,configparser==4.0.2,contextlib2==0.6.0.post1,coverage==4.5.4,decorator==4.4.1,dmaap==1.3.5,enum34==1.1.6,funcsigs==1.0.2,futures==3.3.0,idna==2.8,importlib-metadata==0.23,isort==4.3.21,Jinja2==2.10,lazy-object-proxy==1.4.3,MarkupSafe==1.1.1,mccabe==0.6.1,more-itertools==5.0.0,networkx==1.9.1,packaging==19.2,pathlib2==2.3.5,pika==0.11.2,pluggy==0.13.0,ply==3.11,proxy-tools==0.1.0,py==1.8.0,pyasn1==0.4.7,pycryptodomex==3.9.3,pylint==1.9.5,pyparsing==2.4.5,pysmi==0.3.4,pysnmp==4.4.5,pytest==4.6.6,pytest-cov==2.8.1,python-consul==0.7.0,PyYAML==3.10,requests==2.22.0,requests-toolbelt==0.8.0,retrying==1.3.3,scandir==1.10.0,singledispatch==3.4.0.3,six==1.13.0,urllib3==1.25.7,wcwidth==0.1.7,wrapt==1.11.2,zipp==0.6.0 py27 run-test-pre: PYTHONHASHSEED='3111709941' py27 run-test: commands[0] | pytest --junitxml xunit-results.xml --cov dmaapcontrollerif --cov consulif --cov dmaapplugin --cov-report xml ============================= test session starts ============================== platform linux2 -- Python 2.7.15+, pytest-4.6.6, py-1.8.0, pluggy-0.13.0 cachedir: .tox/py27/.pytest_cache rootdir: ccsdk/plugins/dmaap plugins: cov-2.8.1 collected 7 items tests/test_consulif.py .. [ 28%] tests/test_dmaapcontrollerif.py . [ 42%] tests/test_dr_lifecycle.py . [ 57%] tests/test_mr_lifecycle.py . [ 71%] tests/test_plugin.py . [ 85%] tests/test_utils.py . [100%] - generated xml file: ccsdk/plugins/dmaap/xunit-results.xml - ---------- coverage: platform linux2, python 2.7.15-final-0 ---------- Coverage XML written to file coverage.xml =========================== 7 passed in 0.28 seconds =========================== py27 run-test: commands[1] | coverage xml py36 inst-nodeps: ccsdk/plugins/dmaap/.tox/.tmp/package/1/dmaap-1.3.5.zip py36 installed: astroid==2.3.3,atomicwrites==1.3.0,attrs==19.3.0,bottle==0.12.7,certifi==2019.9.11,chardet==3.0.4,cloudify-common==5.0.5.dev1,coverage==4.5.4,decorator==4.4.1,dmaap==1.3.5,idna==2.8,importlib-metadata==0.23,isort==4.3.21,Jinja2==2.10,lazy-object-proxy==1.4.3,MarkupSafe==1.1.1,mccabe==0.6.1,more-itertools==7.2.0,networkx==1.9.1,packaging==19.2,pika==0.11.2,pluggy==0.13.0,ply==3.11,proxy-tools==0.1.0,py==1.8.0,pyasn1==0.4.7,pycryptodomex==3.9.3,pylint==2.4.4,pyparsing==2.4.5,pysmi==0.3.4,pysnmp==4.4.5,pytest==5.2.3,pytest-cov==2.8.1,python-consul==0.7.0,PyYAML==3.10,requests==2.22.0,requests-toolbelt==0.8.0,retrying==1.3.3,six==1.13.0,typed-ast==1.4.0,urllib3==1.25.7,wcwidth==0.1.7,wrapt==1.11.2,zipp==0.6.0 py36 run-test-pre: PYTHONHASHSEED='3111709941' py36 run-test: commands[0] | pytest --junitxml xunit-results.xml --cov dmaapcontrollerif --cov consulif --cov dmaapplugin --cov-report xml ============================= test session starts ============================== platform linux -- Python 3.6.8, pytest-5.2.3, py-1.8.0, pluggy-0.13.0 cachedir: .tox/py36/.pytest_cache rootdir: ccsdk/plugins/dmaap plugins: cov-2.8.1 collected 7 items / 1 errors / 6 selected ==================================== ERRORS ==================================== ___________________ ERROR collecting dmaapplugin/__init__.py ___________________ .tox/py36/lib/python3.6/site-packages/urllib3/connection.py:157: in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw .tox/py36/lib/python3.6/site-packages/urllib3/util/connection.py:61: in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): /usr/lib/python3.6/socket.py:745: in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): E socket.gaierror: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: .tox/py36/lib/python3.6/site-packages/urllib3/connectionpool.py:672: in urlopen chunked=chunked, .tox/py36/lib/python3.6/site-packages/urllib3/connectionpool.py:387: in _make_request conn.request(method, url, **httplib_request_kw) /usr/lib/python3.6/http/client.py:1254: in request self._send_request(method, url, body, headers, encode_chunked) /usr/lib/python3.6/http/client.py:1300: in _send_request self.endheaders(body, encode_chunked=encode_chunked) /usr/lib/python3.6/http/client.py:1249: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) /usr/lib/python3.6/http/client.py:1036: in _send_output self.send(msg) /usr/lib/python3.6/http/client.py:974: in send self.connect() .tox/py36/lib/python3.6/site-packages/urllib3/connection.py:184: in connect conn = self._new_conn() .tox/py36/lib/python3.6/site-packages/urllib3/connection.py:169: in _new_conn self, "Failed to establish a new connection: %s" % e E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: .tox/py36/lib/python3.6/site-packages/requests/adapters.py:449: in send timeout=timeout .tox/py36/lib/python3.6/site-packages/urllib3/connectionpool.py:720: in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] .tox/py36/lib/python3.6/site-packages/urllib3/util/retry.py:436: in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='consul', port=8500): Max retries exceeded with url: /v1/kv/dmaap-plugin (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known',)) During handling of the above exception, another exception occurred: dmaapplugin/__init__.py:39: in config = _ch.get_config(DBCL_KEY_NAME) consulif/consulif.py:44: in get_config (index, val) = self.ch.kv.get(key) .tox/py36/lib/python3.6/site-packages/consul/base.py:467: in get params=params) .tox/py36/lib/python3.6/site-packages/consul/std.py:35: in get self.session.get(uri, verify=self.verify))) .tox/py36/lib/python3.6/site-packages/requests/sessions.py:546: in get return self.request('GET', url, **kwargs) .tox/py36/lib/python3.6/site-packages/requests/sessions.py:533: in request resp = self.send(prep, **send_kwargs) .tox/py36/lib/python3.6/site-packages/requests/sessions.py:646: in send r = adapter.send(request, **kwargs) .tox/py36/lib/python3.6/site-packages/requests/adapters.py:516: in send raise ConnectionError(e, request=request) E requests.exceptions.ConnectionError: HTTPConnectionPool(host='consul', port=8500): Max retries exceeded with url: /v1/kv/dmaap-plugin (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known',)) During handling of the above exception, another exception occurred: dmaapplugin/__init__.py:41: in raise NonRecoverableError("Error getting config for '{0}' from ConsulHandle when configuring dmaap plugin: {1}".format(DBCL_KEY_NAME, e)) E cloudify.exceptions.NonRecoverableError: Error getting config for 'dmaap-plugin' from ConsulHandle when configuring dmaap plugin: HTTPConnectionPool(host='consul', port=8500): Max retries exceeded with url: /v1/kv/dmaap-plugin (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known',)) - generated xml file: ccsdk/plugins/dmaap/xunit-results.xml - ----------- coverage: platform linux, python 3.6.8-final-0 ----------- Coverage XML written to file coverage.xml !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!! =============================== 1 error in 0.70s =============================== ERROR: InvocationError for command ccsdk/plugins/dmaap/.tox/py36/bin/pytest --junitxml xunit-results.xml --cov dmaapcontrollerif --cov consulif --cov dmaapplugin --cov-report xml (exited with code 2) ___________________________________ summary ____________________________________ py27: commands succeeded ERROR: py36: commands failed