summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Boucher <fboucher@redhat.com>2020-05-18 15:46:52 +0200
committerFabien Boucher <fboucher@redhat.com>2020-05-19 13:05:22 +0000
commit948c11166cc354c075561da740c91df10495ce23 (patch)
tree38e6504cc06d04c082cba6e0c3c4ec679d6b1f6f
parentd8b20e37f2bc15697d996e54688b65de8a9cef94 (diff)
discover-rawhide: set fact image
This avoid a failure at xz extract tasks as the image name here is not known in advance. Recently the download task download in the cache directory using the name from the URL. This patch makes sure the discover-rawhide task set the image fact (image name). Change-Id: Ie3a4d1a5ced980d93edcb26f9b30c480494ff27e
-rw-r--r--nodepool/virt_images/cloud-fedora-rawhide.yaml1
-rw-r--r--nodepool/virt_images/roles/discover-rawhide/tasks/main.yaml2
2 files changed, 2 insertions, 1 deletions
diff --git a/nodepool/virt_images/cloud-fedora-rawhide.yaml b/nodepool/virt_images/cloud-fedora-rawhide.yaml
index 46aae3d5..ffc09a06 100644
--- a/nodepool/virt_images/cloud-fedora-rawhide.yaml
+++ b/nodepool/virt_images/cloud-fedora-rawhide.yaml
@@ -2,7 +2,6 @@
- name: Build a fedora cloud image suitable for Zuul
hosts: localhost
vars:
- image: Fedora-Cloud-Base-Rawhide.x86_64.qcow2
memsize: 1024
# TODO: Remove permissive when fixed https://bugzilla.redhat.com/show_bug.cgi?id=1813388
selinux_mode: permissive
diff --git a/nodepool/virt_images/roles/discover-rawhide/tasks/main.yaml b/nodepool/virt_images/roles/discover-rawhide/tasks/main.yaml
index 51e47c84..eb2e7b51 100644
--- a/nodepool/virt_images/roles/discover-rawhide/tasks/main.yaml
+++ b/nodepool/virt_images/roles/discover-rawhide/tasks/main.yaml
@@ -38,8 +38,10 @@
- set_fact:
image_url: "{{ base_url }}{{ get_qcow_image_name.stdout }}"
image_checksum: "sha256:{{ get_checksum.stdout }}"
+ image: "{{ get_qcow_image_name.stdout }}"
- debug:
msg: |
+ Discovered image name: {{ image }}
Discovered image_url: {{ image_url }}
Discovered image_checksum: {{ image_checksum }}