kolla/kolla
Marcin Juszkiewicz 40d4d12b21 handle push error properly
If there was some error during pushing then Kolla was greeting with "all went
fine" message anyway:

INFO:kolla.common.utils.aodh-api:Trying to push the image
ERROR:kolla.common.utils.aodh-api:Get http://10.101.16.1:5000/v2/: dial tcp 10.101.16.1:5000: connect: no route to host
INFO:kolla.common.utils.aodh-api:Pushed successfully

This patch changes that. Now if there is an error during push then proper
exception is raised to PushTask and image is marked with PUSH_ERROR status.

This way at the end of build it is easy to spot which images did not got
pushed to registry:

INFO:kolla.common.utils:===========================
INFO:kolla.common.utils:Images that failed to build
INFO:kolla.common.utils:===========================
ERROR:kolla.common.utils:base Failed with status: push_error
ERROR:kolla.common.utils:nova-api Failed with status: push_error
ERROR:kolla.common.utils:nova-base Failed with status: push_error
ERROR:kolla.common.utils:nova-compute Failed with status: push_error
ERROR:kolla.common.utils:nova-compute-ironic Failed with status: push_error
ERROR:kolla.common.utils:nova-conductor Failed with status: push_error

Closes-Bug: #1848019
Change-Id: Id2ab97bf4c0dc3423268a0ea435b56f4a65f7196
(cherry picked from commit 52cac09d3d)
2019-10-16 10:38:22 +00:00
..
cmd Allow the use of previously built parent images 2017-03-29 17:48:58 +00:00
common Bump rocky octavia to 3.2.0 (CVE-2019-17134) 2019-10-14 11:38:23 -04:00
hacking Remove the extra parentheses 2018-02-25 11:16:20 +00:00
image handle push error properly 2019-10-16 10:38:22 +00:00
template Ignore undefined values in customizable filter 2018-12-27 09:12:01 +00:00
tests handle push error properly 2019-10-16 10:38:22 +00:00
__init__.py Make Kolla installable via PIP 2015-08-24 16:08:49 -07:00
exception.py Add dots at first line in docstring 2017-05-04 09:23:41 +01:00
opts.py Generate the kolla-build.conf file using oslo_config 2016-01-06 08:11:06 +08:00
version.py Generate the kolla-build.conf file using oslo_config 2016-01-06 08:11:06 +08:00