Skip to content

Commit 1cce29b

Browse files
committed
Add a new exception for CO's Available=False in non-upgrade tests
OCPBUGS-23746 has been an exception [1] for CO/openshift-apiserver's Available=False in upgrade tests. Now it is identified in non-upgrade tests too [2]. This pull acts on it accordingly. Although we found `APIServices_Error` as the only reason at the moment, others get duplicated here as well for less disruptions for the payload tests. [1]. https://github.com/openshift/origin/blob/7e4d34a4bb3b00b763a9f2fcdb72fc289d3920d5/pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go#L413-L421 [2]. https://issues.redhat.com/browse/OCPBUGS-23746?focusedId=28549492&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-28549492
1 parent b35881d commit 1cce29b

File tree

1 file changed

+8
-0
lines changed
  • pkg/monitortests/clusterversionoperator/legacycvomonitortests

1 file changed

+8
-0
lines changed

pkg/monitortests/clusterversionoperator/legacycvomonitortests/operators.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ func testStableSystemOperatorStateTransitions(events monitorapi.Intervals, clien
9797
if operator == "image-registry" {
9898
return "Image-registry operator is allowed to have Available=False on a non-upgrade scenario for now", nil
9999
}
100+
if operator == "openshift-apiserver" &&
101+
(condition.Reason == "APIServerDeployment_NoDeployment" ||
102+
condition.Reason == "APIServerDeployment_NoPod" ||
103+
condition.Reason == "APIServerDeployment_PreconditionNotFulfilled" ||
104+
condition.Reason == "APIServerDeployment_UnavailablePod" ||
105+
condition.Reason == "APIServices_Error") {
106+
return "https://issues.redhat.com/browse/OCPBUGS-23746", nil
107+
}
100108
return "", nil
101109
}
102110
if condition.Type == configv1.OperatorDegraded && condition.Status == configv1.ConditionTrue {

0 commit comments

Comments
 (0)