Skip to content

Commit 8257b5c

Browse files
committed
Add exceptions for the violating COs
1 parent 15d3649 commit 8257b5c

File tree

1 file changed

+55
-2
lines changed
  • pkg/monitortests/clusterversionoperator/legacycvomonitortests

1 file changed

+55
-2
lines changed

pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,60 @@ func clusterOperatorIsNotProgressingWhenMachineConfigIs(events monitorapi.Interv
672672
continue
673673
}
674674

675-
except := func(co string, condition *configv1.ClusterOperatorStatusCondition) string {
675+
except := func(co string, reason string) string {
676+
switch co {
677+
case "csi-snapshot-controller":
678+
if reason == "CSISnapshotController_Deploying" {
679+
return "https://issues.redhat.com/browse/OCPBUGS-62624"
680+
}
681+
case "dns":
682+
if reason == "DNSReportsProgressingIsTrue" {
683+
return "https://issues.redhat.com/browse/OCPBUGS-62623"
684+
}
685+
case "image-registry":
686+
if reason == "NodeCADaemonUnavailable::Ready" || reason == "DeploymentNotCompleted" {
687+
return "https://issues.redhat.com/browse/OCPBUGS-62626"
688+
}
689+
case "ingress":
690+
if reason == "Reconciling" {
691+
return "https://issues.redhat.com/browse/OCPBUGS-62627"
692+
}
693+
case "kube-storage-version-migrator":
694+
if reason == "KubeStorageVersionMigrator_Deploying" {
695+
return "https://issues.redhat.com/browse/OCPBUGS-62629"
696+
}
697+
case "network":
698+
if reason == "Deploying" {
699+
return "https://issues.redhat.com/browse/OCPBUGS-62630"
700+
}
701+
case "node-tuning":
702+
if reason == "Reconciling" {
703+
return "https://issues.redhat.com/browse/OCPBUGS-62632"
704+
}
705+
case "openshift-controller-manager":
706+
if reason == "_DesiredStateNotYetAchieved" {
707+
return "https://issues.redhat.com/browse/OCPBUGS-63116"
708+
}
709+
case "service-ca":
710+
if reason == "_ManagedDeploymentsAvailable" {
711+
return "https://issues.redhat.com/browse/OCPBUGS-62633"
712+
}
713+
case "storage":
714+
// GCPPDCSIDriverOperatorCR_GCPPDDriverControllerServiceController_Deploying
715+
// GCPPDCSIDriverOperatorCR_GCPPDDriverNodeServiceController_Deploying
716+
// AWSEBSCSIDriverOperatorCR_AWSEBSDriverNodeServiceController_Deploying
717+
// VolumeDataSourceValidatorDeploymentController_Deploying
718+
if strings.HasSuffix(reason, "Controller_Deploying") ||
719+
reason == "GCPPD_Deploying" {
720+
return "https://issues.redhat.com/browse/OCPBUGS-62634"
721+
}
722+
case "olm":
723+
// CatalogdDeploymentCatalogdControllerManager_Deploying
724+
// OperatorcontrollerDeploymentOperatorControllerControllerManager_Deploying
725+
if strings.HasSuffix(reason, "ControllerManager_Deploying") {
726+
return "https://issues.redhat.com/browse/OCPBUGS-62635"
727+
}
728+
}
676729
return ""
677730
}
678731

@@ -697,7 +750,7 @@ func clusterOperatorIsNotProgressingWhenMachineConfigIs(events monitorapi.Interv
697750
// if there was any switch, it was wrong/unexpected at some point
698751
failure := fmt.Sprintf("%v", operatorEvent)
699752

700-
exception := except(operatorName, condition)
753+
exception := except(operatorName, condition.Reason)
701754
if exception == "" {
702755
fatal = append(fatal, failure)
703756
} else {

0 commit comments

Comments
 (0)