Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1287943 - When cancel a build the build status always become failed
When cancel a build the build status always become failed
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build (Show other bugs)
3.1.0
Unspecified Unspecified
low Severity medium
: ---
: ---
Assigned To: Scott Dodson
Wenjing Zheng
:
Depends On: 1279312
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-02 23:37 EST by Wang Haoran
Modified: 2016-01-26 14:19 EST (History)
7 users (show)

See Also:
Fixed In Version: atomic-openshift-3.1.0.902-1.git.39.96f572a.el7aos
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1279312
Environment:
Last Closed: 2016-01-26 14:19:25 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:0070 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 3.1.1 bug fix and enhancement update 2016-01-26 19:12:41 EST

  None (edit)
Description Wang Haoran 2015-12-02 23:37:26 EST
+++ This bug was initially created as a clone of Bug #1279312 +++

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 v3.1.0.4-16-g112fcc4
kubernetes v1.1.0-origin-1107-g4c8e6f4
oc v3.1.0.4-16-g112fcc4
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:

--- Additional comment from Ben Parees on 2015-11-09 11:49:48 EST ---

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.

--- Additional comment from DeShuai Ma on 2015-11-16 03:37:18 EST ---

[root@openshift-136 ~]# oc get build -n dma
NAME                  TYPE      FROM      STATUS      STARTED   DURATION
ruby-sample-build-1   Docker    Git       Cancelled
Comment 1 Wang Haoran 2015-12-02 23:43:09 EST
this bug fixed on origin ,  ose version still have,seems not merged.
Comment 2 Ben Parees 2015-12-03 08:51:55 EST
assigning to Scott for OSE merge.  fix was here:
https://github.com/openshift/origin/pull/5798
Comment 4 Wang Haoran 2015-12-23 03:27:32 EST
verify with version:
openshift v3.1.1.0
kubernetes v1.1.0-origin-1107-g4c8e6f4
etcd 2.1.2
Comment 6 errata-xmlrpc 2016-01-26 14:19:25 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2016:0070

Note You need to log in before you can comment on or make changes to this bug.