Bug 1300352

Summary: While deleting buildConfig available builds can be cloned
Product: OKD Reporter: Jakub Hadvig <jhadvig>
Component: BuildAssignee: Martin Nagy <mnagy>
Status: CLOSED CURRENTRELEASE QA Contact: Wenjing Zheng <wzheng>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.xCC: aos-bugs, dyan, hripps
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 17:13:17 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 Jakub Hadvig 2016-01-20 14:28:35 UTC
Description of problem:
While deleting buildConfig, available builds can be cloned.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create an project with and launch a build.
2. Cancel or wait for the build to finish.
3. Edit the buildConfig in any project and add the 'openshift.io/build-config.paused=true' annotation.
4. Try to clone previous build.

Actual results:
The previous build can be cloned.

Expected results:
Previous build cant be cloned,

Additional info:

Comment 1 Martin Nagy 2016-01-21 17:12:21 UTC
Upstream PR here: https://github.com/openshift/origin/pull/6765

Comment 2 Martin Nagy 2016-01-22 09:31:03 UTC
PR was merged, moving to ON_QA

Comment 3 Dongbo Yan 2016-01-25 01:25:25 UTC
Verified this bug

Comment 4 Dongbo Yan 2016-01-25 01:55:04 UTC
test env: devenv-rhel7_3208 (ami-aa6c4dc0)