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

Forklift operator fails on OpenShift 4.15

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done-Errata
    • Major
    • None
    • 4.15.0
    • Operator SDK
    • None
    • Moderate
    • No
    • Quality OLM Sprint 251, Rasputin OLM Sprint 252
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

    Description

      This is a clone of issue OCPBUGS-30095. The following is the description of the original issue:

      The Forklift operator is an ansible-operator. Even after upgrading its base image to registry.redhat.io/openshift4/ose-ansible-operator:v4.15.0-202402082307.p0.g08d08dd.assembly.stream.el8, it keeps failing on OpenShift 4.15 with:

       TASK [Setup controller config map] ********************************
      An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: too many values to unpack (expected 2)
      fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1709132503.686507-1101-140623711667405/AnsiballZ_k8s.py\", line 102, in <module>\n    ansiballz_main()\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1709132503.686507-1101-140623711667405/AnsiballZ_k8s.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1709132503.686507-1101-140623711667405/AnsiballZ_k8s.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.community.kubernetes.plugins.modules.k8s', init_globals=None, run_name='main_', alter_sys=True)\n  File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n    mod_name, mod_spec, pkg_name, script_name)\n  File \"/usr/lib64/pyt...
      -------------------------------------------------------------------------------

      {"level":"error","ts":"2024-02-28T15:01:44Z","logger":"logging_event_handler","msg":"","name":"forklift-controller","namespace":"openshift-mtv","gvk":"forklift.konveyor.io/v1beta1, Kind=ForkliftController","event_type":"runner_on_failed","job":"1903436280976775946","EventData.Task":"Setup controller config map","EventData.TaskArgs":"","EventData.FailedTaskPath":"/opt/ansible/roles/forkliftcontroller/tasks/main.yml:55","error":"[playbook task failed]","stacktrace":"github.com/operator-framework/operator-sdk/internal/ansible/events.loggingEventHandler.Handle\n\toperator-sdk/internal/ansible/events/log_events.go:111"}

      {"level":"error","ts":"2024-02-28T15:01:44Z","logger":"runner","msg":"\u001b[0;34mansible-playbook 2.9.27\u001b[0m\r\n\u001b[0;34m  config file = /etc/ansible/ansible.cfg\u001b[0m\r\n\u001b[0;34m  configured module search path = ['/usr/share/ansible/openshift']\u001b[0m\r\n\u001b[0;34m  ansible python module location = /usr/lib/python3.6/site-packages/ansible\u001b[0m\r\n\u001b[0;34m  executable location = /usr/bin/ansible-playbook\u001b[0m\r\n\u001b[0;34m  python version = 3.6.8 (default, Jan  5 2024, 08:58:17) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)]\u001b[0m\r\n\u001b[0;34mUsing /etc/ansible/ansible.cfg as config file\u001b[0m\r\n\u001b[0;34mSkipping callback 'actionable', as we already have a stdout callback.\u001b[0m\n\u001b[0;34mSkipping callback 'awx_display', as we already have a stdout callback.\u001b[0m\n\u001b[0;34mSkipping callback 'counter_enabled', as we already have a stdout callback.\u001b[0m\n\u001b[0;34mSkipping callback 'debug', as we already have a stdout callback.\u001b[0m\n\u001b[0;34m...
      ----- Ansible Task Status Event StdOut (forklift.konveyor.io/v1beta1, Kind=ForkliftController, forklift-controller/openshift-mtv) -----

      The operator works properly on OpenShift 4.14
      Seems related to upstream issue https://github.com/ansible-collections/kubernetes.core/issues/659
      We need a fix in order to enable the deployment of MTV on OpenShift 4.15

      Attachments

        Activity

          People

            rh-ee-bpalmer Bryce Palmer
            rhn-support-jfan Jia Fan
            Jia Fan Jia Fan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: