Currently the retry mechanism is broken for pushing because the image
state gets set to an error state, and is never reset to 'built'. This
prevents the PushTask from setting success to True.
This change sets the image state to 'built' if the push succeeds,
ensuring it overrides any previous failures.
Change-Id: I93fc0e383da8fec6b3ca31f8094321c2a0c3af71
Closes-Bug: #1844697
(cherry picked from commit f8ded663891f79c289156ee61d4e02197d80ce7a)
Reviewed: https:/ /review. opendev. org/683399 /git.openstack. org/cgit/ openstack/ kolla/commit/ ?id=7d4b06f9b0f e9709385fd7af3f e39b5baa865a95
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 7d4b06f9b0fe970 9385fd7af3fe39b 5baa865a95
Author: Mark Goddard <email address hidden>
Date: Thu Sep 19 17:20:50 2019 +0100
Fix retries when pushing images
Currently the retry mechanism is broken for pushing because the image
state gets set to an error state, and is never reset to 'built'. This
prevents the PushTask from setting success to True.
This change sets the image state to 'built' if the push succeeds,
ensuring it overrides any previous failures.
Change-Id: I93fc0e383da8fe c6b3ca31f809432 1c2a0c3af71 289156ee61d4e02 197d80ce7a)
Closes-Bug: #1844697
(cherry picked from commit f8ded663891f79c