Bug 1279312
| Summary: | When cancel a build the build status always become failed | |||
|---|---|---|---|---|
| Product: | OKD | Reporter: | DeShuai Ma <dma> | |
| Component: | Build | Assignee: | Ben Parees <bparees> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Wenjing Zheng <wzheng> | |
| Severity: | low | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 3.x | CC: | aos-bugs, bparees | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1287943 (view as bug list) | Environment: | ||
| Last Closed: | 2016-05-12 17:14:22 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1287943 | |||
this appears to only occur for builds canceled within a few seconds of entering the running state. builds that were pending, or running for some period of time, appear to move to canceled and stay there, but builds that were briefly running get marked canceled, and then later marked failed. [root@openshift-136 ~]# oc get build -n dma NAME TYPE FROM STATUS STARTED DURATION ruby-sample-build-1 Docker Git Cancelled |
Description of problem: When cancel a build, the canceled build status always become failed, it should be "Cancelled". Version-Release number of selected component (if applicable): openshift v1.0.7-73-g1605f20 kubernetes v1.2.0-alpha.1-1107-g4c8e6f4 How reproducible: Always Steps to Reproduce: 1.Create a app [root@dhcp-128-7 origin]# oc new-app -f examples/sample-app/application-template-stibuild.json -n dma --> Deploying template ruby-helloworld-sample for "examples/sample-app/application-template-stibuild.json" With parameters: ADMIN_USERNAME=adminIC6 # generated ADMIN_PASSWORD=qWjERHv0 # generated MYSQL_USER=user2QE # generated MYSQL_PASSWORD=TMNWCM6Q # generated MYSQL_DATABASE=root --> Creating resources with label app=ruby-sample-build ... Service "frontend" created Route "route-edge" created ImageStream "origin-ruby-sample" created ImageStream "ruby-20-centos7" created BuildConfig "ruby-sample-build" created DeploymentConfig "frontend" created Service "database" created DeploymentConfig "database" created --> Success Build scheduled for "ruby-sample-build" - use the logs command to track its progress. Run 'oc status' to view your app. 2.Check the build [root@dhcp-128-7 origin]# oc get build -n dma NAME TYPE FROM STATUS STARTED DURATION ruby-sample-build-1 Source Git Running 50 seconds ago 1s 3.Cancel a build [root@dhcp-128-7 origin]# oc cancel-build ruby-sample-build-1 -n dma ruby-sample-build-1 4.Check the build status [root@dhcp-128-7 origin]# oc get build -n dma NAME TYPE FROM STATUS STARTED DURATION ruby-sample-build-1 Source Git Failed About a minute ago 11s Actual results: 4.The build status is "Failed" Expected results: 4.The build status should is "Cancelled" Additional info: