diff options
| author | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-04-26 10:39:25 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-04-28 00:59:14 +0000 |
| commit | e043fab3a05d686a48f0e22ea6c102e94cb36a0e (patch) | |
| tree | 351d5fc8449a4ffd60609a10f03ec8387bd7d50e /kolla/cmd | |
| parent | 2705d67fa14a2e13ad0d13d1be37bfe1b9a89957 (diff) | |
| download | kolla-e043fab3a05d686a48f0e22ea6c102e94cb36a0e.tar.gz kolla-e043fab3a05d686a48f0e22ea6c102e94cb36a0e.zip | |
Catch all the exception in the push thread
Change-Id: I1ba48cd25e529bdd846d3ded1f5923f312e5d17d
Closes-Bug: #1574931
Diffstat (limited to 'kolla/cmd')
| -rwxr-xr-x | kolla/cmd/build.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index 477d85c18..10208334b 100755 --- a/kolla/cmd/build.py +++ b/kolla/cmd/build.py @@ -102,6 +102,9 @@ class PushThread(threading.Thread): ' have the correct privileges to run Docker' ' (root)', image['name']) image['status'] = "connection_error" + except Exception: + LOG.exception('%s:Unknown error when pushing', image['name']) + image['status'] = "push_error" finally: if "error" not in image['status']: LOG.info('%s:Pushed successfully', image['name']) |
