Bug 1386455
Summary: | [devexp_public_1001]Jenkins pipeline build don't sync consistently between openshift client and jenkins webconsole with jenkins-2-rhel7 image | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Dongbo Yan <dyan> |
Component: | ImageStreams | Assignee: | Jimmi Dyson <jdyson> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Wang Haoran <haowang> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.4.0 | CC: | aos-bugs, bparees, dyan, jdyson, jokerman, mmccomas, pweil, trankin |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Build run policy was not supported.
Consequence: Builds were either skipped or run multiple times.
Fix: Correctly handle build run policy.
Result: Builds now sync reliably and support all build policies.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-08 18:30:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dongbo Yan
2016-10-19 02:21:19 UTC
This is either a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1390293 or could be a side effect of https://bugzilla.redhat.com/show_bug.cgi?id=1356037. Yeah I'm confident this is a side effect of not supporting build run policies properly so is effectively a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1390293. However, to confirm that it is I'd like to leave this open separately until QA confirm that it is fixed once the next release goes out. Moving to ON_QA to test with latest image. Test with brew-pulp.../openshift3/jenkins-2-rhel7 d126876bf60a brew-pulp.../openshift3/jenkins-1-rhel7 dc04c4ed570b openshift-login 0.9 openshift-pipeline 1.0.33 openshift-sync 0.0.17 openshift v3.4.0.26+f7e109e kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0 Since the pipeline build strategy default runpolicy is serial now, jenkins pipeline build sync consistently between openshift client and jenkins webconsole. But when change the runPolicy to Parallel, this issue still can be reproduced. @tdawson Released sync plugin 0.1.0 ready for packaging please (no dependency changes). this is blocked by whatever is causing jenkins to not startup in this PR https://github.com/openshift/jenkins/pull/204 once that PR has a sync plugin that works and gets merged, we can have Troy package the new sync plugin and spin a new rhel image accordingly. Should be ready for QE now. rpm: jenkins-plugin-openshift-sync-0.1.1-1.el7 Images: openshift3/jenkins-1-rhel7:1.651.2-40 openshift3/jenkins-2-rhel7:2.19-7 Test with brew-pulp.../openshift3/jenkins-1-rhel7 6e8c6a3c7a01 brew-pulp.../openshift3/jenkins-2-rhel7 ca15e7519b57 openshift-login 0.9 openshift-pipeline 1.0.36 openshift-sync 0.1.1 openshift v3.4.0.29+ca980ba kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0 Steps: 1.Edit pipeline buildConfig to use Parallel runPolicy 2.Start more than 10 builds one by one from openshift client 3.Check build status from openshift client and jenkins webconsole 4.Start more than 10 builds one by one from jenkins webconsole 5.Check build status from openshift client and jenkins webconsole Actual results: 3&5.Will create triple jenkins jobs, and trigger triple related builds (nodejs-mongodb-example-N) for one pipeline build When you say triple Jenkins jobs you mean there are 3 Jenkins jobs for the one BC? I mean there are 3 jenkins builds under sample-pipeline jenkins project for one pipeline build (sample-pipeline-1) I've managed to repro this, although not consistently. Will work on a fix today. Should be fixed in v0.1.4 of sync plugin. Assigning to @tdawson for packaging. rpms built: jenkins-plugin-openshift-pipeline-1.0.37-1.el7 jenkins-plugin-openshift-sync-0.1.4-1.el7 puddles created and synced to mirrors images created and pushed to registry.ops: openshift3/jenkins-1-rhel7:1.651.2-41 openshift3/jenkins-2-rhel7:2.19-8 Thanks @tdawson! Test with brew-pulp.../openshift3/jenkins-1-rhel7 bdda1c3ed6fd brew-pulp.../openshift3/jenkins-2-rhel7 40ed5bbd7488 openshift-login 0.9 openshift-pipeline 1.0.37 openshift-sync 0.1.5 openshift v3.4.0.30+e10cc28 kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0 |