Description of problem: If an UOCR has a blockingCR specified, and that blockingCR failed silently (e.g., has typo in list of clusters), the UOCR will start even though blockingCR never completed. Version-Release number of selected component (if applicable): 4.10 How reproducible: 100% Steps to Reproduce: 1. Create and enable a UOCR with blockingCR 2. Create and enable the blockingCR with a typo in cluster name Actual results: 2. upgrade started even though blockingCR never completed/started Expected results: 2. upgrade should not start until blockingCR completed properly Additional info:
Fixed in https://github.com/openshift-kni/cluster-group-upgrades-operator/pull/73 Fixes included: Check conditions of CGU and consider CR as not completed if its conditions are nil.
Verified with latest TALO image. Upgrade does not start if blockingCR fails silently. conditions: - lastTransitionTime: "2022-02-12T01:13:59Z" message: 'The ClusterGroupUpgrade CR is blocked by other CRs that have not yet completed: [upgrade-canariesnotinclusters]' reason: UpgradeCannotStart status: "False" type: Ready copiedPolicies: