Skip to content

Conversation

@lmiccini
Copy link
Contributor

ansible.utils just released a new version that is incompatible with ansible-2.15 (ansible-collections/ansible.utils@7059201) and this results in:

    TASK [common : Show networks data for debugging (common role)] *****************
    task path: /home/dev-scripts/metal3-dev-env/vm-setup/roles/common/tasks/main.yml:42
    [WARNING]: Collection ansible.netcommon does not support Ansible version
    2.15.12
    [WARNING]: Collection ansible.utils does not support Ansible version 2.15.12
    redirecting (type: filter) ansible.builtin.nthhost to ansible.netcommon.nthhost
    redirecting (type: filter) ansible.builtin.nthhost to ansible.netcommon.nthhost

this is a proposal to pin these collections until we can upgrade to 2.16.

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 14, 2025
@openshift-ci
Copy link

openshift-ci bot commented Apr 14, 2025

Hi @lmiccini. Thanks for your PR.

I'm waiting for a openshift-metal3 member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@elfosardo
Copy link
Member

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 14, 2025
@elfosardo
Copy link
Member

/approve

@openshift-ci
Copy link

openshift-ci bot commented Apr 14, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elfosardo

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

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 14, 2025
ansible.utils just released a new version that is incompatible with ansible-2.15
(ansible-collections/ansible.utils@7059201) and this results in:

```
    TASK [common : Show networks data for debugging (common role)] *****************
    task path: /home/dev-scripts/metal3-dev-env/vm-setup/roles/common/tasks/main.yml:42
    [WARNING]: Collection ansible.netcommon does not support Ansible version
    2.15.12
    [WARNING]: Collection ansible.utils does not support Ansible version 2.15.12
    redirecting (type: filter) ansible.builtin.nthhost to ansible.netcommon.nthhost
    redirecting (type: filter) ansible.builtin.nthhost to ansible.netcommon.nthhost
```

this is a proposal to pin these collections until we can upgrade to
2.16.

Signed-off-by: Luca Miccini <lmiccini@redhat.com>
@elfosardo
Copy link
Member

upstream workaround metal3-io/metal3-dev-env#1517

ansible-galaxy collection install --upgrade ansible.netcommon ansible.posix ansible.utils community.general
# Let's temporarily pin these collections to the latest compatible with ansible-2.15
#ansible-galaxy collection install --upgrade ansible.netcommon ansible.posix ansible.utils community.general
ansible-galaxy collection install 'ansible.netcommon<=7.2.0' ansible.posix 'ansible.utils<=5.1.2' community.general
Copy link
Member

Choose a reason for hiding this comment

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

Did they actually broke the compatibility in 5.1.3? If not, I think we need to allow for patch releases and do <7.3.0 and <5.2.0 instead. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could do ansible.utils<6.0.0 and ansible.netcommon<8.0.0 as those are the ones bringing the breaking changes. I just went with the latest released (and tested) versions to be on the safe side.

Copy link
Member

Choose a reason for hiding this comment

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

My worry is about missing future bug fixes. Would you consider a follow-up once we merge this and unblock the CI?

@dtantsur
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 14, 2025
@elfosardo
Copy link
Member

/retest

1 similar comment
@elfosardo
Copy link
Member

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit b261be3 into openshift-metal3:master Apr 14, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants