Bug 1447998 - Warning message of BC deletion on web is inconsistent with the result
Summary: Warning message of BC deletion on web is inconsistent with the result
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: XiaochuanWang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-04 11:22 UTC by Xingxing Xia
Modified: 2017-08-16 19:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-06-21 13:00:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description Xingxing Xia 2017-05-04 11:22:07 UTC
Description of problem:
When deleting BC on web, it warns:"Note: None of the builds created by this build config will be deleted. To delete the build config and all of its builds, you can run the command."
But after confirming the BC delete, its builds are deleted.The warning is inconsistent with the result. OCP 3.5 has no the problem

DC and its rc have no the problem

Version-Release number of selected component (if applicable):
openshift v3.6.63

How reproducible:
Always

Steps to Reproduce:
1. Create project and BC that would trigger build
2. After build finished, on web console BC page, Actions --> Delete the BC
3. Check the build

Actual results:
2. It warns:
Note: None of the builds created by this build config will be deleted. To delete the build config and all of its builds, you can run the command.

3. The build is deleted in fact

Expected results:
3. The warning and the result should be consistent.

Additional info:

Comment 1 Jessica Forrester 2017-05-04 12:58:48 UTC
It was expected for this to happen once garbage collection was turned on, please see the card https://trello.com/c/mt9c2Nxx we'll be fixing this issue there.

Comment 2 Jessica Forrester 2017-05-10 14:17:53 UTC
Warnings for build delete are removed in https://github.com/openshift/origin-web-console/pull/1530

Builds actually should not have been getting garbage collected yet since the console was not sending delete options to tell the delete to cascade.  There is a separate issue tracking that https://github.com/openshift/origin/issues/14120

We have updated deletes to default to cascade in the origin-web-common source, we still need to cut a release of that and merge it into the console to pick up that change.

Comment 5 XiaochuanWang 2017-06-05 09:53:32 UTC
Verified on openshift/oc v3.6.94
Warning message is updated to
"""
Are you sure you want to delete the build config 'ruby-sample-build'?

This will delete the build config and all build history. It cannot be undone. Make sure this is something you really want to do!
"""

All builds will be deleted together when BC is deleted.


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