-
Notifications
You must be signed in to change notification settings - Fork 72
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
io.kubernetes.client.openapi.models.V1Deployment Class not found exception #134
Comments
I Have a similar problem, after I updated my AKS cluster from 1.14 to 1.15. Full error
|
Experiencing the same problem... ERROR: ERROR: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment in 'reader', line 1, column 1:
hudson.remoting.ProxyException: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment in 'reader', line 1, column 1:
|
Experiencing the same problem: Starting Kubernetes deployment hudson.remoting.ProxyException: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment
Caused by: hudson.remoting.ProxyException: org.yaml.snakeyaml.error.YAMLException: Class not found: io.kubernetes.client.openapi.models.V1Deployment |
I have the same problem running Kubernetes v1.18.3. I'm running Jenkins v2.235.1 and all my plugins are up to date. The workaround I've found for now is to downgrade Jackson 2 API to v2.10.3 and to downgrade Snakeyaml API to v1.26.2. If those 2 plugins are updated to their respective latest versions, the error message comes back. |
It worked for me too, I downgraded manually those plugins versions and the pipeline run successfully! Thanks! |
Any another workaround? |
Downgrading plugins worked for me too.
all works fine! |
this issue been resolved?
|
Attempt to address the issue as per: jenkinsci/kubernetes-cd-plugin#134
I downgraded the -
But after downgrade now I am stuck with following error (any inputs will be highly appreciated)
|
Try downgrading your Snakeyaml to 1.26.2. I'm actually not sure which version of those 2 plugins introduced the breaking change, I roughly knew the date I had those installed for the first time and reverted to those versions. |
Thanks. After all trail and errors , exact solution of yours worked for me. |
Has anyone been able to find the root cause for this? I'm the maintainer of another Jenkins plugin (vrealize-automation-8) that suffers from the exact same issue. I'd love to find a way to fix my code instead of having users downgrade plugins. |
Still same issue. Error mentioned below.
|
hello ~ |
I am using Ubuntu. Standalone setup on ec2
|
I'm still have the same issue, I'm using the latest version of Jenkins, and both plugins Kubernetes and Jakson. This issue is happening for so long time, and downgrade Jakson mess up all Jenkins environment.
|
seems not related to os ,good news for me. |
I seem to face similar issues. I'm using jenkins from docker image jenkins/jenkins:lts ERROR: ERROR: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Service; exception=Class not found: io.kubernetes.client.openapi.models.V1Service hudson.remoting.ProxyException: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Service; exception=Class not found: io.kubernetes.client.openapi.models.V1Service at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:335) Caused by: hudson.remoting.ProxyException: org.yaml.snakeyaml.error.YAMLException: Class not found: io.kubernetes.client.openapi.models.V1Service |
Any update ? |
same here |
I've changed the plugin, I started to use this one https://plugins.jenkins.io/kubernetes-cli simple to integrate and works fine ;) |
can you maybe share your git repo so I can have a look into jenkinsfile? |
Are there any solutions for this issue? |
Jenkins 2.277.1
Issue
still the same trouble...(( |
I have found the solution to this problem. I have tried many times and it's working perfectly. Kubernetes CD plugin should be Version 1.0. No need to downgrade other plugins. |
Hey @braunly thanks for the solution!
Please could you also provide the versions of these plugins which you downgraded to? Cheers |
same problem, no fix yet? |
I've switched to Kubernetes-cli plugin. Build my own Jenkins docker image with kubectl installed and happy to use kubernetes without this error. For latest Jenkins (2.288) you need to downgrade a lot more plugins with many security fixes. |
Hey @mahusanin thanks for the solution |
hello @aqua2021 how to downgrade Kubernetes CD plugin to 1.0could you please guide me |
go to the manage plugin section , in advanced tab upload the 1.0 plugin .hpi file |
worked for me , thanks |
hi @varun-vashishtha thanks for your response, could you please share me the 1.0 plugin hpi file? |
Hi @nguyenminh15988 , Kindly hit this link to download version 1.0.0 .hpi file of Kubernetes cd plugin. Reference - https://plugins.jenkins.io/kubernetes-cd/#releases |
hi @varun-vashishtha thank you very much, |
it worked for me too. |
Using Jenkins 2.297 with v1.21.1+k3s1 cluster. Getting the same issue.
Any fix yet ? |
Check this thread in StackOverflow https://stackoverflow.com/questions/62688901/class-not-found-io-kubernetes-client-openapi-models-v1service/68437162#68437162 The solution is just to downgrade the plugin Kubernetes Continuous Deploy to 1.0 |
I am going to deploy k8s deployment to EKS
|
It's bad the project is abandoned |
This seems to have started after a kubernetes 1.16 -> 1.17 cluster upgrade. We don't have a lot of jobs using this cd plugin yet, so we didn't notice right away.
The class file exists, and there doesn't seem to be another plugin which has an older version of the kubernetes client jar.
Full Error:
The text was updated successfully, but these errors were encountered: