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

Bug 2093444

Summary: ManagementState reconciliation breaks SR
Product: OpenShift Container Platform Reporter: Brett Thurber <bthurber>
Component: Special Resource OperatorAssignee: Brett Thurber <bthurber>
Status: CLOSED ERRATA QA Contact: Constantin Vultur <cvultur>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.11CC: cvultur
Target Milestone: ---   
Target Release: 4.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2093445 (view as bug list) Environment:
Last Closed: 2022-06-28 11:50:26 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:
Bug Depends On: 2093445    
Bug Blocks:    

Description Brett Thurber 2022-06-03 17:48:33 UTC
Description of problem:
Per Veritas:
we are facing issue in deploying InfoScale using SRO.
SRO with these changes does not reconcile the infoscale-vtas SR as we do not specify "ManagementState" to SR spec and thus in create function of predicate, func isSpecialResourceUnmanaged() returns false always which prevents creation of resources/helm chart.
func isSpecialResourceUnmanaged(obj client.Object) bool {
	sr, ok := obj.(*v1beta1.SpecialResource)
	if !ok {
		return false
	}
	return sr.Spec.ManagementState == operatorv1.Unmanaged
}
CreateFunc: func(e event.CreateEvent) bool {
obj := e.Object
			if IsSpecialResource(obj) {
-				return true
+				return isSpecialResourceUnmanaged(obj)
			}
We anticipate code should return true if isSpecialResourceUnmanaged(obj)=false
This change needs to be fixed for successful creation of SR resources.


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

How reproducible:
Every time

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Constantin Vultur 2022-06-17 06:57:51 UTC
Related to 2097263

Verification passed for this one also.
Marking as Verified

Comment 7 errata-xmlrpc 2022-06-28 11:50:26 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 (OpenShift Container Platform 4.10.20 bug fix 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/RHBA-2022:5172