Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-7900

Operator failing to sync CRDs when applied using "oc apply"

XMLWordPrintable

    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Hide
      1. Login to the project where the apimanager is deployed using oc login and oc project commands.
      2. Make sure to update the systemMasterUrl in the with-tenant.yaml
      3. oc apply -f with-tenant.yaml
      4. Check the operator logs oc logs -c manager deployment/threescale-operator-controller-manager, you will notice the error "logger":"controllers.Backend","msg":"Failed to reconcile","backend":"3scaleapim/backend-api","error":"LookupProviderAccount: providerAccountFromSecretReferenceSource: Secret \"tennant-secret\" not found",
      Show
      Login to the project where the apimanager is deployed using oc login and oc project commands. Make sure to update the systemMasterUrl in the with-tenant.yaml oc apply -f with-tenant.yaml Check the operator logs oc logs -c manager deployment/threescale-operator-controller-manager , you will notice the error "logger":"controllers.Backend","msg":"Failed to reconcile","backend":"3scaleapim/backend-api","error":"LookupProviderAccount: providerAccountFromSecretReferenceSource: Secret \"tennant-secret\" not found",

      When running oc apply -f with-tenant.yaml command with the CRD content in with-tenant.yaml , the operator is failing to create the backend with the following error

      Message: LookupProviderAccount: providerAccountFromSecretReferenceSource: Secret "tennant-secret" not found
      

      If you scale the operator pod down and scale it back up, backend deployment will be successful.

      Why is the operator unable to recover this error without a restart?

        1. with-tenant.yaml
          0.9 kB
          Chamal Abeywardhana

              Unassigned Unassigned
              cabeywar-cssre Chamal Abeywardhana
              Martin Kudlej Martin Kudlej
              Eguzki Astiz Lezaun Eguzki Astiz Lezaun
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: