Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59810

Kubernetes Plugin fails with PVC error from 1.19.2 onwards

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Issue Links

            Activity

            baldeynz B aldey created issue -
            Hide
            schuur Ronald Schuurman added a comment -

            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

            Show
            schuur Ronald Schuurman added a comment - 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
            Hide
            schuur Ronald Schuurman added a comment -

            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)

            Show
            schuur Ronald Schuurman added a comment - 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 )
            baldeynz B aldey made changes -
            Field Original Value New Value
            Priority Minor [ 4 ] Major [ 3 ]
            vlatombe Vincent Latombe made changes -
            Remote Link This issue links to "PR #622 (Web Link)" [ 23909 ]
            Hide
            vlatombe Vincent Latombe added a comment -

            This is correct. This issue got fixed through #622

            Show
            vlatombe Vincent Latombe added a comment - This is correct. This issue got fixed through #622
            vlatombe Vincent Latombe made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                baldeynz B aldey
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: