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

Pod-agents are killed although not related to the really failing pod in the same build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • kubernetes-plugin
    • None
    • Kubernetes plugin 4203.v1dd44f5b_1cf9

      in PodUtils.cancelQueueItemFor(Pod pod, String reason), 

      https://github.com/jenkinsci/kubernetes-plugin/blob/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodUtils.java#L78C24-L78C66

       

      all items in the Queue that have a url that matches the runUrl annotation of the pod that should be cancelled, are cancelled 

      BUT: in the same jenkins-build, all agents (not necessarily pods, can be VMs also) created in that build will have the same runUrl annotation => if one of those pods fail and should (legitimately)  be cancelled/deleted, all other agents (not necessarily pods) of the same build that are waiting in the queue at the time PodUtils.cancelQueueItemFor() is called are also going to be cancelled, even if those pods are not related to the failing pod

            ysmaoui Yacine
            ysmaoui Yacine
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: