[JIRA] (JENKINS-59810) Kubernetes Plugin fails with PVC error from 1.19.2 onwards

8 views
Skip to first unread message

baldey@gmail.com (JIRA)

unread,
Oct 16, 2019, 6:13:03 PM10/16/19
to jenkinsc...@googlegroups.com
B aldey created an issue
 
Jenkins / Bug JENKINS-59810
Kubernetes Plugin fails with PVC error from 1.19.2 onwards
Issue Type: Bug Bug
Assignee: Unassigned
Components: kubernetes-plugin
Created: 2019-10-16 22:12
Environment: kubernetes plugin 1.19.2 to 1.20.0
kubernetes 1.14.6
Jenkins ver. 2.190.1
Labels: kubernetes-plugin
Priority: Minor Minor
Reporter: B aldey

We are running jenkins within kubernetes, we find that if we upgrade the kubernetes plugin to 1.19.2 or above we get the following pvc based error when jenkins master tries to spawn worker pods, even though we do not specify any PVC within our pod templates:

io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://kubernetes.default/api/v1/namespaces/jenkins/persistentvolumeclaims. Message: PersistentVolumeClaim in version "v1" cannot be handled as a PersistentVolumeClaim: v1.PersistentVolumeClaim.Spec: v1.PersistentVolumeClaimSpec.StorageClassName: Resources: v1.ResourceRequirements.Requests: unmarshalerDecoder: quantities must match the regular expression '([+-]?[0-9.])([eEinumkKMGTP][-+]?[0-9])$', error found in #10 byte of ...|torage":""}},"storag|..., bigger context ...|,"resources":{"limits":{},"requests":{"storage":""}},"storageClassName":""}}|.... Received status: Status(apiVersion=v1, code=400, details=null, kind=Status, message=PersistentVolumeClaim in version "v1" cannot be handled as a PersistentVolumeClaim: v1.PersistentVolumeClaim.Spec: v1.PersistentVolumeClaimSpec.StorageClassName: Resources: v1.ResourceRequirements.Requests: unmarshalerDecoder: quantities must match the regular expression '([+-]?[0-9.])([eEinumkKMGTP][-+]?[0-9])$', error found in #10 byte of ...|torage":""}},"storag|..., bigger context ...|,"resources":{"limits":{},"requests":{"storage":""}},"storageClassName":""}}|..., metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=BadRequest, status=Failure, additionalProperties={}).

 

Any ideas why the plugin is trying to create a PersistentVolumeClaim and this error is occurring?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ronald.schuurman@asml.com (JIRA)

unread,
Oct 18, 2019, 11:18:02 AM10/18/19
to jenkinsc...@googlegroups.com
Ronald Schuurman commented on Bug JENKINS-59810
 
Re: Kubernetes Plugin fails with PVC error from 1.19.2 onwards

We are running in Kubernetes 1.9.2 and get exactly the same issue. Also after upgrading to Kubernetes Plugin from 1.20.0 to 1.20.1

ronald.schuurman@asml.com (JIRA)

unread,
Oct 30, 2019, 12:30:02 PM10/30/19
to jenkinsc...@googlegroups.com

After installing Plugin 1.20.2 I found the option to select Workspace Volume options. Selecting option "Empty Dir Workspace Volume" instead of "Dynamic Persistent Volume Claim Workspace Volume" solved this issue for me.

I think this option was actually added with 1.20.1 Bug Fix: Always define an explicit workspace volume, it defaults to an empty dir (#622)

baldey@gmail.com (JIRA)

unread,
Oct 30, 2019, 2:25:02 PM10/30/19
to jenkinsc...@googlegroups.com

vincent@latombe.net (JIRA)

unread,
Oct 31, 2019, 5:48:06 AM10/31/19
to jenkinsc...@googlegroups.com
Vincent Latombe closed an issue as Fixed
 

This is correct. This issue got fixed through #622

Change By: Vincent Latombe
Status: Open Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages