Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-5079

Quay operator pod can not deploy quay pods when set horizontalpodautoscaler as managed in OCP 4.13

XMLWordPrintable

    • False
    • None
    • False
    • 0

      Description of problem:

      Quay operator pod can not deploy quay pods when set horizontalpodautoscaler as managed in OCP 4.13.
          

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

       

      quay-operator-bundle-container-v3.8.2-7
      Index image v4.13: registry-proxy.engineering.redhat.com/rh-osbs/iib:429785 
      

      How reproducible:

      always

      Steps to Reproduce:

      1. set up quay 3.8.2-7 in OCP 4.13 with below configuration

      ------------------
      apiVersion: quay.redhat.com/v1
      kind: QuayRegistry
      metadata:
        name: quayregistry
        namespace: quay-enterprise 
      spec:
        configBundleSecret: config-bundle-secret 
        components:
          - kind: clair
            managed: true 
          - kind: postgres
            managed: true 
          - kind: objectstorage
            managed: false 
          - kind: redis
            managed: true 
          - kind: horizontalpodautoscaler
            managed: true 
          - kind: route
            managed: true 
          - kind: mirror
            managed: true 
          - kind: monitoring
            managed: false 
          - kind: quay
            managed: true
            overrides:
              env:    
              - name: DEBUGLOG
                value: "true"

      Actual results:

      Quay operator pod can not deploy quay pods, the errer log are 

       

      $ oc logs quay-operator.v3.8.2-7b6b774955-szhh5
      .........
      1.676345646595593e+09    ERROR    controllers.QuayRegistry    failed to create/update object    {"quayregistry": "quay-enterprise/quayregistry", "kind": "HorizontalPodAutoscaler", "name": "quayregistry-quay-mirror", "error": "no matches for kind \"HorizontalPodAutoscaler\" in version \"autoscaling/v2beta2\""}
      github.com/quay/quay-operator/controllers/quay.(*QuayRegistryReconciler).Reconcile
          /workspace/controllers/quay/quayregistry_controller.go:458
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
          /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
          /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
          /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
          /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227
      1.6763456465958538e+09    DEBUG    events    Warning    {"object": {"kind":"QuayRegistry","namespace":"quay-enterprise","name":"quayregistry","uid":"a631c81b-a033-4692-bf6f-d2cb98b4b81f","apiVersion":"quay.redhat.com/v1","resourceVersion":"78018"}, "reason": "ComponentCreationFailed", "message": "error creating object: no matches for kind \"HorizontalPodAutoscaler\" in version \"autoscaling/v2beta2\""}
      

      Expected results:

      quay pods should be deployed successfully.

       

       

            obulatov@redhat.com Oleg Bulatov
            rhwhu Weihua Hu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: