Skip to content

Make edpm-ansible ansible 2.19 compatible#993

Merged
openshift-merge-bot[bot] merged 4 commits into
openstack-k8s-operators:mainfrom
rabi:conditional
Aug 11, 2025
Merged

Make edpm-ansible ansible 2.19 compatible#993
openshift-merge-bot[bot] merged 4 commits into
openstack-k8s-operators:mainfrom
rabi:conditional

Conversation

@rabi

@rabi rabi commented Jul 29, 2025

Copy link
Copy Markdown
Contributor

@openshift-ci openshift-ci Bot requested review from jpodivin and olliewalsh July 29, 2025 04:33
@softwarefactory-project-zuul

Copy link
Copy Markdown

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/fe73e368b5d14fbd8cf6dcab8d4b24c6

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 55m 48s
podified-multinode-edpm-deployment-crc FAILURE in 1h 34m 39s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 40m 32s
✔️ noop SUCCESS in 0s
edpm-ansible-tempest-multinode FAILURE in 1h 37m 57s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 8m 25s

@rabi

rabi commented Jul 29, 2025

Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

Copy link
Copy Markdown

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/19b4cc75660b49ba8edf6cf3e858d9ad

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 02m 23s
podified-multinode-edpm-deployment-crc FAILURE in 1h 37m 54s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 44m 50s
✔️ noop SUCCESS in 0s
edpm-ansible-tempest-multinode FAILURE in 1h 45m 39s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 8m 34s

@rabi

rabi commented Jul 29, 2025

Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

Copy link
Copy Markdown

This change depends on a change that failed to merge.

Change openstack-k8s-operators/openstack-operator#1547 is needed.

@rabi

rabi commented Jul 29, 2025

Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul

Copy link
Copy Markdown

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/01484197dc524220a01b6b17a87715dd

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 11m 26s
podified-multinode-edpm-deployment-crc FAILURE in 1h 35m 09s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 49m 00s
✔️ noop SUCCESS in 0s
edpm-ansible-tempest-multinode FAILURE in 1h 37m 19s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 8m 47s

@softwarefactory-project-zuul

Copy link
Copy Markdown

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/876de4103a4146669d915a6c7b7cb754

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 18m 30s
podified-multinode-edpm-deployment-crc FAILURE in 1h 34m 58s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 39m 51s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 28s
✔️ noop SUCCESS in 0s
edpm-ansible-tempest-multinode FAILURE in 1h 38m 46s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 7m 24s
✔️ edpm-ansible-molecule-edpm_update SUCCESS in 6m 54s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 03m 35s

@SeanMooney SeanMooney left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the hugpage change looks corect but please update the PR title to refect what your actully dooing

which is refactoring the playbooks for ansible 2.19.0 compatiablity

_nonconfig_hugepages: {}
_hugepages_modification: false
when: edpm_kernel_hugepages | length
when: edpm_kernel_hugepages | default({}) | length > 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK this is the actual change to the huge page

the other 3 commits in this pr are unrealted to the subject of the PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

All commits are related to the jira linked. I'll update the PR when everything is fixed for the jira.

@softwarefactory-project-zuul

Copy link
Copy Markdown

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/7e8222a276dc4f168d55bd21538c963a

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 18m 37s
podified-multinode-edpm-deployment-crc FAILURE in 1h 34m 05s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 41m 29s
✔️ noop SUCCESS in 0s
edpm-ansible-tempest-multinode FAILURE in 1h 39m 21s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 7m 14s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 04m 47s

@softwarefactory-project-zuul

Copy link
Copy Markdown

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/70a93755a71d49a1965e0589002106f2

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 19m 23s
podified-multinode-edpm-deployment-crc FAILURE in 1h 35m 46s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 41m 05s
✔️ noop SUCCESS in 0s
edpm-ansible-tempest-multinode FAILURE in 1h 39m 18s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 7m 03s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 04m 09s

@softwarefactory-project-zuul

Copy link
Copy Markdown

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/6395c52d8ccf450b919c3ce0ae903b98

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 21m 26s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 07m 12s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 29m 10s
✔️ noop SUCCESS in 0s
✔️ edpm-ansible-tempest-multinode SUCCESS in 1h 33m 56s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 6m 59s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 04m 01s

