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

Cluster autoscaler pod couldn't be created

XMLWordPrintable

    • None
    • Approved
    • False
    • Hide

      None

      Show
      None
    • If Release Note Needed, Set a Value
    • Set a Value

      Description of problem:

      Create clusterautoscaler, autoscaler pod couldn't be created. Cluster autoscsler operator report: 
      E1008 05:50:23.965081       1 clusterautoscaler_controller.go:209] Error ensuring ClusterAutoscaler monitoring: error ensuring cluster autoscaler prometheusRule: admission webhook "prometheusrules.openshift.io" denied the request: Rules are not valid

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

      4.12.0-0.nightly-2022-10-05-053337

      How reproducible:

      always since 4.12.0-0.nightly-2022-10-04-081353

      Steps to Reproduce:

      1. Set up a cluster
      2. Create clusterautoscaler
      apiVersion: "autoscaling.openshift.io/v1"
      kind: "ClusterAutoscaler"
      metadata:
        name: "default"
      spec:
        balanceSimilarNodeGroups: true
        resourceLimits:
          maxNodesTotal: 20
        scaleDown:
          enabled: true
          delayAfterAdd: 10s
          delayAfterDelete: 10s
          delayAfterFailure: 10s
          unneededTime: 10s 3.
      

      Actual results:

      autoscaler pod couldn't be created, autoscsler operator report: 
      E1008 05:50:23.965081       1 clusterautoscaler_controller.go:209] Error ensuring ClusterAutoscaler monitoring: error ensuring cluster autoscaler prometheusRule: admission webhook "prometheusrules.openshift.io" denied the request: Rules are not valid
      
      No cluster-autoscaler-default prometheusrule
      $ oc -n openshift-machine-api get prometheusrules                                 
      NAME                                    AGE
      machine-api-operator-prometheus-rules   4h58m

      Expected results:

      autoscaler works well

      Additional info:

      Not sure if related with https://github.com/openshift/cluster-autoscaler-operator/pull/254

              joelspeed Joel Speed
              rhn-support-zhsun Zhaohua Sun
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: