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

Jenkins builds disappearing from Unix machine due to open shift sync plugin issue

      In some Jenkins, some builds are getting deleted from job page and unix machine. we suspect it's some issue with open shift sync plugin. from the jenkins log:

       

      {{INFO: onDeleted job/ocp-oc-cd-for-fit/job/ocp-oc-cd-for-fit-oc-cd-ocp/4272/
      Jun 27, 2019 7:28:07 AM io.fabric8.jenkins.openshiftsync.JenkinsUtils deleteRun
      INFO: Deleting run: ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4272
      Jun 27, 2019 7:28:07 AM io.fabric8.jenkins.openshiftsync.JenkinsUtils deleteRun
      WARNING: Unable to delete run ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4272:ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4272: /pciuser/tools/jenkins/jenkins-production/jobs/ocp-oc-cd-for-fit/jobs/ocp-oc-cd-for-fit-oc-cd-ocp/builds/4272 looks to have already been deleted; siblings: [4259, 4138, 3351, 4271, 3753, 4277, lastUnstableBuild, 4139, 4276, legacyIds, 4280, 3385, 49, 4260, 3722, lastStableBuild, 4275, lastFailedBuild, 4279, 3220, 3413, 4270, *****4254, lastUnsuccessfulBuild, 3404, 4220, lastSuccessfulBuild, 4215, 4278] Jun 27, 2019 7:28:07 AM io.fabric8.jenkins.openshiftsync.JenkinsUtils deleteRunINFO: Deleting run: ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4271INFO: Deleting run: ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4270Jun 27, 2019 7:28:51 AM io.fabric8.jenkins.openshiftsync.JenkinsUtils deleteRun*****WARNING: Unable to delete run ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4270:ocp-oc-cd-for-fit/ocp-oc-cd-for-fit-oc-cd-ocp #4270: /pciuser/tools/jenkins/jenkins-production/jobs/ocp-oc-cd-for-fit/jobs/ocp-oc-cd-for-fit-oc-cd-ocp/builds/4270 looks to have already been deleted; siblings: [4259, 4138, 3351, 3753, 4277, lastUnstableBuild, 4139, 4276, legacyIds, 4280, 3385, 49, 4260, 3722, lastStableBuild, 4275, lastFailedBuild, 4279, 3220, 3413, 4254, lastUnsuccessfulBuild, 3404, 4220, lastSuccessfulBuild, 4215, 4278]
      Jun 27, 2019 7:28:51 AM io.fabric8.jenkins.openshiftsync.BuildWatcher reconcileRunsAndBuilds}}

          [JENKINS-58179] Jenkins builds disappearing from Unix machine due to open shift sync plugin issue

          Gabe Montero added a comment -

          A couple of points Ariel:

           

           

          a) actually I've just transferred ownership of the openshift/jenkins stuff to another team within RedHat.  I've assigned one of those developers here.

          b) that said, you've encountered a known feature with our sync plugin, where the sync plugin will delete associated runs for build the openshift build controller deletes on the openshift side

           

          You can control pruning on the openshift side via https://docs.openshift.com/container-platform/3.11/dev_guide/builds/advanced_build_operations.html#build-pruning

           

          there are no separate controls on the sync plugin side to turn on and off .... but you can work with Vibhav about requesting a new feature if the openshift side controls are not sufficient

          Gabe Montero added a comment - A couple of points Ariel:     a) actually I've just transferred ownership of the openshift/jenkins stuff to another team within RedHat.  I've assigned one of those developers here. b) that said, you've encountered a known feature with our sync plugin, where the sync plugin will delete associated runs for build the openshift build controller deletes on the openshift side   You can control pruning on the openshift side via https://docs.openshift.com/container-platform/3.11/dev_guide/builds/advanced_build_operations.html#build-pruning   there are no separate controls on the sync plugin side to turn on and off .... but you can work with Vibhav about requesting a new feature if the openshift side controls are not sufficient

          Ariel M added a comment - - edited

          Gabe/Vibhav, could it be related to open sync version? we are currently working with 1.0.37. any Chance updating to 1.0.41 will solve the issue?

          Ariel M added a comment - - edited Gabe/Vibhav, could it be related to open sync version? we are currently working with 1.0.37. any Chance updating to 1.0.41 will solve the issue?

          Vibhav Bobade added a comment -

          Hello Ariel,

          A few things: 

          1> Did you have Openshift Builds associated with the Jenkins job.

          2> Have you deleted the Jenkins Build wrt to the Run ? 

          3> If you have, then this is expected behaviour.

          4> If not please check out https://docs.openshift.com/container-platform/3.11/dev_guide/builds/advanced_build_operations.html#build-pruning and let us know what you are experiencing.

          4> To enable migration and disablement of pruning, we are currnetly working on a disable-pruning mechanism and would be adding it to the next release.

           

          Regards,

          Vibhav

          Vibhav Bobade added a comment - Hello Ariel, A few things:  1> Did you have Openshift Builds associated with the Jenkins job. 2> Have you deleted the Jenkins Build wrt to the Run ?  3> If you have, then this is expected behaviour. 4> If not please check out  https://docs.openshift.com/container-platform/3.11/dev_guide/builds/advanced_build_operations.html#build-pruning  and let us know what you are experiencing. 4> To enable migration and disablement of pruning, we are currnetly working on a disable-pruning mechanism and would be adding it to the next release.   Regards, Vibhav

            waveywaves Vibhav Bobade
            arielma Ariel M
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: