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

Kubernetes Plugin fails with PVC error from 1.19.2 onwards

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • kubernetes-plugin
    • kubernetes plugin 1.19.2 to 1.20.0
      kubernetes 1.14.6
      Jenkins ver. 2.190.1

      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?

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

              Created:
              Updated:
              Resolved: