Skip to content

Jenkins + Kubernetes and Jackson 2.19.0 issue #7107

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

Open
MarkEWaite opened this issue May 28, 2025 · 0 comments
Open

Jenkins + Kubernetes and Jackson 2.19.0 issue #7107

MarkEWaite opened this issue May 28, 2025 · 0 comments

Comments

@MarkEWaite
Copy link

Describe the bug

Generally identical to #7036 and #7106, but in a different context.

Jenkins provides API plugins (like Jackson 2 API) and has recently released Jackson 2 API 2.19.0. Jenkins users who install that Jackson 2 API plugin release are reporting exceptions (JENKINS-75712) when using Kubernetes agents.

We're not ready to upgrade from Kubernetes client API 6.x to 7.x, though we have a draft pull request in progress at:

It would be a great help to the Jenkins project if the Jackson API 2.19.0 adaptation could be backported to Kubernetes client 6.x.

Fabric8 Kubernetes Client version

6.13.5

Steps to reproduce

  1. Run a Jenkins Kubernetes agent on a Kubernetes 1.32 cluster with a resource limitation as described in JENKINS-75712
  2. Confirm that the exception is reported as:
    java.lang.NullPointerException: Cannot invoke "com.fasterxml.jackson.databind.JsonSerializer.serialize(Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)" because "keySerializer" is null at PluginClassLoader for jackson2
    

Expected behavior

Null pointer exception should not be reported and the Jenkins agent should be allocated

Runtime

Kubernetes (vanilla)

Kubernetes API Server version

1.32

Environment

Amazon

Fabric8 Kubernetes Client Logs

N/A

Additional context

A draft pull request that shows the failure through a unit test of the Jenkins kubernetes plugin is available at:

MarkEWaite added a commit to MarkEWaite/update-center2 that referenced this issue May 28, 2025
Confirmed that none of the plugins reported by the Jenkins update center
depend on this release.

Plugin release 2.19.0-404.vb_b_0fd2fea_e10 causes issues for Jenkins
users with Kubernetes agents.  Issue reports include:

* https://issues.jenkins.io/browse/JENKINS-75712
* https://issues.jenkins.io/browse/JENKINS-75718

More details are available in BOM pull request:

* jenkinsci/bom#5114

Additional details also in the request for a fix in Kubernetes client
API 6.x:

* fabric8io/kubernetes-client#7107
daniel-beck pushed a commit to jenkins-infra/update-center2 that referenced this issue May 28, 2025
* Suspend distribution of jackson2-api 2.19.0-404.vb_b_0fd2fea_e10

Confirmed that none of the plugins reported by the Jenkins update center
depend on this release.

Plugin release 2.19.0-404.vb_b_0fd2fea_e10 causes issues for Jenkins
users with Kubernetes agents.  Issue reports include:

* https://issues.jenkins.io/browse/JENKINS-75712
* https://issues.jenkins.io/browse/JENKINS-75718

More details are available in BOM pull request:

* jenkinsci/bom#5114

Additional details also in the request for a fix in Kubernetes client
API 6.x:

* fabric8io/kubernetes-client#7107

* Do not remove duplicate blank line
MarkEWaite added a commit to MarkEWaite/jenkins that referenced this issue May 29, 2025
The kubernetes client has issues with Jackson 2.19.0.

Original pull request that updated to 2.19.0 was:

* jenkinsci#10677

Reverted from the Jenkins plugin BOM in pull request:

* jenkinsci/bom#5114

Distribution suspended from Jenkins update center in:

* jenkins-infra/update-center2#869

Refer to the following Kubernetes client API issues:

* fabric8io/kubernetes-client#7036
* fabric8io/kubernetes-client#7106

Backport of the Jackson 2.19.0 change to Kubernetes client 6.x has been requested at:

* fabric8io/kubernetes-client#7107

Also described in detail in Spring Cloud issue report:

* spring-cloud/spring-cloud-kubernetes#1923

Also described in Jenkins issue report:

* https://issues.jenkins.io/browse/JENKINS-75712

Also verified as failing in kubernetes plugin pull request:

* jenkinsci/kubernetes-plugin#1702

Also mentioned in Kubernetes client API upgrade pull request:

* jenkinsci/kubernetes-client-api-plugin#292

This reverts commit 11e5d5c.
basil pushed a commit to jenkinsci/jenkins that referenced this issue May 29, 2025
The kubernetes client has issues with Jackson 2.19.0.

Original pull request that updated to 2.19.0 was:

* #10677

Reverted from the Jenkins plugin BOM in pull request:

* jenkinsci/bom#5114

Distribution suspended from Jenkins update center in:

* jenkins-infra/update-center2#869

Refer to the following Kubernetes client API issues:

* fabric8io/kubernetes-client#7036
* fabric8io/kubernetes-client#7106

Backport of the Jackson 2.19.0 change to Kubernetes client 6.x has been requested at:

* fabric8io/kubernetes-client#7107

Also described in detail in Spring Cloud issue report:

* spring-cloud/spring-cloud-kubernetes#1923

Also described in Jenkins issue report:

* https://issues.jenkins.io/browse/JENKINS-75712

Also verified as failing in kubernetes plugin pull request:

* jenkinsci/kubernetes-plugin#1702

Also mentioned in Kubernetes client API upgrade pull request:

* jenkinsci/kubernetes-client-api-plugin#292

This reverts commit 11e5d5c.
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

No branches or pull requests

1 participant