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

Fail to Initialize when CSI Volume Configured for Agent Template

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • kubernetes-plugin
    • kubernetes-plugin: 4324.vfec199a_33512, Jenkins: 2.504, jenkins helm chart version 5.8.32

      Attempts to update agent template via UI succeed and produce desired behavior. Desired changes allow for the following:

      • Mount of CSI volume in agents using secrets-store-csi-driver
      • Create kubernetes secret cluster using mounted content
      • Define container environment variables using created k8s secrets

      Although UI update succeeds, attempts to restart Jenkins with those values in place result in a failure of Jenkins to initialize:

      025-04-09 19:42:18.493+0000 [id=33]    WARNING i.j.p.casc.BaseConfigurator#createAttribute: Can't handle class org.csanchez.jenkins.plugins.kubernetes.PodTemplate#run: type is abstract but not Describable.
      2025-04-09 19:42:18.493+0000 [id=33]    WARNING i.j.p.casc.BaseConfigurator#createAttribute: Can't handle class org.csanchez.jenkins.plugins.kubernetes.PodTemplate#listener: type is abstract but not Describable.
      2025-04-09 19:42:18.497+0000 [id=33]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed ConfigurationAsCode.init
      Caused: java.lang.Error
      2025-04-09 19:42:18.499+0000 [id=24]    SEVERE  hudson.util.BootFailure#publish: Failed to initialize Jenkins 

      Removing these values from config map and re-deploy allow Jenkins to initialize properly.

            Unassigned Unassigned
            bassg0navy Ken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: