From 395003def5ade8abd5ef791494d079f824a3aa25 Mon Sep 17 00:00:00 2001 From: mciecier Date: Tue, 26 Sep 2023 13:22:56 +0200 Subject: [PATCH] Override docker_image_tag variable in container-prep role docker_image_tag variable has to be overridden to point to dlrn_hash_newest instead of dlrn_hash. This has to be done in order to substitute tag in containers-prepare-parameter.yaml with newer tag in downstream update job. Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/888933 Change-Id: If79b38bf427f75143582c1db7e524123fb311e81 --- roles/container-prep/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/roles/container-prep/tasks/main.yml b/roles/container-prep/tasks/main.yml index 9addbf97b..7c675fd4c 100644 --- a/roles/container-prep/tasks/main.yml +++ b/roles/container-prep/tasks/main.yml @@ -42,6 +42,22 @@ tags: - undercloud-install +# docker_image_tag is set to the dlrn hash newest but uses the tag +# as a backup default +# container_build_id needs to be set to dlrn_hash_newest in downstream +# minor update job before update to pull correct container images from +# registry +- name: set container_build_id from dlrn_hash_newest + set_fact: + container_build_id: "{{ dlrn_hash_newest | default(dlrn_hash_tag_newest) }}" + cacheable: true + when: + - get_build_command is not defined + - override_docker_image_tag|default(false)|bool + tags: + - undercloud-upgrade + - overcloud-update + # overcloud_docker_image_tag is set to overcloud_dlrn_hash # I don't see where overcloud_dlrn_hash is set # http://codesearch.openstack.org/?q=overcloud_dlrn_hash&i=nope&files=&repos=