user-cont / conu

conu - python API for your containers
http://conu.readthedocs.io/en/latest/
MIT License
165 stars 33 forks source link

Test TestOpenshift.test_oc_s2i_template failed in CI #331

Closed TomasTomecek closed 5 years ago

TomasTomecek commented 5 years ago

https://ci.centos.org/job/user-cont-conu-pr/1314/console

19:09:13             logger.warning("Timeout: Request to service unsuccessful.")
19:09:13 >           raise ConuException("Timeout: Request to service unsuccessful.")
19:09:13 E           ConuException: Timeout: Request to service unsuccessful.
rpitonak commented 5 years ago

I went through logs and the problem is here:

11:04:19 --> Creating resources ...
11:04:19     secret "django-psql-example" created
11:04:19     service "django-psql-example" created
11:04:19     service "postgresql" created
11:04:19     error: no matches for kind "Route" in version "v1"
11:04:19     error: no matches for kind "ImageStream" in version "v1"
11:04:19     error: no matches for kind "BuildConfig" in version "v1"
11:04:19     error: no matches for kind "DeploymentConfig" in version "v1"
11:04:19     error: no matches for kind "DeploymentConfig" in version "v1"
11:04:19 --> Failed

Seems like there is an incompatible version of origin-clients in the test container. I tried it locally and it worked with:

oc v3.9.0+191fece
kubernetes v1.9.1+a0ce1bc657

In the container there is :

oc v3.11.0+8de5c34
kubernetes v1.10.0+d4cacc0
TomasTomecek commented 5 years ago

that sounds like a problem if our software doesn't work with the latest versions of oc and kube

I thought we were using the openshift python client: if not, the error makes perfect sense: k8s doesn't know what route/iss/dc are.

TomasTomecek commented 5 years ago

Looking at the test-req.sh script, we should also fetch oc 3.11, instead of 3.9.