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

UPI playbooks failing since ansible collections are installed from OSP repo

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • ShiftStack Sprint 272, ShiftStack Sprint 273, ShiftStack Sprint 274, ShiftStack Sprint 275, ShiftStack Sprint 277, ShiftStack Sprint 278
    • 6
    • -
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Since the ansible collections ansible-collection-ansible-netcommon and ansible-collection-community-general are installed from OSP repo as defined in https://github.com/openshift/installer/pull/8830, the 4.15 UPI playbooks are failing:
      
      network.yaml playbook -
      
      TASK [Create the cluster IPv4 subnet] ******************************************
      fatal: [localhost]: FAILED! => {"msg": "template error while templating string: Could not load \"ansible.utils.next_nth_usable\": \"cannot import name 'environmentfilter' from 'jinja2.filters' (/usr/lib/python3.9/site-packages/ansible/_vendor/jinja2/filters.py)\". String: {{ os_subnet_range | ansible.utils.next_nth_usable(10) }}. Could not load \"ansible.utils.next_nth_usable\": \"cannot import name 'environmentfilter' from 'jinja2.filters' (/usr/lib/python3.9/site-packages/ansible/_vendor/jinja2/filters.py)\""}
      

      Version-Release number of selected component (if applicable):

      Any 4.15.z version
      

      How reproducible:

      Always
      

      Steps to Reproduce:

          1. Get collections ansible-collection-ansible-netcommon and ansible-collection-community-general from OSP repo
          2. Run 4.15 UPI playbooks
      

      Actual results:

      The network.yaml playbook fails
      

      Expected results:

      Successful installation
      

      Additional info:

      https://github.com/openshift/installer/pull/8830 needs to be backported to 4.15. The automated cherry-pick to 4.15 failed so it requires manual intervention to fix the conflicts.
      Otherwise the next replacements need to be done:
       - ansible.utils.next_nth_usable -> next_nth_usable
       - ansible.utils.ipaddr -> ipaddr
      

              rdobosz Roman Dobosz
              juriarte@redhat.com Jon Uriarte
              None
              None
              Jon Uriarte Jon Uriarte
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: