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

Build cannot be resumed if parallel was used with Kubernetes plugin

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      workflow-cps 2.66

      Description

      I have a lot of Pipeline Jobs that are waiting for user input before deploying to production. It is quite normal, that pipelines are in this state for several days.

      After a Jenkins restart (e.g. because of a Jenkins Update) the Pipelines are still in running state, but the user input controls are missing.

      log

      pipeline view

      paused for input
      Paused for input is available, but the controls are missing.

      blue ocean

        Attachments

        1. blue ocean.png
          blue ocean.png
          39 kB
        2. log.png
          log.png
          57 kB
        3. paused for input.png
          paused for input.png
          138 kB
        4. pipeline view.png
          pipeline view.png
          68 kB

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            I was hoping that my proposed fix of JENKINS-41854 would solve the symptom in at least some cases, by allowing a PickleDynamicContext to be saved in program.dat rather than the actual FilePath in a DryCapsule. Unfortunately it does not seem to work—something is apparently still trying to rehydrate the bogus pickle—though at least the override of TryRepeatedly.getOwner from FilePathPickle makes the problem a bit more apparent, as the resumed build will repeatedly print

            Still trying to load Looking for path named ‘/home/jenkins/workspace/workaround’ on computer named ‘jenkins-input-repro-48e88ac1-40ab-4d74-9ba2-1f25e728be3c--3h6s8’
            
            Show
            jglick Jesse Glick added a comment - I was hoping that my proposed fix of JENKINS-41854 would solve the symptom in at least some cases, by allowing a PickleDynamicContext to be saved in program.dat rather than the actual FilePath in a DryCapsule . Unfortunately it does not seem to work—something is apparently still trying to rehydrate the bogus pickle—though at least the override of TryRepeatedly.getOwner from FilePathPickle makes the problem a bit more apparent, as the resumed build will repeatedly print Still trying to load Looking for path named ‘/home/jenkins/workspace/workaround’ on computer named ‘jenkins-input-repro-48e88ac1-40ab-4d74-9ba2-1f25e728be3c--3h6s8’
            Hide
            jglick Jesse Glick added a comment -

            Digging into the program state confirms that all kinds of stuff including the ContainerExecDecorator is still there even after the container step exited. Seems like a bug in ParallelStep.

            Show
            jglick Jesse Glick added a comment - Digging into the program state confirms that all kinds of stuff including the ContainerExecDecorator is still there even after the container step exited. Seems like a bug in ParallelStep .
            Hide
            jglick Jesse Glick added a comment -

            JENKINS-53709 was a similar issue.

            Show
            jglick Jesse Glick added a comment - JENKINS-53709 was a similar issue.
            Hide
            jglick Jesse Glick added a comment -

            Have a fix for the workflow-cps problem, and it seems to correct the symptom as reported here. JENKINS-37998 is still valid, since it could affect other scenarios, but this seems to be the important fix.

            Show
            jglick Jesse Glick added a comment - Have a fix for the workflow-cps problem, and it seems to correct the symptom as reported here. JENKINS-37998 is still valid, since it could affect other scenarios, but this seems to be the important fix.
            Hide
            dnusbaum Devin Nusbaum added a comment -

            A fix for this issue was just released in version 2.66 of Pipeline: Groovy Plugin.

            Show
            dnusbaum Devin Nusbaum added a comment - A fix for this issue was just released in version 2.66 of Pipeline: Groovy Plugin.

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                dawi Daniel Wilmer
              • Votes:
                14 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: