Skip to content

Conversation

@holser
Copy link
Contributor

@holser holser commented Dec 17, 2025

These patches are required to switch ansible from 2.15 to 2.17.4

holser and others added 8 commits December 17, 2025 22:42
Convert _file_list to YAML to ensure loop receives a list type instead
of string. Ansible 2.16+ enforces strict type checking for loop values.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>
Wrap Jinja2 variable assignments in proper template syntax to ensure
conditionals evaluate to boolean values. Ansible 2.16+ requires
explicit boolean results in when clauses.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>
Use ternary filter to convert ansible.utils.ipaddr result to explicit
boolean. Ansible 2.16+ requires conditionals to evaluate to true/false,
not truthy/falsy values.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>
Add list filter to range() output to ensure loop receives a proper
list type. Ansible 2.16+ does not support range objects directly as
loop values.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>
Replace truthy check with explicit 'is not none' and length check.
Ansible 2.16+ requires conditionals to return boolean values, not
NoneType.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>
Remove regex replacement that converted list to string format. The
variable should remain as a list for proper loop iteration in
Ansible 2.16+.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>
Use default(false) and bool filter to ensure conditional returns
boolean even when variable is undefined. Ansible 2.16+ does not allow
NoneType in conditional evaluation.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>
Define cifmw_libvirt_manager_compute_* variables explicitly to prevent
template evaluation errors during fact gathering. When the scenario
overrides cifmw_libvirt_manager_configuration, Ansible evaluates Jinja2
expressions before va-common.yml variables are in scope.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 17, 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 tosky for approval. For more information see the Code Review Process.

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

Details 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

@holser holser requested a review from danpawlik December 17, 2025 22:14
@holser holser changed the title Ansible Core 2.17.14 (multiple) Ansible Core 2.17.14 Dec 17, 2025
@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/4af44bff5fa740d5ac7f125cbf748097

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 14m 13s
podified-multinode-edpm-deployment-crc FAILURE in 1h 12m 54s
cifmw-crc-podified-edpm-baremetal FAILURE in 31m 36s
cifmw-crc-podified-edpm-baremetal-minor-update FAILURE in 34m 19s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 34s
✔️ adoption-standalone-to-crc-ceph-provider SUCCESS in 2h 59m 19s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 36s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 36s
✔️ build-push-container-cifmw-client SUCCESS in 23m 59s
✔️ cifmw-molecule-config_drive SUCCESS in 4m 50s
✔️ cifmw-molecule-dnsmasq SUCCESS in 5m 34s
✔️ cifmw-molecule-install_ca SUCCESS in 4m 32s
✔️ cifmw-molecule-libvirt_manager SUCCESS in 39m 24s
✔️ cifmw-molecule-reproducer SUCCESS in 14m 14s
✔️ cifmw-molecule-sushy_emulator SUCCESS in 18m 42s

Copy link
Contributor

@danpawlik danpawlik left a comment

Choose a reason for hiding this comment

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

Since our Zuul is using 2.15.3, we would like to stay with that version, even when many of our playbooks uses nested ansible execution.

@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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