kolla/kolla/tests
Marcin Juszkiewicz d6f46d544f 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:14 +00:00
..
common add unittest code base 2016-01-18 11:42:00 +00:00
docker Fix image plugin functionality for oslo.config 2016-02-12 06:00:20 +00:00
etc Fix plugin parsing for base images 2016-11-04 10:27:39 +00:00
__init__.py add unittest code base 2016-01-18 11:42:00 +00:00
base.py Make build.py importable lib 2016-06-07 16:40:16 +00:00
test_build.py handle push error properly 2019-10-16 10:38:14 +00:00
test_hacking.py Add HACKING.rst and hacking test case. 2016-11-24 15:55:43 +08:00
test_methods.py always update APT lists when install packages 2017-05-08 14:31:33 +02:00