When creating ServiceMeshControlPlane the Kiali CR stays stuck in Reconciliation/Initialization stage and kiali resources never get created

Solution In Progress - Updated -

Issue

After creating a ServiceMeshControlPlane everything gets created but the Kiali resources. The Kiali CR is created but is stuck with:

  - ansibleResult:
      changed: 1
      completion: 2024-06-20T09:29:08.365887
      failures: 1
      ok: 15
      skipped: 2
    lastTransitionTime: "2024-06-20T09:29:08Z"
    message: |-
      MODULE FAILURE
      See stdout/stderr for the exact error
    reason: Failed
    status: "True"
    type: Failure
  deployment: {}
  progress:
    duration: "0:00:01"
    message: 1. Initializing
  specVersion: v1.73

And kiali-operator keeps failing with error:

2024-06-20T09:29:08.900530986Z fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1718875745.6031024-20427-262539599981441/AnsiballZ_k8s_cluster_info.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1718875745.6031024-20427-262539599981441/AnsiballZ_k8s_cluster_info.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1718875745.6031024-20427-262539599981441/AnsiballZ_k8s_cluster_info.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.kubernetes.core.plugins.modules.k8s_cluster_info', 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/python3.6/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_k8s_cluster_info_payload_wuqeci5w/ansible_k8s_cluster_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_cluster_info.py\", line 213, in <module>\n  File \"/tmp/ansible_k8s_cluster_info_payload_wuqeci5w/ansible_k8s_cluster_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_cluster_info.py\", line 209, in main\n  File \"/tmp/ansible_k8s_cluster_info_payload_wuqeci5w/ansible_k8s_cluster_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_cluster_info.py\", line 166, in execute_module\n  File \"/usr/lib/python3.6/site-packages/kubernetes/dynamic/discovery.py\", line 307, in __iter__\n    prefix, group, version, rg.preferred)\n  File \"/tmp/ansible_k8s_cluster_info_payload_wuqeci5w/ansible_k8s_cluster_info_payload.zip/ansible_collections/kubernetes/core/plugins/An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: too many values to unpack (expected 2)
2024-06-20T09:29:08.900530986Z fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1718875745.6031024-20427-262539599981441/AnsiballZ_k8s_cluster_info.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1718875745.6031024-20427-262539599981441/AnsiballZ_k8s_cluster_info.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1718875745.6031024-20427-262539599981441/AnsiballZ_k8s_cluster_info.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.kubernetes.core.plugins.modules.k8s_cluster_info', 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/python3.6/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_k8s_cluster_info_payload_wuqeci5w/ansible_k8s_cluster_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_cluster_info.py\", line 213, in <module>\n  File \"/tmp/ansible_k8s_cluster_info_payload_wuqeci5w/ansible_k8s_cluster_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_cluster_info.py\", line 209, in main\n  File \"/tmp/ansible_k8s_cluster_info_payload_wuqeci5w/ansible_k8s_cluster_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_cluster_info.py\", line 166, in execute_module\n  File \"/usr/lib/python3.6/site-packages/kubernetes/dynamic/discovery.py\", line 307, in __iter__\n    prefix, group, version, rg.preferred)\n  File \"/tmp/ansible_k8s_cluster_info_payload_wuqeci5w/ansible_k8s_cluster_info_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/client/discovery.py\", line 104, in get_resources_for_api_version\nValueError: too many values to unpack (expected 2)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Environment

  • Red Hat OpenShift Container Platform 4.12+
  • Red Hat OpenShift Service Mesh v2.4+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content