@rabi rabi force-pushed the conditional branch 2 times, most recently from 2e9245d to c2cd284 Compare July 31, 2025 09:12
@softwarefactory-project-zuul

Copy link
Copy Markdown

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/9df6f451cc014792882a7d0ae08e4584

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 40m 44s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 15m 19s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 38m 10s
✔️ noop SUCCESS in 0s
✔️ edpm-ansible-tempest-multinode SUCCESS in 1h 41m 20s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 7m 21s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 24m 00s

@softwarefactory-project-zuul

Copy link
Copy Markdown

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/7b49d8272b054436a2423bbfd70f7ffa

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 37m 59s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 14m 33s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 28m 28s
✔️ noop SUCCESS in 0s
✔️ edpm-ansible-tempest-multinode SUCCESS in 1h 41m 28s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 7m 15s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 22m 16s

@rabi rabi force-pushed the conditional branch 2 times, most recently from 0a92bb5 to c3d6c3c Compare August 1, 2025 06:15
@rabi rabi changed the title Fix conditional in hugepages.yaml Make edpm-ansible ansible 2.19 compatible Aug 1, 2025
@softwarefactory-project-zuul

Copy link
Copy Markdown

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/d1c35f9c7fd349968ef736a6eff443cd

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 56m 00s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 12m 02s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 26m 29s
✔️ noop SUCCESS in 0s
✔️ edpm-ansible-tempest-multinode SUCCESS in 1h 30m 22s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 7m 10s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 40m 57s

rabi added 2 commits August 1, 2025 15:07
Non boolean conditionals are not allowed in ansible 2.19.
Fix private var access from namespace not allowed

Depends-On: openstack-k8s-operators/openstack-operator#1547
Depends-On: openstack-k8s-operators/ci-framework#3168
Signed-off-by: rabi <ramishra@redhat.com>
This reverts commit 4d7155e.

Signed-off-by: rabi <ramishra@redhat.com>
@rabi rabi force-pushed the conditional branch 3 times, most recently from 48dfe3a to 674a0c1 Compare August 1, 2025 11:17
@softwarefactory-project-zuul

Copy link
Copy Markdown

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/d35001c2b964455da1bef976c411c261

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 47m 16s
podified-multinode-edpm-deployment-crc FAILURE in 1h 34m 49s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 48m 59s
✔️ noop SUCCESS in 0s
edpm-ansible-tempest-multinode FAILURE in 1h 39m 09s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 22m 58s
✔️ edpm-ansible-molecule-edpm_libvirt SUCCESS in 8m 01s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 29m 00s

Comment thread roles/edpm_ovn/tasks/cleanup.yml Outdated
when:
- not edpm_enable_chassis_extport | bool
- cleanup_ovn_cms_options.rc == 0
- cleanup_ovn_cms_options_stdout is defined

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are these lines needed? It should always be defined when "cleanup_ovn_cms_options.rc == 0" shouldn't it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah it's kind of redundant but does not hurt, better would have been to check for empty string.

("'ssh_host_key_ecdsa_public' not in ansible_facts")
- ('ssh_host_key_rsa_public' not in ansible_facts) or
('ssh_host_key_ed25519_public' not in ansible_facts) or
('ssh_host_key_ecdsa_public' not in ansible_facts)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this fixing a separate bug?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, this is broken conditional in 2.19.

Conditional result was "'ssh_host_key_rsa_public' not in [...]" of type 'str', which evaluates to True. Conditionals must have a boolean result.

Broken conditionals can be temporarily allowed with the ALLOW_BROKEN_CONDITIONALS configuration option.

rabi added 2 commits August 11, 2025 10:32
Signed-off-by: rabi <ramishra@redhat.com>
With ansible 2.19 jinja templating changes, data that
can contain templates will require explicit trust via
trust_as_template to be allowed to render.

Signed-off-by: rabi <ramishra@redhat.com>
@openshift-ci

openshift-ci Bot commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rabi, slagle

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

The pull request process is described 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

@openshift-merge-bot openshift-merge-bot Bot merged commit f1e09b5 into openstack-k8s-operators:main Aug 11, 2025
34 checks passed
@rabi

rabi commented Aug 11, 2025

Copy link
Copy Markdown
Contributor Author

Hmm.. we need to merge the dependan-on PRs as well, else the CI would be broken I think.

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