-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
5
-
False
-
-
False
-
ToDo
-
-
-
0
-
0.000
-
Very Likely
-
0
-
None
-
Unset
-
Unknown
Ansible playbook is failing with error when tests are ran with CNV installed.
{"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/amos/.ansible/tmp/ansible-tmp-1723005866.0753262-1748048-277119722886933/AnsiballZ_k8s_info.py\", line 100, in <module>\n _ansiballz_main()\n File \"/home/amos/.ansible/tmp/ansible-tmp-1723005866.0753262-1748048-277119722886933/AnsiballZ_k8s_info.py\", line 92, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/amos/.ansible/tmp/ansible-tmp-1723005866.0753262-1748048-277119722886933/AnsiballZ_k8s_info.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.kubernetes.core.plugins.modules.k8s_info', init_globals=dict(_module_fqn='ansible_collections.kubernetes.core.plugins.modules.k8s_info', _modlib_path=modlib_path),\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_info.py\", line 206, in <module>\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_info.py\", line 202, in main\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_info.py\", line 173, in execute_module\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/common.py\", line 312, in kubernetes_facts\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/common.py\", line 301, in find_resource\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 230, in get\n results = self.search(**kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 275, in search\n results = self.__search(self.__build_search(**kwargs), self.__resources, [])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 317, in __search\n matches.extend(self.__search([key] + parts[1:], resources, reqParams))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 303, in __search\n return self.__search(parts[1:], resourcePart, reqParams + [part] )\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 317, in __search\n matches.extend(self.__search([key] + parts[1:], resources, reqParams))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 303, in __search\n return self.__search(parts[1:], resourcePart, reqParams + [part] )\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 295, in __search\n resourcePart.resources = self.get_resources_for_api_version(prefix,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 193, in get_resources_for_api_version\n resource, name = subresource['name'].split('/')\n ^^^^^^^^^^^^^^\nValueError: {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/amos/.ansible/tmp/ansible-tmp-1723005866.0753262-1748048-277119722886933/AnsiballZ_k8s_info.py\", line 100, in <module>\n _ansiballz_main()\n File \"/home/amos/.ansible/tmp/ansible-tmp-1723005866.0753262-1748048-277119722886933/AnsiballZ_k8s_info.py\", line 92, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/amos/.ansible/tmp/ansible-tmp-1723005866.0753262-1748048-277119722886933/AnsiballZ_k8s_info.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.kubernetes.core.plugins.modules.k8s_info', init_globals=dict(_module_fqn='ansible_collections.kubernetes.core.plugins.modules.k8s_info', _modlib_path=modlib_path),\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_info.py\", line 206, in <module>\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_info.py\", line 202, in main\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s_info.py\", line 173, in execute_module\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/common.py\", line 312, in kubernetes_facts\n File \"/tmp/ansible_k8s_info_payload_v0vj76bb/ansible_k8s_info_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/common.py\", line 301, in find_resource\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 230, in get\n results = self.search(**kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 275, in search\n results = self.__search(self.__build_search(**kwargs), self.__resources, [])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 317, in __search\n matches.extend(self.__search([key] + parts[1:], resources, reqParams))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 303, in __search\n return self.__search(parts[1:], resourcePart, reqParams + [part] )\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 317, in __search\n matches.extend(self.__search([key] + parts[1:], resources, reqParams))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 303, in __search\n return self.__search(parts[1:], resourcePart, reqParams + [part] )\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 295, in __search\n resourcePart.resources = self.get_resources_for_api_version(prefix,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/amos/git/r/oadp-apps-deployer/venv/lib64/python3.11/site-packages/openshift/dynamic/discovery.py\", line 193, in get_resources_for_api_version\n resource, name = subresource['name'].split('/')\n ^^^^^^^^^^^^^^\nValueError: too many values to unpack (expected 2)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} (expected 2)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
- mentioned on