Bug 2081938

Summary: The deleted policy still be shown on the policyset review page when edit this policy set
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: yahliu
Component: ConsoleAssignee: Kevin Cormier <kcormier>
Status: CLOSED ERRATA QA Contact: Xiang Yin <xiyin>
Severity: medium Docs Contact: Christopher Dawson <cdawson>
Priority: unspecified    
Version: rhacm-2.5CC: dho, dhuynh, huichen, zlayne
Target Milestone: ---Flags: bot-tracker-sync: rhacm-2.5+
yahliu: needinfo-
Target Release: rhacm-2.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-09 02:11:58 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:

Comment 1 bot-tracker-sync 2022-05-05 20:18:43 UTC
G2Bsync 1118915718 comment 
 zlayne Thu, 05 May 2022 18:29:05 UTC 
 `G2Bsync` @yahliu I am not seeing this issue on the May 5th build. Could you please verify this is still occurring on most recent build?

Comment 2 yahliu 2022-05-09 02:06:50 UTC
Hi @zlayne  This issue is also reproduced on 2.5.0-DOWNSTREAM-2022-05-06-05-02-19. 

Reproduce steps: 
 1. Create two policies( grc-1 and grc-2) in default namespace 
 2. Create one policy set includes these two policies. 
 3. Delete grc-2 policy 
 4. Go to policy sets page, edit this policy set, modify some description and then go next, next until Review page. 
 5. You will see grc-2 policy still be displayed in this page.

Comment 3 bot-tracker-sync 2022-05-10 15:05:41 UTC
G2Bsync 1122328386 comment 
 zlayne Tue, 10 May 2022 12:30:35 UTC 
 `G2Bsync` We have included a couple changes to allow the user to unselect a deleted policy from the PolicySet during the `Policies` step in the wizard. 
However, the PolicySet operator does not automatically delete a policy from a PolicySet. So it would be expected that the review step will show deleted Policies if the user doesn't manually remove them. 
Please let me know if you have any questions about this. Otherwise please close once verified.

Comment 9 zlayne 2022-05-12 18:44:31 UTC
With the current implementation the user will be able to unselect the deleted policy from the Policies step. We will add a warning alert above the selected policies to note to the user they have selected policies that are missing

Comment 10 Kevin Cormier 2022-05-13 13:02:48 UTC
Ready to verify again in builds from May 13 onwards.

Comment 13 yahliu 2022-05-16 03:56:20 UTC
Verified on 2.5.0-DOWNSTREAM-2022-05-13-16-47-16

Comment 17 errata-xmlrpc 2022-06-09 02:11:58 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: Red Hat Advanced Cluster Management 2.5 security updates, images, and bug fixes), 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:4956