Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-44570

improve scaling strategy error message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.18
    • Etcd
    • None
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When apiserver is not available briefly, the CEO status suggests that the openshift-etcd namespace does not exist:
      
      > EtcdEndpointsDegraded: EtcdEndpointsController can't evaluate whether quorum is safe: CheckSafeToScaleCluster failed to get bootstrap scaling strategy: failed to get openshift-etcd namespace: namespace "openshift-etcd" not found...
      
      which is evidently wrong, because the api has just responded with that exact status, which means etcd has returned this as a result.    
      
      We should reword this message to indicate the actual error.
      
      Code path is here:
      https://github.com/openshift/cluster-etcd-operator/blob/release-4.17/pkg/operator/ceohelpers/bootstrap.go#L120-L123

      Version-Release number of selected component (if applicable):

      any supported release 

      How reproducible:

      always    

      Steps to Reproduce:

          1. created some temporary downtime on apiserver
          2. check the CEO status using oc get co    

      Actual results:

      CEO returns "failed to get openshift-etcd namespace: namespace "openshift-etcd" not found."

      Expected results:

      CEO should not indicate that namespace is missing    

      Additional info:

          

              dwest@redhat.com Dean West
              tjungblu@redhat.com Thomas Jungblut
              Ge Liu Ge Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: