Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2072604

Summary: Upgrade: UOCR should not try to create an enforced copy of an already enforced policy
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Telco EdgeAssignee: melserng
Telco Edge sub component: RAN QA Contact: yliu1
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: low CC: jun, keyoung, mcornea, melserng
Version: 4.10   
Target Milestone: ---   
Target Release: ---   
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-05-05 16:17:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2044304, 2072730    
Bug Blocks:    

Description OpenShift BugZilla Robot 2022-04-06 15:35:42 UTC
+++ This bug was initially created as a clone of Bug #2044304 +++

Description of problem:

Currently, it is possible to add a managedPolicy in a ClusterGroupUpgrade manifest that is already enforced.

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

How reproducible:
Always

Steps to Reproduce:
1. Create an enforced ACM policy by creating an ACM policy directly or a PGT with the remediationAction equals to enforce
2. Verify that the policy is patching the targeted clusters
3. Create a CGU manifest that includes the previous enforced policy

Actual results:
A copy of the previous enforced policy is created by the UOCR in enforce mode too

Expected results:
No copy policy needs to be created by the UOCR since the original policy was set to enforce.

Additional info:

Comment 3 jun 2022-05-05 16:17:21 UTC

*** This bug has been marked as a duplicate of bug 2072730 ***