Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1447998 - Warning message of BC deletion on web is inconsistent with the result
Warning message of BC deletion on web is inconsistent with the result
Status: CLOSED CURRENTRELEASE
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
3.6.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Samuel Padgett
XiaochuanWang
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-04 07:22 EDT by Xingxing Xia
Modified: 2017-08-16 15 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-06-21 09:00:14 EDT
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 RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description Xingxing Xia 2017-05-04 07:22:07 EDT
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 08:58:48 EDT
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 10:17:53 EDT
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 05:53:32 EDT
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.