Closed psturc closed 6 years ago
@shawn-hurley do you have some thoughts on this?
I am seeing the same behavior. I am wondering if a new version of the python client is needed. I think that the python client is attempting to hit an old pod execution endpoint. I will dig into this and try and get a fix in. @psturc I will keep you updated on this bug as I dig into it.
@fabianvf @djzager I might need your help.
So I found that it appears according to the swagger spec it appears that the Method that is expected is a GET request. The python kubernetes client v3.0 appears to attempt a post request at line 4059. I think that we need to resolve this mismatch for this to be able to connect to the running pod and complete the job.
@psturc I was testing with our environment and was seeing the same thing you were. I am going to try and see if this is the same issue that you are seeing.
I have also verified that this would occur with the version of k8s that you are using with openshift.
@shawn-hurley the method you linked to from the swagger spec maps to connect_get_namespaced_pod_exec
, there are other methods on that path with corresponding methods in the client-python's core_v1_api but it isn't clear to me yet what needs to be reconciled.
The swagger spec only has a endpoint that accepts get methods.
The client python has a get and post, currently, the apb tool is using the connect_post_namespaced_pod_exec
. Because the swagger spec does not have a defined endpoint that I can see for a POST request I think this is why the apb tool cannot connect to the pod.
@shawn-hurley is this not the POST endpoint? https://github.com/kubernetes/kubernetes/blob/release-1.8/api/swagger-spec/v1.json#L10241
I think you nad @djzager are correct. I think I am wrong. This might be some other error then.
Attempting to fix in PR https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/pull/196
Hi, I can't get over the issue with gathering test results when running
apb test
Log from pod
The pod just ends after 5 minutes (as defined in
/usr/bin/test-retrieval-init
), because the test results can't be gathered from hereLog from terminal
When I printed out the ApiException, it says
How to reproduce this:
make
apb test
Environment
macOS High Sierra 10.13.1
oc v3.7.0+7ed6862 kubernetes v1.7.6+a08f5eeb62 features: Basic-Auth
Server https://192.168.37.1:8443 openshift v3.7.0+7ed6862 kubernetes v1.7.6+a08f5eeb62