Merge "Handle kolla-build exception"

This commit is contained in:
Jenkins 2016-03-08 09:52:34 +00:00 committed by Gerrit Code Review
commit c018ec6919

View File

@ -73,8 +73,13 @@ class KollaRpmSetupUnknownConfig(Exception):
def docker_client():
try:
docker_kwargs = docker.utils.kwargs_from_env()
return docker.Client(version='auto', **docker_kwargs)
except docker.errors.DockerException:
LOG.exception('Can not communicate with docker service.'
'Please check docker service is running without errors')
sys.exit(1)
class PushThread(threading.Thread):