Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #2334 not released #2351

Closed
KoblerS opened this issue Feb 17, 2025 · 2 comments
Closed

Issue #2334 not released #2351

KoblerS opened this issue Feb 17, 2025 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@KoblerS
Copy link

KoblerS commented Feb 17, 2025

What happened (please include outputs or screenshots):

The mentioned issue #2334 is still not released, which causes libraries such as https://github.com/ansible-collections/kubernetes.core/ to fail since this library uses versions above 24.1.0 (See https://github.com/ansible-collections/kubernetes.core/blob/main/requirements.txt)

I need urgently the latest bugfix released as it causes my Ansible playbooks to fail.

TASK [Webapp Operator] **************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "ERROR:root:exec: process returned 252. usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]\nTo see help text, you can run:\n\n  aws help\n  aws <command> help\n  aws <command> <subcommand> help\n\naws: error: the following arguments are required: command\nTraceback (most recent call last):\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/dynamic/client.py\", line 55, in inner\n    resp = func(self, *args, **kwargs)\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/dynamic/client.py\", line 273, in request\n    api_response = self.client.call_api(\n        path,\n    ...<11 lines>...\n        _request_timeout=params.get('_request_timeout')\n    )\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/api_client.py\", line 348, in call_api\n    return self.__call_api(resource_path, method,\n           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\n                           path_params, query_params, header_params,\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n    ...<2 lines>...\n                           _return_http_data_only, collection_formats,\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                           _preload_content, _request_timeout, _host)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/api_client.py\", line 180, in __call_api\n    response_data = self.request(\n        method, url, query_params=query_params, headers=header_params,\n        post_params=post_params, body=body,\n        _preload_content=_preload_content,\n        _request_timeout=_request_timeout)\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/api_client.py\", line 373, in request\n    return self.rest_client.GET(url,\n           ~~~~~~~~~~~~~~~~~~~~^^^^^\n                                query_params=query_params,\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^\n                                _preload_content=_preload_content,\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                                _request_timeout=_request_timeout,\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                                headers=headers)\n                                ^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/rest.py\", line 244, in GET\n    return self.request(\"GET\", url,\n           ~~~~~~~~~~~~^^^^^^^^^^^^\n                        headers=headers,\n                        ^^^^^^^^^^^^^^^^\n                        _preload_content=_preload_content,\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                        _request_timeout=_request_timeout,\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                        query_params=query_params)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/rest.py\", line 238, in request\n    raise ApiException(http_resp=r)\nkubernetes.client.exceptions.ApiException: (403)\nReason: Forbidden\nHTTP response headers: HTTPHeaderDict({'Audit-Id': '7a822efb-b5cd-4754-a1a5-3f8ae79c335a', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '961196be-abd5-4547-9917-c5308bc12c77', 'X-Kubernetes-Pf-Prioritylevel-Uid': '79ca5c6d-e454-41a8-867c-68b070930f4f', 'Date': 'Mon, 17 Feb 2025 12:47:28 GMT', 'Content-Length': '189'})\nHTTP response body: b'{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"forbidden: User \\\\\"system:anonymous\\\\\" cannot get path \\\\\"/apis\\\\\"\",\"reason\":\"Forbidden\",\"details\":{},\"code\":403}\\n'\n\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/Users/redacted/.ansible/tmp/ansible-tmp-1739796438.86654-61540-173797983090023/AnsiballZ_k8s.py\", line 107, in <module>\n    _ansiballz_main()\n    ~~~~~~~~~~~~~~~^^\n  File \"/Users/redacted/.ansible/tmp/ansible-tmp-1739796438.86654-61540-173797983090023/AnsiballZ_k8s.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/Users/redacted/.ansible/tmp/ansible-tmp-1739796438.86654-61540-173797983090023/AnsiballZ_k8s.py\", line 47, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.kubernetes.core.plugins.modules.k8s', init_globals=dict(_module_fqn='ansible_collections.kubernetes.core.plugins.modules.k8s', _modlib_path=modlib_path),\n    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                     run_name='__main__', alter_sys=True)\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\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 \"/var/folders/m4/_s8t2dj92lnfmyxsw1z2m8f4hjb538/T/ansible_kubernetes.core.k8s_payload_947md783/ansible_kubernetes.core.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s.py\", line 509, in <module>\n  File \"/var/folders/m4/_s8t2dj92lnfmyxsw1z2m8f4hjb538/T/ansible_kubernetes.core.k8s_payload_947md783/ansible_kubernetes.core.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/modules/k8s.py\", line 503, in main\n  File \"/var/folders/m4/_s8t2dj92lnfmyxsw1z2m8f4hjb538/T/ansible_kubernetes.core.k8s_payload_947md783/ansible_kubernetes.core.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/k8s/runner.py\", line 88, in run_module\n  File \"/var/folders/m4/_s8t2dj92lnfmyxsw1z2m8f4hjb538/T/ansible_kubernetes.core.k8s_payload_947md783/ansible_kubernetes.core.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/k8s/client.py\", line 352, in get_api_client\n  File \"/var/folders/m4/_s8t2dj92lnfmyxsw1z2m8f4hjb538/T/ansible_kubernetes.core.k8s_payload_947md783/ansible_kubernetes.core.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/k8s/client.py\", line 246, in wrapper\n  File \"/var/folders/m4/_s8t2dj92lnfmyxsw1z2m8f4hjb538/T/ansible_kubernetes.core.k8s_payload_947md783/ansible_kubernetes.core.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/k8s/client.py\", line 259, in create_api_client\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/dynamic/client.py\", line 84, in __init__\n    self.__discoverer = discoverer(self, cache_file)\n                        ~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n  File \"/var/folders/m4/_s8t2dj92lnfmyxsw1z2m8f4hjb538/T/ansible_kubernetes.core.k8s_payload_947md783/ansible_kubernetes.core.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/client/discovery.py\", line 190, in __init__\n  File \"/var/folders/m4/_s8t2dj92lnfmyxsw1z2m8f4hjb538/T/ansible_kubernetes.core.k8s_payload_947md783/ansible_kubernetes.core.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/client/discovery.py\", line 45, in __init__\n  File \"/var/folders/m4/_s8t2dj92lnfmyxsw1z2m8f4hjb538/T/ansible_kubernetes.core.k8s_payload_947md783/ansible_kubernetes.core.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/client/discovery.py\", line 93, in __init_cache\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/dynamic/discovery.py\", line 232, in discover\n    self.__resources = self.parse_api_groups(request_resources=False)\n                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/dynamic/discovery.py\", line 118, in parse_api_groups\n    groups_response = self.client.request('GET', '/{}'.format(DISCOVERY_PREFIX)).groups\n                      ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/dynamic/client.py\", line 57, in inner\n    raise api_exception(e)\nkubernetes.dynamic.exceptions.ForbiddenError: 403\nReason: Forbidden\nHTTP response headers: HTTPHeaderDict({'Audit-Id': '7a822efb-b5cd-4754-a1a5-3f8ae79c335a', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '961196be-abd5-4547-9917-c5308bc12c77', 'X-Kubernetes-Pf-Prioritylevel-Uid': '79ca5c6d-e454-41a8-867c-68b070930f4f', 'Date': 'Mon, 17 Feb 2025 12:47:28 GMT', 'Content-Length': '189'})\nHTTP response body: b'{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"forbidden: User \\\\\"system:anonymous\\\\\" cannot get path \\\\\"/apis\\\\\"\",\"reason\":\"Forbidden\",\"details\":{},\"code\":403}\\n'\nOriginal traceback: \n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/dynamic/client.py\", line 55, in inner\n    resp = func(self, *args, **kwargs)\n\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/dynamic/client.py\", line 273, in request\n    api_response = self.client.call_api(\n        path,\n    ...<11 lines>...\n        _request_timeout=params.get('_request_timeout')\n    )\n\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/api_client.py\", line 348, in call_api\n    return self.__call_api(resource_path, method,\n           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\n                           path_params, query_params, header_params,\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n    ...<2 lines>...\n                           _return_http_data_only, collection_formats,\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                           _preload_content, _request_timeout, _host)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/api_client.py\", line 180, in __call_api\n    response_data = self.request(\n        method, url, query_params=query_params, headers=header_params,\n        post_params=post_params, body=body,\n        _preload_content=_preload_content,\n        _request_timeout=_request_timeout)\n\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/api_client.py\", line 373, in request\n    return self.rest_client.GET(url,\n           ~~~~~~~~~~~~~~~~~~~~^^^^^\n                                query_params=query_params,\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^\n                                _preload_content=_preload_content,\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                                _request_timeout=_request_timeout,\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                                headers=headers)\n                                ^^^^^^^^^^^^^^^^\n\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/rest.py\", line 244, in GET\n    return self.request(\"GET\", url,\n           ~~~~~~~~~~~~^^^^^^^^^^^^\n                        headers=headers,\n                        ^^^^^^^^^^^^^^^^\n                        _preload_content=_preload_content,\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                        _request_timeout=_request_timeout,\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                        query_params=query_params)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n  File \"/opt/homebrew/Cellar/ansible/11.2.0/libexec/lib/python3.13/site-packages/kubernetes/client/rest.py\", line 238, in request\n    raise ApiException(http_resp=r)\n\n", "module_stdout": "", "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error", "rc": 1}
@KoblerS KoblerS added the kind/bug Categorizes issue or PR as related to a bug. label Feb 17, 2025
@roycaihw
Copy link
Member

This is released in https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md#v3201. Please update the version and check again.

/close

@k8s-ci-robot
Copy link
Contributor

@roycaihw: Closing this issue.

In response to this:

This is released in https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md#v3201. Please update the version and check again.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants