Skip to content

[patch] Downgrade kubernetes client <36 #350

Merged
terc1997 merged 2 commits into
stablefrom
molecule-auth
May 22, 2026
Merged

[patch] Downgrade kubernetes client <36 #350
terc1997 merged 2 commits into
stablefrom
molecule-auth

Conversation

@nehasangwai-ibm
Copy link
Copy Markdown
Contributor

@nehasangwai-ibm nehasangwai-ibm commented May 22, 2026

Issue:
The SPS builds were failing with the below error :

22 May, 00:23:11 debug    [bash] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to get client due to 403
22 May, 00:23:11 Reason: Forbidden
22 May, 00:23:11 HTTP response headers: HTTPHeaderDict({'Audit-Id': '185cd6c5-5dd4-4074-8ace-111d132dc2e2', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Strict-Transport-Security': 'max-age=31536000', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': 'd4e25838-8e23-4d2a-a0b9-a6a96e1b2976', 'X-Kubernetes-Pf-Prioritylevel-Uid': '2dbadecb-b7b7-4388-bd87-d98b28c628b9', 'Date': 'Thu, 21 May 2026 23:23:10 GMT', 'Content-Length': '189'})
22 May, 00:23:11 HTTP response body: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"forbidden: User \\"system:anonymous\\" cannot get path \\"/apis\\"\",\"reason\":\"Forbidden\",\"details\":{},\"code\":403}
22 May, 00:23:11
22 May, 00:23:11 Original traceback:
22 May, 00:23:11   File \"/usr/local/venvs/py311/lib64/python3.11/site-packages/kubernetes/dynamic/client.py\", line 55, in inner
22 May, 00:23:11     resp = func(self, *args, **kwargs)
22 May, 00:23:11            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 May, 00:23:11
22 May, 00:23:11   File \"/usr/local/venvs/py311/lib64/python3.11/site-packages/kubernetes/dynamic/client.py\", line 277, in request
22 May, 00:23:11     api_response = self.client.call_api(
22 May, 00:23:11                    ^^^^^^^^^^^^^^^^^^^^^
22 May, 00:23:11
22 May, 00:23:11   File \"/usr/local/venvs/py311/lib64/python3.11/site-packages/kubernetes/client/api_client.py\", line 374, in call_api
22 May, 00:23:11     return self.__call_api(resource_path, method,
22 May, 00:23:11            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 May, 00:23:11
22 May, 00:23:11   File \"/usr/local/venvs/py311/lib64/python3.11/site-packages/kubernetes/client/api_client.py\", line 191, in __call_api
22 May, 00:23:11     raise e
22 May, 00:23:11
22 May, 00:23:11   File \"/usr/local/venvs/py311/lib64/python3.11/site-packages/kubernetes/client/api_client.py\", line 184, in __call_api
22 May, 00:23:11     response_data = self.request(
22 May, 00:23:11                     ^^^^^^^^^^^^^
22 May, 00:23:11
22 May, 00:23:11   File \"/usr/local/venvs/py311/lib64/python3.11/site-packages/kubernetes/client/api_client.py\", line 400, in request
22 May, 00:23:11     return self.rest_client.GET(url,
22 May, 00:23:11            ^^^^^^^^^^^^^^^^^^^^^^^^^
22 May, 00:23:11
22 May, 00:23:11   File \"/usr/local/venvs/py311/lib64/python3.11/site-packages/kubernetes/client/rest.py\", line 246, in GET
22 May, 00:23:11     return self.request(\"GET\", url,
22 May, 00:23:11            ^^^^^^^^^^^^^^^^^^^^^^^^
22 May, 00:23:11
22 May, 00:23:11   File \"/usr/local/venvs/py311/lib64/python3.11/site-packages/kubernetes/client/rest.py\", line 232, in request
22 May, 00:23:11     raise ForbiddenException(http_resp=r)
22 May, 00:23:11 "}

More detailed explaination:
kubernetes-client/python#2582

Workaround applied : Downgraded the Kubernetes Client < 36

File: setup.py
'kubernetes<36'

Tested :

Reverted commit - 67c9a3e
File - python-release.yml ( removed -m "not openshift" )

image

@nehasangwai-ibm nehasangwai-ibm requested a review from durera May 22, 2026 13:13
@nehasangwai-ibm nehasangwai-ibm requested a review from a team as a code owner May 22, 2026 13:13
@terc1997 terc1997 added this pull request to the merge queue May 22, 2026
Merged via the queue into stable with commit a8fb3c5 May 22, 2026
3 checks passed
@terc1997 terc1997 deleted the molecule-auth branch May 22, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants