Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ func testStableSystemOperatorStateTransitions(events monitorapi.Intervals, clien
return "https://issues.redhat.com/browse/OCPBUGS-20056"
}
}
if operator == "image-registry" {
return "https://issues.redhat.com/browse/OCPBUGS-66213"
}
if operator == "openshift-apiserver" &&
(condition.Reason == "APIServerDeployment_NoDeployment" ||
condition.Reason == "APIServerDeployment_NoPod" ||
Expand Down Expand Up @@ -414,22 +411,13 @@ func testUpgradeOperatorStateTransitions(events monitorapi.Intervals, clientConf
return "https://issues.redhat.com/browse/OCPBUGS-23744"
}
case "image-registry":
if condition.Type == configv1.OperatorDegraded &&
condition.Status == configv1.ConditionTrue &&
(condition.Reason == "NodeCADaemonControllerError" ||
condition.Reason == "ProgressDeadlineExceeded" ||
condition.Reason == "ImageConfigControllerError" ||
condition.Reason == "Unavailable") {
return "https://issues.redhat.com/browse/OCPBUGS-66225"
}
// this won't handle the replicaCount==2 serial test where both pods are on nodes that get tainted.
// need to consider how we detect that or modify the job to set replicaCount==3
if condition.Type == configv1.OperatorAvailable && condition.Status == configv1.ConditionFalse {
vsphere, _ := isVSphere(clientConfig)
if vsphere {
if replicaCount, _ := checkReplicas("openshift-image-registry", operator, clientConfig); replicaCount == 1 {
return "https://issues.redhat.com/browse/OCPBUGS-22382"
}
// image-registry can become unavailable when it only has one replica, this is expected behavior
// and the linked OCPBUGS ticket is closed as won't fix.
if replicaCount, _ := checkReplicas("openshift-image-registry", operator, clientConfig); replicaCount == 1 {
return "https://issues.redhat.com/browse/OCPBUGS-22382"
}
}
case "dns":
Expand Down Expand Up @@ -474,18 +462,6 @@ func testUpgradeOperatorStateTransitions(events monitorapi.Intervals, clientConf
return testOperatorStateTransitions(events, []configv1.ClusterStatusConditionType{configv1.OperatorAvailable, configv1.OperatorDegraded}, except, clientConfig, true)
}

func isVSphere(config *rest.Config) (bool, error) {
client, err := clientconfigv1.NewForConfig(config)
if err != nil {
return false, err
}
infra, err := client.Infrastructures().Get(context.Background(), "cluster", metav1.GetOptions{})
if err != nil {
return false, err
}
return infra.Status.PlatformStatus != nil && infra.Status.PlatformStatus.Type == configv1.VSpherePlatformType, nil
}

func checkReplicas(namespace string, operator string, clientConfig *rest.Config) (int32, error) {
kubeClient, err := kubernetes.NewForConfig(clientConfig)
if err != nil {
Expand Down Expand Up @@ -749,10 +725,6 @@ func testUpgradeOperatorProgressingStateTransitions(events monitorapi.Intervals,
if reason == "DNSReportsProgressingIsTrue" {
return "https://issues.redhat.com/browse/OCPBUGS-62623"
}
case "image-registry":
if reason == "NodeCADaemonUnavailable::Ready" || reason == "DeploymentNotCompleted" {
return "https://issues.redhat.com/browse/OCPBUGS-62626"
}
case "ingress":
if reason == "Reconciling" {
return "https://issues.redhat.com/browse/OCPBUGS-62627"
Expand Down