Bug 1830080

Summary: When deleting Revisions from a Knative Service, update the traffic as needed.
Product: OpenShift Container Platform Reporter: Jeff Phillips <jephilli>
Component: Dev ConsoleAssignee: Jeff Phillips <jephilli>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, nmukherj
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:34:07 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:
Attachments:
Description Flags
Animated Gif of deleting a revision
none
deleting revision ask to update the traffic none

Description Jeff Phillips 2020-04-30 19:37:34 UTC
Created attachment 1683431 [details]
Animated Gif of deleting a revision

Description of problem:

When there are 2 revisions in a Knative Service, if one is deleted, the other should automatically receive 100% of the traffic.

This animated gif shows that since the Knative Service only has 50% of the traffic after deleting a revision, click on the route results in error 1/2 the time.

Also, if you delete the last revision for a knative service, the revision is removed from the display only momentarily, the revision is recreated and then reappears.

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


How reproducible:

Always

Steps to Reproduce:
1. Create a knative service with a single revision
2. Delete the revision
3. Add a revision to the knative service, set the traffic distribution such that both revisions receive traffic
4. Delete one of the revisions.


Actual results:

After step 2, the revision is removed, but in a moment comes back
After step4, the revision is removed and the remaining revision only receives partial traffic.

Expected results:

After step 2, an error dialog should be displayed informing the user that you cannot delete the last revision.

After step 4, a dialog should be presented to force the user to update the traffic distribution prior to deleting the revision.

Additional info:

Comment 3 Gajanan More 2020-05-14 12:16:48 UTC
Created attachment 1688416 [details]
deleting revision ask to update the traffic

Comment 4 Gajanan More 2020-05-14 12:17:08 UTC
I have validated the bugzilla on
Build: 4.5.0-0.ci-2020-05-13-231257
Browser: Google Chrome Version 81.0.4044.129
Please have a look at the shared screenshots
Marking this as verified.

Comment 5 errata-xmlrpc 2020-07-13 17:34:07 UTC
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/RHBA-2020:2409