Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-55369

UPI playbooks failing due to recent update in ansible.utils and ansible.netcommon collections

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • Rejected
    • ShiftStack Sprint 270
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Both ansible.utils and ansible.netcommon has been recently updated:

      • ansible.netcommon:8.0.0
      • ansible.utils:6.0.0

      These versions are applying a warning message that has been shown on CI for some time:

      [DEPRECATION WARNING]: Use 'ansible.utils.next_nth_usable' module instead. This feature will be removed from ansible.netcommon in a release after 2024-01-01.

      The current playbooks are using next_nth_usable without specifying the collection: 

      1. https://github.com/openshift/installer/blob/main/upi/openstack/inventory.yaml#L57
      2. https://github.com/openshift/installer/blob/main/upi/openstack/inventory.yaml#L63
      3. https://github.com/openshift/installer/blob/main/upi/openstack/network.yaml#L23

      The fix would be to replace "next_nth_usable" by "ansible.utils.next_nth_usable".

              rdobosz Roman Dobosz
              rlobillo Ramón Lobillo
              None
              None
              Itshak Brown Itshak Brown
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: