Uploaded image for project: 'Managed Service - API'
  1. Managed Service - API
  2. MGDAPI-6194

Granular databases does not work as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • None

      I as a customer I want to deploy 3scale with external system database but all the other databases should remain internal.
      When I set

      externalComponents:
        system:
          database: true

      in APIManager, 3scale operator fails to deploy 3scale successfully.
      3scale-operator logs:

      {"level":"error","ts":1654676834.7092304,"logger":"controller","msg":"Reconciler error","reconcilerGroup":"apps.3scale.net","reconcilerKind":"APIManager","controller":"apimanager","name":"3scale-aws","namespace":"3scale-granular-test","error":"Secret \"backend-redis\" not found","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/remote-source/deps/gomod/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:246\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:218\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:197... 

      It seems that with this setting external backend and system redises are required as well but they shouldn't be required.

      When we set

      externalComponents: 
        system: 
          database: true 
          redis: true

      it doesn't work either. and it fails with the same error.
      When only backend-redis is externalized we're getting

      Unable to attach or mount volumes: 
      unmounted volumes=[redis-config], unattached volumes=[redis-config 
      kube-api-access-dfkqd system-redis-storage]: timed out waiting for the 
      condition 

      and the redis-config configmap is not found

              Unassigned Unassigned
              ficap_devel Filip Čáp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: