Fix docker tag error when image has not been downloaded
Sometimes, the python docker client pull command will finish without
raising an error, but also not having downloaded the image, resulting
in the next docker tag instruction to fail because the image does not
exist, which will also halt the bootstrap process. This commit fixes
this issue.
Test Plan:
PASS: Execute bootstrap until the end without issues aio-sx/dc-subcloud
PASS: Execute prestage_images playbook without issues
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/897827 /opendev. org/starlingx/ ansible- playbooks/ commit/ 09f63930788ee23 2ba6c84cb8f11f2 3a633a4eb5
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 09f63930788ee23 2ba6c84cb8f11f2 3a633a4eb5
Author: Fabricio Henrique Ramos <email address hidden>
Date: Mon Oct 9 15:39:20 2023 -0300
Fix docker tag error when image has not been downloaded
Sometimes, the python docker client pull command will finish without
raising an error, but also not having downloaded the image, resulting
in the next docker tag instruction to fail because the image does not
exist, which will also halt the bootstrap process. This commit fixes
this issue.
Test Plan:
PASS: Execute bootstrap until the end without issues aio-sx/dc-subcloud
PASS: Execute prestage_images playbook without issues
Closes-Bug: 2038923 23ab429ff932974 da14e27af3c
Signed-off-by: Fabricio Henrique Ramos <email address hidden>
Change-Id: I372e8a3c720347