@@ -32,6 +32,13 @@ Completion: 97% (32 operators updated, 1 updating, 0 waiting)
3232Duration: 1h59m (Est. Time Remaining: N/A; estimate duration was 1h24m)
3333Operator Health: 28 Healthy, 1 Unavailable, 4 Available but degraded`
3434
35+ controlPlaneSummaryInconsistentOperators = `Assessment: Progressing
36+ Target Version: 4.20.0-0.ci-2025-08-13-182454-test-ci-op-5wilvz46-latest (from 4.20.0-0.ci-2025-08-13-174821-test-ci-op-5wilvz46-initial)
37+ Updating: image-registry, monitoring, openshift-controller-manager
38+ Completion: 50% (17 operators updated, 3 updating, 14 waiting)
39+ Duration: 24m (Est. Time Remaining: 45m)
40+ Operator Health: 34 Healthy`
41+
3542 controlPlaneUpdated = `Update to 4.16.0-ec.3 successfully completed at 2024-02-27T15:42:58Z (duration: 3h31m)`
3643
3744 expectedControlPlaneSummaries = map [string ]map [string ]string {
@@ -50,15 +57,43 @@ Operator Health: 28 Healthy, 1 Unavailable, 4 Available but degraded`
5057 "Duration" : "1h59m (Est. Time Remaining: N/A; estimate duration was 1h24m)" ,
5158 "Operator Health" : "28 Healthy, 1 Unavailable, 4 Available but degraded" ,
5259 },
60+ controlPlaneSummaryInconsistentOperators : {
61+ "Assessment" : "Progressing" ,
62+ "Target Version" : "4.20.0-0.ci-2025-08-13-182454-test-ci-op-5wilvz46-latest (from 4.20.0-0.ci-2025-08-13-174821-test-ci-op-5wilvz46-initial)" ,
63+ "Updating" : "image-registry, monitoring, openshift-controller-manager" ,
64+ "Completion" : "50% (17 operators updated, 3 updating, 14 waiting)" ,
65+ "Duration" : "24m (Est. Time Remaining: 45m)" ,
66+ "Operator Health" : "34 Healthy" ,
67+ },
5368 controlPlaneUpdated : nil , // No summary for updated control plane
5469 }
5570
5671 controlPlaneOperators = `Updating Cluster Operators
5772NAME SINCE REASON MESSAGE
5873machine-config 1h4m41s - Working towards 4.14.1`
5974
75+ // TODO: This is actually a bug we should fix in the output, we will fix this
76+ controlPlaneInconsistentOperators = `Updating Cluster Operators
77+ NAME SINCE REASON MESSAGE
78+ image-registry 6s DeploymentNotCompleted::NodeCADaemonUnavailable NodeCADaemonProgressing: The daemon set node-ca is deploying node pods
79+ Progressing: The deployment has not completed
80+ monitoring 4s RollOutInProgress Rolling out the stack.
81+ openshift-controller-manager 11s RouteControllerManager_DesiredStateNotYetAchieved::_DesiredStateNotYetAchieved Progressing: deployment/controller-manager: observed generation is 10, desired generation is 11
82+ Progressing: deployment/controller-manager: updated replicas is 1, desired replicas is 3
83+ RouteControllerManagerProgressing: deployment/route-controller-manager: observed generation is 7, desired generation is 8
84+ RouteControllerManagerProgressing: deployment/route-controller-manager: updated replicas is 1, desired replicas is 3`
85+
6086 expectedControlPlaneOperators = map [string ][]string {
6187 controlPlaneOperators : {"machine-config 1h4m41s - Working towards 4.14.1" },
88+ controlPlaneInconsistentOperators : {
89+ "image-registry 6s DeploymentNotCompleted::NodeCADaemonUnavailable NodeCADaemonProgressing: The daemon set node-ca is deploying node pods" ,
90+ "Progressing: The deployment has not completed" ,
91+ "monitoring 4s RollOutInProgress Rolling out the stack." ,
92+ "openshift-controller-manager 11s RouteControllerManager_DesiredStateNotYetAchieved::_DesiredStateNotYetAchieved Progressing: deployment/controller-manager: observed generation is 10, desired generation is 11" ,
93+ "Progressing: deployment/controller-manager: updated replicas is 1, desired replicas is 3" ,
94+ "RouteControllerManagerProgressing: deployment/route-controller-manager: observed generation is 7, desired generation is 8" ,
95+ "RouteControllerManagerProgressing: deployment/route-controller-manager: updated replicas is 1, desired replicas is 3" ,
96+ },
6297 }
6398
6499 controlPlaneThreeNodes = `Control Plane Nodes
@@ -386,6 +421,27 @@ func TestUpgradeStatusOutput_ControlPlane(t *testing.T) {
386421 Nodes : nil ,
387422 },
388423 },
424+ {
425+ name : "control plane with inconsistent operators (bug that will be fixed)" ,
426+ segments : []string {
427+ controlPlaneHeader ,
428+ controlPlaneSummaryInconsistentOperators ,
429+ emptyLine ,
430+ controlPlaneInconsistentOperators ,
431+ emptyLine ,
432+ controlPlaneThreeNodes ,
433+ emptyLine ,
434+ healthSectionHeader ,
435+ genericHealthSection ,
436+ },
437+ expected : & ControlPlaneStatus {
438+ Updated : false ,
439+ Summary : expectedControlPlaneSummaries [controlPlaneSummaryInconsistentOperators ],
440+ Operators : expectedControlPlaneOperators [controlPlaneInconsistentOperators ],
441+ NodesUpdated : false ,
442+ Nodes : expectedControlPlaneNodes [controlPlaneThreeNodes ],
443+ },
444+ },
389445 }
390446
391447 for _ , tc := range testCases {
0 commit comments