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

Scaleup playbook fails on RHEL9 workers to 4.13

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • 4.13
    • None
    • Important
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      OCP 4.13 is based on RHEL9
      Scaleup.yml playbook to add RHEL nodes fails when using RHEL9.

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

       

      How reproducible:

      Every time

      Steps to Reproduce:

      1. Deploy OCP 4.13
      2. Reploy RHEL9 host
      3. Run scaleup.yml to adopt RHEL9 host 
       

      Actual results:

      TASK [openshift_node : Install openshift packages] *****************************
      fatal: [rhel-node-1.lab.bewley.net]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ (openshift_node_packages + openshift_node_support_packages) | join(',') }}: {{ openshift_node_support_packages_base + openshift_node_support_packages_by_os_major_version[ansible_distribution_major_version] + openshift_node_support_packages_by_arch[ansible_architecture] }}: 'dict object' has no attribute '9'. 'dict object' has no attribute '9'. 

      Expected results:

      All pkgs installed.

      Additional info:

      This doc was followed https://docs.openshift.com/container-platform/4.13/machine_management/adding-rhel-compute.html however, RHEL9 and RHEL9 repositories were used. See OCPBUGS-18557

       

      This patch obviates the above error:

      — openshift-ansible/roles/openshift_node/defaults/main.yml.orig       2023-07-14 03:07:17.000000000 -0400
      +++ openshift-ansible/roles/openshift_node/defaults/main.yml    2023-09-01 20:06:53.986175752 -0400
      @@ -85,6 +85,7 @@
         "8":
           - openvswitch2.17
           - policycoreutils-python-utils
      +  "9": []

       openshift_conflict_packages:
         - openvswitch

       

              rh-ee-bbarbach Brent Barbachem
              dbewley@redhat.com Dale Bewley
              Gaoyun Pei Gaoyun Pei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: