Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12424

Unable to specify external DB for syndesis

XMLWordPrintable

      In 7.5 there was a possibility to use external DB for syndesis - https://github.com/syndesisio/syndesis/pull/6789 , the workflow was to create a syndesis-global-config secret with the password: https://github.com/syndesisio/syndesis/pull/6789#issuecomment-538781387

      Related code is here: https://github.com/syndesisio/syndesis/blob/master/install/operator/pkg/syndesis/configuration/configuration.go#L282-L310

      It seems that this workflow doesn't work on master, as if there is a syndesis-global-config present, the operator prints this error only and doesn't deploy anything:

      {"level":"info","ts":1575638758.5015585,"logger":"cmd","msg":"Go Version: go1.12"}
      {"level":"info","ts":1575638758.5016458,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
      {"level":"info","ts":1575638758.5016623,"logger":"cmd","msg":"Version of operator-sdk: v0.10.0+git"}
      {"level":"info","ts":1575638758.501677,"logger":"cmd","msg":"Syndesis Operator Version: 0.0.1"}
      {"level":"info","ts":1575638758.5056114,"logger":"leader","msg":"Trying to become the leader."}
      {"level":"info","ts":1575638758.5904608,"logger":"leader","msg":"No pre-existing lock was found."}
      {"level":"info","ts":1575638758.6000798,"logger":"leader","msg":"Became the leader."}
      {"level":"info","ts":1575638758.6341841,"logger":"cmd","msg":"registering resource schemes."}
      {"level":"info","ts":1575638758.6371043,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"syndesis-controller","source":"kind source: /, Kind="}
      {"level":"info","ts":1575638758.7198484,"logger":"metrics","msg":"Metrics Service object created","Service.Name":"syndesis-operator-metrics","Service.Namespace":"avano-syndesis"}
      {"level":"info","ts":1575638758.8202622,"logger":"kubebuilder.controller","msg":"Starting Controller","controller":"syndesis-controller"}
      {"level":"info","ts":1575638758.9218388,"logger":"kubebuilder.controller","msg":"Starting workers","controller":"syndesis-controller","worker count":1}
      {"level":"info","ts":1575638758.922069,"logger":"action","msg":"Syndesis resource initialized","type":"initialize","name":"app","version":"1.9.100-20191205"}
      {"level":"info","ts":1575638758.9297001,"logger":"action","msg":"Installing Syndesis resource","type":"install","name":"app"}
      {"level":"error","ts":1575638759.0304604,"logger":"controller","msg":"Error reconciling","action":"*action.installAction","phase":"Installing","error":"no configuration found","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/syndesisio/syndesis/install/operator/pkg/controller/syndesis.(*ReconcileSyndesis).Reconcile\n\tsrc/github.com/syndesisio/syndesis/install/operator/pkg/controller/syndesis/syndesis_controller.go:120\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\nk8s.io/apimachinery/pkg/util/wait.Until\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
      {"level":"error","ts":1575638759.0306468,"logger":"kubebuilder.controller","msg":"Reconciler error","controller":"syndesis-controller","request":"avano-syndesis/app","error":"no configuration found","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:217\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\nk8s.io/apimachinery/pkg/util/wait.Until\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
      

      The difference between 1.8 and 1.9.100-20191205 is obvious using these steps (without using external db):

      1. create namespace
      2. create a secret syndesis-global-config with random content
      3. use "install" from the binary
      
      1.8: the operator deploys syndesis without any problem and overwrites the syndesis-global-config with necessary values
      1.9.100-20191205: the operator fails to deploy with mentioned error
      

            parichar@redhat.com Paul Richardson
            avano@redhat.com Andrej Vano
            Andrej Vano Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: