kolla-build does not handle exception in case docker service is stopped

Bug #1553912 reported by Swapnil Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Low
Unassigned

Bug Description

I accidently invoked kolla-build with docker service was stopped and ran into following exception

$ kolla-build
INFO:kolla.cmd.build:Found the docker image folder at /usr/share/kolla/docker
ERROR:kolla.cmd.build:Error while fetching server API version: ('Connection aborted.', error(2, 'No such file or directory'))
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/kolla/cmd/build.py", line 78, in docker_client
    return docker.Client(version='auto', **docker_kwargs)
  File "/usr/lib/python2.7/site-packages/docker/client.py", line 77, in __init__
    self._version = self._retrieve_server_version()
  File "/usr/lib/python2.7/site-packages/docker/client.py", line 97, in _retrieve_server_version
    'Error while fetching server API version: {0}'.format(e)
DockerException: Error while fetching server API version: ('Connection aborted.', error(2, 'No such file or directory'))

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/289211

Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/289211
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=5669f7e0ad2e31c68d18e326bc8b21507294f424
Submitter: Jenkins
Branch: master

commit 5669f7e0ad2e31c68d18e326bc8b21507294f424
Author: Swapnil Kulkarni (coolsvap) <email address hidden>
Date: Mon Mar 7 13:30:58 2016 +0530

    Handle kolla-build exception

    kolla-build currently does not provide information
    if docker service is not running. Added exception
    handling.

    Change-Id: I1f167804b8b4d2ad9220281954ff7ea7162a9817
    Closes-Bug:#1553912

Changed in kolla:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.