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

Bug 2037551

Summary: du validator policy is NonCompliant after updating argocd app from 4.9 to 4.10
Product: OpenShift Container Platform Reporter: yliu1
Component: Telco EdgeAssignee: Ian Miller <imiller>
Telco Edge sub component: ZTP QA Contact: yliu1
Status: CLOSED DUPLICATE Docs Contact:
Severity: low    
Priority: unspecified CC: angwang, keyoung
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-03-04 17:48:21 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:

Description yliu1 2022-01-05 21:18:49 UTC
Description of problem:
On a 4.9 hub cluster with 4.9 argocd app and 4.9 SNOs, if user update the argoCD app and site PGTs to 4.10; then du validator policy will be NonCompliant.

Impact: customer that has existing 4.9 spokes will see this issue until spokes are upgraded to 4.10.

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


How reproducible:
100%

Steps to Reproduce:
1. Deploy 4.9 hub cluster and set up ztp workflow using release-4.9 cnf-features-deploy image
2. Update argocd app to 4.10 using these procedures: https://github.com/serngawy/cnf-features-deploy/blob/master/ztp/gitops-subscriptions/argocd/Upgrade.md
3.Check existing spokes and policies

Actual results:
du validator policy is NonCompliant

Expected results:
du validator policy is compliant because all operators were already successfully deployed

Additional info:
Error message indidates expected mcp not found:

status:
  compliant: NonCompliant
  details:
  - compliant: NonCompliant
    history:
    - eventName: ztp-common.common-du-validator-policy.16c778eb8342c512
      lastTimestamp: "2022-01-05T20:12:22Z"
      message: 'NonCompliant; violation - machineconfigpools not found: [master] found
        but not as specified;

Comment 1 yliu1 2022-01-17 18:57:48 UTC
Increase severity for this bz, as this will stay as NonCompliant even after upgrade because this is a day0 config, and plaform upgrade is not using the same process as initial ztp install.

Comment 2 yliu1 2022-01-18 14:38:55 UTC
Talked with Angie, with latest change, if I move du validator to group PGT, then this will become compliant. Initially this was in common PGT in my configs. I think this restriction needs to be documented, because as a user I would expect to be able to move policies to different levels (common,group,site) based on how generic this policy is in user's environment.

Comment 3 Angie Wang 2022-03-04 17:48:21 UTC
Now the du validator policy is added in a seperate PGT. After upgrade ztp to 4.10 by following the instruction https://github.com/serngawy/cnf-features-deploy/blob/master/ztp/gitops-subscriptions/argocd/Upgrade.md, it's not compliant is due to the wave number. Duplicate issue with https://bugzilla.redhat.com/show_bug.cgi?id=2050391.

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