Bug 2019564 - User settings resources (ConfigMap, Role, RB) should be deleted when a user is deleted
Summary: User settings resources (ConfigMap, Role, RB) should be deleted when a user i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.8
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.11.0
Assignee: Jaivardhan Kumar
QA Contact: spathak@redhat.com
Olivia Payne
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-02 20:08 UTC by Christoph Jerolimov
Modified: 2022-08-10 10:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The resources(ConfigMap, Role, RB) created for user settings don't get cleaned up if the user gets deleted. Consequence: The three created resources(ConfigMap, Role, RB) in namespace "openshift-console-user-settings" stays forever Fix: At the time of the creation of the resources for a User, an ownerReference referencing the User object is added to their metadata which makes the resources dependent on the User. This allows garbage collection to automatically delete the resources when the user no longer exists. Result: The three created resources(ConfigMap, Role, RB) in namespace "openshift-console-user-settings" should be automatically removed
Clone Of:
Environment:
Last Closed: 2022-08-10 10:39:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11130 0 None open Bug 2019564: attach owner reference to resources created on creating a user to allow garbage collection 2022-03-07 21:25:23 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:39:33 UTC

Description Christoph Jerolimov 2021-11-02 20:08:52 UTC
Description of problem:
On OpenShift Dev Sandbox users are automatically deleted after a month. Also on other clusters we should cleanup resources when the user are deleted.

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

How reproducible:
Always

Steps to Reproduce:
1. Create a user
2. Use console (this should automatically create 3 resources in the namespace "openshift-console-user-settings" (a Role, a RoleBinding and a ConfigMap)
3. Delete the user

Actual results:
The three created resources in namespace "openshift-console-user-settings" stays forever

Expected results:
The three created resources in namespace "openshift-console-user-settings" should be automatically removed

Additional info:
None

Comment 4 Christoph Jerolimov 2022-04-06 10:24:49 UTC
Verified on 4.11.0-0.nightly-2022-04-01-172551

Comment 9 errata-xmlrpc 2022-08-10 10:39:06 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security update), 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-2022:5069


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