You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
I originally reported this last year here: #234
Some work was done to address it - PR is here: #237
However, I still do not see it work; I'm getting the same error as before.
ISSUE TYPE
Bug Report
COMPONENT NAME
k8s
CONFIGURATION
(no output from `ansible-config dump --only-changed`)
OS / ENVIRONMENT
RHEL 8
K8S ENVIRONMENT
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T16:31:21Z", GoVersion:"go1.16.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:50:46Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.21) and server (1.18) exceeds the supported minor version skew of +/-1
EXPECTED RESULTS
See the PR I linked above that shows what is now expected.
ACTUAL RESULTS
Same error as before.
STEPS TO REPRODUCE
I am going to show you the output of four commands I run - the first shows you my ansible version, the second shows you my collection versions from ansible-galaxy output, the third shows you the content of my test script with the replication ansible playbook, the fourth shows you the ansible run showing the error I get.
$ ansible-playbook can-i.yaml
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] *********************************************************************************************************************
TASK [can_i create clusterroles] *****************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "error": 405, "msg": "Failed to retrieve requested object: b'{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"the server does not allow this method on the requested resource\",\"reason\":\"MethodNotAllowed\",\"details\":{},\"code\":405}\\n'", "reason": "Method Not Allowed", "status": 405}
...ignoring
TASK [debug] *************************************************************************************************************************
ok: [localhost] => {
"msg": "TEST={'msg': 'Failed to retrieve requested object: b\\'{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"the server does not allow this method on the requested resource\",\"reason\":\"MethodNotAllowed\",\"details\":{},\"code\":405}\\\\n\\'', 'error': 405, 'status': 405, 'reason': 'Method Not Allowed', 'failed': True, 'changed': False}"
}
PLAY RECAP ***************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
SUMMARY
I originally reported this last year here: #234
Some work was done to address it - PR is here: #237
However, I still do not see it work; I'm getting the same error as before.
ISSUE TYPE
COMPONENT NAME
k8s
CONFIGURATION
OS / ENVIRONMENT
RHEL 8
K8S ENVIRONMENT
EXPECTED RESULTS
See the PR I linked above that shows what is now expected.
ACTUAL RESULTS
Same error as before.
STEPS TO REPRODUCE
I am going to show you the output of four commands I run - the first shows you my ansible version, the second shows you my collection versions from ansible-galaxy output, the third shows you the content of my test script with the replication ansible playbook, the fourth shows you the ansible run showing the error I get.
And, for the record, I can create cluster roles:
The text was updated successfully, but these errors were encountered: