Skip to content

Conversation

@mnietoji
Copy link
Contributor

@mnietoji mnietoji commented Dec 10, 2025

[nat64_appliance] Add support for downloading pre-built images

Introduce cifmw_nat64_appliance_image_url parameter to download
pre-built NAT64 images, with optional checksum verification support.

Signed-off-by: Miguel Angel Nieto Jimenez <[email protected]>

@mnietoji mnietoji force-pushed the nat64_download branch 2 times, most recently from 59a9790 to 18458d8 Compare December 10, 2025 09:02
@hjensas hjensas enabled auto-merge (rebase) December 10, 2025 09:35
hjensas
hjensas previously approved these changes Dec 10, 2025
Copy link
Contributor

@hjensas hjensas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

evallesp
evallesp previously approved these changes Dec 10, 2025
Copy link
Contributor

@evallesp evallesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Edit: This has a blocker, so not approving.

ansible.builtin.get_url:
url: "{{ cifmw_nat64_appliance_image_url }}"
dest: "{{ cifmw_nat64_appliance_workdir }}/nat64-appliance.qcow2"
checksum: "{{ cifmw_nat64_appliance_image_checksum | default(omit) }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might make a problem as default value is "" so the omit is not raised and the checksum fails because is not an expected format.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(non-blocking) suggestion: Could you add a new molecule scenariuo where that is cover? or a new molecule task that consumes getting an already created one?

Skip if not possible.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I think it will work as is - because the default for the get_url[1] module is "" for the checksum, and the condition in the module[2] is just if checksum ?

However, since there is a default setting it to "" in roles/nat64_appliance/defaults/main.yml I think the | default(omit) is "dead code"?

[1] https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/get_url_module.html#parameter-checksum
[2] https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/get_url.py#L565

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign amartyasinha for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/c5cc6858dbe04c2e89d7c1764cee8166

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 43m 28s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 28m 29s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 26m 30s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 24s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 11s
cifmw-pod-pre-commit FAILURE in 8m 25s
✔️ build-push-container-cifmw-client SUCCESS in 17m 10s
cifmw-molecule-nat64_appliance FAILURE in 17m 19s

@mnietoji mnietoji force-pushed the nat64_download branch 2 times, most recently from c344837 to 95f3db8 Compare December 10, 2025 13:43
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/63e9f9813a844401bad32864652163e5

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 55m 10s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 24m 35s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 40m 15s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 36s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 09s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 44s
✔️ build-push-container-cifmw-client SUCCESS in 20m 07s
cifmw-molecule-nat64_appliance FAILURE in 19m 54s

Introduce cifmw_nat64_appliance_image_url parameter to download
pre-built NAT64 images, with optional checksum verification support.

Signed-off-by: Miguel Angel Nieto Jimenez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants