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

PeriodicGarbageCollection Delete Non-Orphan Pods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • kubernetes-plugin
    • Jenkins Version 2.440.3
      Kubernetes Plugin 4287.v73451380b_576

      We have two Kubernetes Clouds defined: OnPremK8S and GKE.
      Both have garbage collection enabled.

      All of our jobs are running on the OnPremK8S cloud, which is properly configured and has the necessary permissions.

      The GKE cloud, however, is missing a critical permission and cannot list Pods.
      None of our jobs are configured to use the GKE cloud.

      We have observed that some jobs, including their nested jobs, are suddenly aborted.
      Upon reviewing the Jenkins service logs, we found that the garbage collection module is deleting these jobs, incorrectly marking them as orphaned.

      This always occurs immediately after an exception is thrown while attempting to list Pods in the GKE cloud (due to the missing permissions).

      I've attached the crucial part of the log.
      Unfortunately I cannot provide the full log so please let me know if there is any critical information missing.

            Unassigned Unassigned
            danielshaal92 Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: