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 -
            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 ]
            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: