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

Todo buildconfig breaks upgrade process

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • fuse-7.6-CR4
    • fuse-7.x-GA, fuse-7.6-GA
    • Fuse Online
    • None

      "Todo" addon configuration was changed recently from using the image stream tag to use direct image reference here: https://github.com/syndesisio/syndesis/pull/7996

      This breaks the upgrade process:

      {"level":"info","ts":1583151417.1720002,"logger":"cmd","msg":"Go Version: go1.13.8"}
      {"level":"info","ts":1583151417.1721356,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
      {"level":"info","ts":1583151417.1721547,"logger":"cmd","msg":"Version of operator-sdk: v0.15.0"}
      {"level":"info","ts":1583151417.1721754,"logger":"cmd","msg":"Syndesis Operator Version: 1.9.1-20200302"}
      {"level":"info","ts":1583151417.1721826,"logger":"cmd","msg":"Syndesis Operator Image: docker.io/avano/syndesis-operator"}
      {"level":"info","ts":1583151418.034001,"logger":"util","msg":"Connecting to PostgreSQL server running at syndesis-db:5432"}
      {"level":"info","ts":1583151418.058148,"logger":"configuration","msg":"PostgreSQL upgrade summary","source-postgres-version":"9.50","target-postgres-version":"9.60","perform-upgrade":"true"}
      {"level":"info","ts":1583151418.0582252,"logger":"leader","msg":"Trying to become the leader."}
      {"level":"info","ts":1583151418.9284515,"logger":"leader","msg":"No pre-existing lock was found."}
      {"level":"info","ts":1583151418.9330573,"logger":"leader","msg":"Became the leader."}
      {"level":"info","ts":1583151419.7910874,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":"0.0.0.0:8383"}
      {"level":"info","ts":1583151419.7919164,"logger":"cmd","msg":"registering resource schemes."}
      {"level":"info","ts":1583151419.8015432,"logger":"versions","msg":"updating syndesis api","version from":"v1alpha1","version to":"v1beta1","from name":"app","from version":"1.8.13","to name":"app","to version":"1.8.13"}
      {"level":"info","ts":1583151421.5521178,"logger":"metrics","msg":"Metrics Service object updated","Service.Name":"syndesis-operator-metrics","Service.Namespace":"avano-syndesis"}
      {"level":"info","ts":1583151422.404276,"logger":"cmd","msg":"Could not create ServiceMonitor object","error":"no ServiceMonitor registered with the API"}
      {"level":"info","ts":1583151422.4043312,"logger":"cmd","msg":"Install prometheus-operator in your cluster to create ServiceMonitor objects","error":"no ServiceMonitor registered with the API"}
      {"level":"info","ts":1583151422.4046795,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"}
      {"level":"info","ts":1583151422.4046772,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"syndesis-controller","source":"kind source: /, Kind="}
      {"level":"info","ts":1583151422.4050167,"logger":"controller-runtime.controller","msg":"Starting Controller","controller":"syndesis-controller"}
      {"level":"info","ts":1583151422.5052295,"logger":"controller-runtime.controller","msg":"Starting workers","controller":"syndesis-controller","worker count":1}
      {"level":"info","ts":1583151425.5138245,"logger":"controller","msg":"syndesis resource changed in the meantime, requeue and rerun in 5 seconds","name":"app"}
      {"level":"info","ts":1583151426.367828,"logger":"action","msg":"Upgrading syndesis resource ","type":"upgrade","name":"app","current version":"1.8.13","target version":"1.9.1-20200302"}
      {"level":"info","ts":1583151426.3678803,"logger":"action","msg":"running step","type":"upgrade","step":"Scale down"}
      {"level":"info","ts":1583151426.367886,"logger":"action","msg":"scale DeploymentConfig","type":"upgrade","direction":"down","deployments":["syndesis-meta","syndesis-server"]}
      {"level":"info","ts":1583151426.4686182,"logger":"action","msg":"scaling DeploymentConfigs","type":"upgrade","name":"syndesis-meta","desired replicas":0,"replicas":1}
      {"level":"info","ts":1583151426.4866138,"logger":"action","msg":"scaling DeploymentConfigs","type":"upgrade","name":"syndesis-server","desired replicas":0,"replicas":1}
      {"level":"info","ts":1583151426.5094907,"logger":"action","msg":"waiting for DeploymentConfig to scale","type":"upgrade","direction":"down","deployments":["syndesis-meta","syndesis-server"]}
      {"level":"info","ts":1583151436.5099747,"logger":"action","msg":"deploymentConfig successfully scaled","type":"upgrade","name":"syndesis-meta","desired replicas":0,"available replicas":0}
      {"level":"info","ts":1583151436.5101032,"logger":"action","msg":"deploymentConfig successfully scaled","type":"upgrade","name":"syndesis-server","desired replicas":0,"available replicas":0}
      {"level":"info","ts":1583151436.5101264,"logger":"action","msg":"running step","type":"upgrade","step":"Backup"}
      {"level":"info","ts":1583151436.510132,"logger":"backup","msg":"starting backup for syndesis","action":"backup"}
      {"level":"info","ts":1583151436.5826037,"logger":"backup","msg":"Initiating database backup ...","action":"backup"}
      {"level":"info","ts":1583151436.5900588,"logger":"util","msg":"Connecting to PostgreSQL server running at syndesis-db:5432"}
      {"level":"info","ts":1583151436.6098342,"logger":"configuration","msg":"PostgreSQL upgrade summary","source-postgres-version":"9.50","target-postgres-version":"9.60","perform-upgrade":"true"}
      {"level":"info","ts":1583151451.6351867,"logger":"backup","msg":"Backup compiler container terminated so extracting data from logger container","action":"backup"}
      {"level":"info","ts":1583151451.7459404,"logger":"backup","msg":"Backup extraction to complete","action":"backup","Running time":"15s"}
      {"level":"info","ts":1583151451.7618992,"logger":"backup","msg":"backup for syndesis done","action":"backup"}
      {"level":"info","ts":1583151451.7619479,"logger":"action","msg":"running step","type":"upgrade","step":"Database migration"}
      {"level":"info","ts":1583151451.8634202,"logger":"util","msg":"Connecting to PostgreSQL server running at syndesis-db:5432"}
      {"level":"info","ts":1583151451.8861234,"logger":"configuration","msg":"PostgreSQL upgrade summary","source-postgres-version":"9.50","target-postgres-version":"9.60","perform-upgrade":"true"}
      {"level":"info","ts":1583151461.9955106,"logger":"action","msg":"waiting for database migration to finish","type":"upgrade","active jobs":1,"running time":"10s"}
      {"level":"info","ts":1583151471.895085,"logger":"action","msg":"waiting for database migration to finish","type":"upgrade","active jobs":1,"running time":"20s"}
      {"level":"info","ts":1583151481.8950496,"logger":"action","msg":"database migration job successfully finished","type":"upgrade","active jobs":0,"succeeded jobs":1,"running time":"30s"}
      {"level":"info","ts":1583151481.895142,"logger":"action","msg":"running step","type":"upgrade","step":"Install"}
      {"level":"info","ts":1583151481.895156,"logger":"action","msg":"running step","type":"upgrade","step":"Scale up"}
      {"level":"info","ts":1583151481.8951623,"logger":"action","msg":"scale DeploymentConfig","type":"upgrade","direction":"up","deployments":["syndesis-meta","syndesis-server"]}
      {"level":"info","ts":1583151481.8952856,"logger":"action","msg":"scaling DeploymentConfigs","type":"upgrade","name":"syndesis-meta","desired replicas":1,"replicas":0}
      {"level":"info","ts":1583151481.9053159,"logger":"action","msg":"scaling DeploymentConfigs","type":"upgrade","name":"syndesis-server","desired replicas":1,"replicas":0}
      {"level":"info","ts":1583151481.9121172,"logger":"action","msg":"waiting for DeploymentConfig to scale","type":"upgrade","direction":"up","deployments":["syndesis-meta","syndesis-server"]}
      {"level":"info","ts":1583151491.9125485,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-meta","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151491.9127045,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151501.9127123,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-meta","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151501.912995,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151511.9125125,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-meta","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151511.9126334,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151521.912481,"logger":"action","msg":"deploymentConfig successfully scaled","type":"upgrade","name":"syndesis-meta","desired replicas":1,"available replicas":1}
      {"level":"info","ts":1583151521.9126198,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151531.9125454,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151541.9125397,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151551.912568,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151561.9125195,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151571.9138901,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151581.9125335,"logger":"action","msg":"waiting for DeploymentConfig to reach desired number of replicas","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":0}
      {"level":"info","ts":1583151591.912528,"logger":"action","msg":"deploymentConfig successfully scaled","type":"upgrade","name":"syndesis-server","desired replicas":1,"available replicas":1}
      {"level":"info","ts":1583151591.9126115,"logger":"action","msg":"Syndesis resource upgraded","type":"upgrade","name":"app","target version":"1.9.1-20200302"}
      {"level":"info","ts":1583151594.921962,"logger":"controller","msg":"syndesis resource changed in the meantime, requeue and rerun in 5 seconds","name":"app"}
      {"level":"info","ts":1583151594.9221165,"logger":"action","msg":"failure while running post upgrade run","type":"upgrade","name":"app","target version":"1.9.1-20200302"}
      {"level":"info","ts":1583151594.9221706,"logger":"action","msg":"attempting again to run post upgrade","type":"upgrade","name":"app"}
      {"level":"info","ts":1583151594.9222012,"logger":"action","msg":"installing Syndesis resource for the first time after upgrading","type":"install","name":"app"}
      {"level":"info","ts":1583151594.928179,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-meta","app":"app"}
      {"level":"info","ts":1583151594.936202,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-server","app":"app"}
      {"level":"info","ts":1583151594.9406404,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-ui","app":"app"}
      {"level":"info","ts":1583151594.945395,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-prometheus","app":"app"}
      {"level":"info","ts":1583151599.947243,"logger":"util","msg":"Connecting to PostgreSQL server running at syndesis-db:5432"}
      {"level":"info","ts":1583151599.97258,"logger":"configuration","msg":"PostgreSQL upgrade summary","source-postgres-version":"9.50","target-postgres-version":"9.60","perform-upgrade":"true"}
      {"level":"info","ts":1583151600.319156,"logger":"action","msg":"resource updated","type":"install","kind":"ImageStream","name":"syndesis-s2i","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.331037,"logger":"action","msg":"resource updated","type":"install","kind":"Secret","name":"syndesis-server-secret","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.339538,"logger":"action","msg":"resource updated","type":"install","kind":"Secret","name":"syndesis-global-config","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.3473148,"logger":"action","msg":"resource updated","type":"install","kind":"ServiceAccount","name":"syndesis-default","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.3545735,"logger":"action","msg":"resource updated","type":"install","kind":"ServiceAccount","name":"syndesis-server","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.3614666,"logger":"action","msg":"resource updated","type":"install","kind":"ServiceAccount","name":"syndesis-integration","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.3709168,"logger":"action","msg":"resource updated","type":"install","kind":"ServiceAccount","name":"syndesis-prometheus","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.3791995,"logger":"action","msg":"resource updated","type":"install","kind":"ConfigMap","name":"syndesis-server-config","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.396409,"logger":"action","msg":"resource updated","type":"install","kind":"Service","name":"syndesis-ui","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.4149525,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-ui","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.4251363,"logger":"action","msg":"resource updated","type":"install","kind":"ConfigMap","name":"syndesis-ui-config","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.4404528,"logger":"action","msg":"resource updated","type":"install","kind":"Service","name":"syndesis-meta","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.4599972,"logger":"action","msg":"resource updated","type":"install","kind":"PersistentVolumeClaim","name":"syndesis-meta","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.4711225,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-meta","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.489709,"logger":"action","msg":"resource updated","type":"install","kind":"ConfigMap","name":"syndesis-meta-config","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.5196233,"logger":"action","msg":"resource updated","type":"install","kind":"Service","name":"syndesis-oauthproxy","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.5393631,"logger":"action","msg":"resource updated","type":"install","kind":"DeploymentConfig","name":"syndesis-oauthproxy","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.5819347,"logger":"action","msg":"resource updated","type":"install","kind":"Service","name":"syndesis-server","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.6749935,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-server","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.766829,"logger":"action","msg":"resource updated","type":"install","kind":"ConfigMap","name":"syndesis-prometheus-agent-config","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151600.8893173,"logger":"action","msg":"resource updated","type":"install","kind":"Role","name":"syndesis-editor","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.0789788,"logger":"action","msg":"resource updated","type":"install","kind":"RoleBinding","name":"syndesis-server-editor","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.0880759,"logger":"action","msg":"resource updated","type":"install","kind":"Role","name":"syndesis-viewer","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.166406,"logger":"action","msg":"resource updated","type":"install","kind":"RoleBinding","name":"syndesis-prometheus-viewer","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.2678463,"logger":"action","msg":"resource updated","type":"install","kind":"ConfigMap","name":"syndesis-prometheus-config","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.3668559,"logger":"action","msg":"resource updated","type":"install","kind":"Service","name":"syndesis-prometheus","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.4671278,"logger":"action","msg":"resource updated","type":"install","kind":"PersistentVolumeClaim","name":"syndesis-prometheus","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.7135227,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-prometheus","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.72737,"logger":"action","msg":"resource updated","type":"install","kind":"ConfigMap","name":"syndesis-db-metrics-config","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.7675226,"logger":"action","msg":"resource updated","type":"install","kind":"ConfigMap","name":"syndesis-sampledb-config","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.8686192,"logger":"action","msg":"resource updated","type":"install","kind":"ConfigMap","name":"syndesis-db-conf","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151601.9728024,"logger":"action","msg":"resource updated","type":"install","kind":"Service","name":"syndesis-db","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151602.0674639,"logger":"action","msg":"resource updated","type":"install","kind":"PersistentVolumeClaim","name":"syndesis-db","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151602.2611253,"logger":"action","msg":"resource updated","type":"install","kind":"DeploymentConfig","name":"syndesis-db","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151602.2748537,"logger":"action","msg":"resource updated","type":"install","kind":"Service","name":"todo","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151602.3686187,"logger":"action","msg":"resource updated","type":"install","kind":"Route","name":"todo","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151602.497612,"logger":"action","msg":"resource updated","type":"install","kind":"ImageStream","name":"todo","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151602.5666096,"logger":"action","msg":"failed to create or replace resource","type":"install","kind":"BuildConfig","name":"todo","namespace":"avano-syndesis"}
      {"level":"error","ts":1583151602.5666606,"logger":"controller","msg":"Error reconciling","action":"*action.installAction","phase":"PostUpgradeRun","error":"BuildConfig.build.openshift.io \"todo\" is invalid: spec.strategy.sourceStrategy.from.namespace: Invalid value: \"openshift\": not valid when used with a 'DockerImage'","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/git/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/syndesisio/syndesis/install/operator/pkg/controller/syndesis.(*ReconcileSyndesis).Reconcile\n\t/git/syndesis/install/operator/pkg/controller/syndesis/syndesis_controller.go:126\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
      {"level":"info","ts":1583151602.5670257,"logger":"action","msg":"failure while running post upgrade run","type":"upgrade","name":"app","target version":"1.9.1-20200302"}
      {"level":"info","ts":1583151602.5670497,"logger":"action","msg":"attempting again to run post upgrade","type":"upgrade","name":"app"}
      {"level":"info","ts":1583151602.56707,"logger":"action","msg":"installing Syndesis resource for the first time after upgrading","type":"install","name":"app"}
      {"level":"info","ts":1583151602.571746,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-meta","app":"app"}
      {"level":"info","ts":1583151602.5779917,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-server","app":"app"}
      {"level":"info","ts":1583151602.5926862,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-ui","app":"app"}
      {"level":"info","ts":1583151602.6063933,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-prometheus","app":"app"}
      {"level":"info","ts":1583151607.6795206,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-ui","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151607.7105477,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-meta","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151607.7791421,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-server","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151607.858294,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-prometheus","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151608.366913,"logger":"action","msg":"failed to create or replace resource","type":"install","kind":"BuildConfig","name":"todo","namespace":"avano-syndesis"}
      {"level":"error","ts":1583151608.3669865,"logger":"controller","msg":"Error reconciling","action":"*action.installAction","phase":"PostUpgradeRun","error":"BuildConfig.build.openshift.io \"todo\" is invalid: spec.strategy.sourceStrategy.from.namespace: Invalid value: \"openshift\": not valid when used with a 'DockerImage'","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/git/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/syndesisio/syndesis/install/operator/pkg/controller/syndesis.(*ReconcileSyndesis).Reconcile\n\t/git/syndesis/install/operator/pkg/controller/syndesis/syndesis_controller.go:126\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
      {"level":"info","ts":1583151612.5674484,"logger":"action","msg":"failure while running post upgrade run","type":"upgrade","name":"app","target version":"1.9.1-20200302"}
      {"level":"info","ts":1583151612.5675533,"logger":"action","msg":"attempting again to run post upgrade","type":"upgrade","name":"app"}
      {"level":"info","ts":1583151612.5676055,"logger":"action","msg":"installing Syndesis resource for the first time after upgrading","type":"install","name":"app"}
      {"level":"info","ts":1583151612.714121,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-meta","app":"app"}
      {"level":"info","ts":1583151612.7225478,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-server","app":"app"}
      {"level":"info","ts":1583151612.736674,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-ui","app":"app"}
      {"level":"info","ts":1583151612.7524714,"logger":"action","msg":"force deleted DeploymentConfig","type":"install","name":"syndesis-prometheus","app":"app"}
      {"level":"info","ts":1583151617.8203914,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-ui","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151617.850022,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-meta","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151617.90599,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-server","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151617.9667106,"logger":"action","msg":"resource created","type":"install","kind":"DeploymentConfig","name":"syndesis-prometheus","namespace":"avano-syndesis"}
      {"level":"info","ts":1583151618.5101008,"logger":"action","msg":"failed to create or replace resource","type":"install","kind":"BuildConfig","name":"todo","namespace":"avano-syndesis"}
      {"level":"error","ts":1583151618.5101771,"logger":"controller","msg":"Error reconciling","action":"*action.installAction","phase":"PostUpgradeRun","error":"BuildConfig.build.openshift.io \"todo\" is invalid: spec.strategy.sourceStrategy.from.namespace: Invalid value: \"openshift\": not valid when used with a 'DockerImage'","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/git/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/syndesisio/syndesis/install/operator/pkg/controller/syndesis.(*ReconcileSyndesis).Reconcile\n\t/git/syndesis/install/operator/pkg/controller/syndesis/syndesis_controller.go:126\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
      {"level":"info","ts":1583151628.5113811,"logger":"action","msg":"failure while running post upgrade run","type":"upgrade","name":"app","target version":"1.9.1-20200302"}
      {"level":"info","ts":1583151628.5116422,"logger":"action","msg":"syndesis first run after upgrade failed repeatedly, attempting to rollback now","type":"upgrade"}
      {"level":"info","ts":1583151628.5116818,"logger":"action","msg":"rolling back step","type":"upgrade","step":"Scale down"}
      {"level":"info","ts":1583151628.511706,"logger":"action","msg":"scale DeploymentConfig","type":"upgrade","direction":"down","deployments":["syndesis-meta","syndesis-server"]}
      {"level":"info","ts":1583151628.5119565,"logger":"action","msg":"scaling DeploymentConfigs","type":"upgrade","name":"syndesis-meta","desired replicas":0,"replicas":1}
      {"level":"info","ts":1583151628.5236857,"logger":"action","msg":"scaling DeploymentConfigs","type":"upgrade","name":"syndesis-server","desired replicas":0,"replicas":1}
      {"level":"info","ts":1583151628.530572,"logger":"action","msg":"waiting for DeploymentConfig to scale","type":"upgrade","direction":"down","deployments":["syndesis-meta","syndesis-server"]}
      {"level":"info","ts":1583151638.5312061,"logger":"action","msg":"deploymentConfig successfully scaled","type":"upgrade","name":"syndesis-meta","desired replicas":0,"available replicas":0}
      {"level":"info","ts":1583151638.5313616,"logger":"action","msg":"deploymentConfig successfully scaled","type":"upgrade","name":"syndesis-server","desired replicas":0,"available replicas":0}
      {"level":"info","ts":1583151638.5313754,"logger":"action","msg":"rolling back step","type":"upgrade","step":"Database migration"}
      {"level":"info","ts":1583151638.5339968,"logger":"action","msg":"cleaning up migration job","type":"upgrade"}
      {"level":"info","ts":1583151638.542534,"logger":"action","msg":"cleaning up migration pods","type":"upgrade"}
      {"level":"info","ts":1583151638.5670848,"logger":"backup","msg":"starting restore for syndesis database","action":"backup","backup":"/tmp/1583151425/1.9.1-20200302/1583151436/syndesis-db.dump"}
      {"level":"info","ts":1583151645.8289711,"logger":"action","msg":"rolling back step","type":"upgrade","step":"Install"}
      {"level":"info","ts":1583151645.829078,"logger":"backup","msg":"starting restore for syndesis resources","action":"backup","backup":"/tmp/1583151425/1.9.1-20200302/1583151436/resources"}
      {"level":"info","ts":1583151645.9146545,"logger":"backup","msg":"resource restored","action":"backup","resources":"syndesis-db-conf","kind":"ConfigMap"}
      {"level":"info","ts":1583151645.9203458,"logger":"backup","msg":"resource restored","action":"backup","resources":"syndesis-db-metrics-config","kind":"ConfigMap"}
      {"level":"info","ts":1583151645.9275887,"logger":"backup","msg":"resource restored","action":"backup","resources":"syndesis-meta-config","kind":"ConfigMap"}
      {"level":"info","ts":1583151645.9341385,"logger":"backup","msg":"resource restored","action":"backup","resources":"syndesis-prometheus-agent-config","kind":"ConfigMap"}
      {"level":"info","ts":1583151645.9409738,"logger":"backup","msg":"resource restored","action":"backup","resources":"syndesis-prometheus-config","kind":"ConfigMap"}
      {"level":"info","ts":1583151645.9547584,"logger":"backup","msg":"resource restored","action":"backup","resources":"syndesis-sampledb-config","kind":"ConfigMap"}
      {"level":"info","ts":1583151645.9658968,"logger":"backup","msg":"resource restored","action":"backup","resources":"syndesis-server-config","kind":"ConfigMap"}
      {"level":"info","ts":1583151645.9743416,"logger":"backup","msg":"resource restored","action":"backup","resources":"syndesis-ui-config","kind":"ConfigMap"}
      {"level":"info","ts":1583151645.9914904,"logger":"backup","msg":"resource restored","action":"backup","resources":"syndesis-db","kind":"DeploymentConfig"}
      {"level":"error","ts":1583151646.0082545,"logger":"backup","msg":"error while restoring resources","action":"backup","resources":"syndesis-meta","kind":"DeploymentConfig","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/git/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/syndesisio/syndesis/install/operator/pkg/syndesis/backup.(*Backup).RestoreResources\n\t/git/syndesis/install/operator/pkg/syndesis/backup/backup.go:453\ngithub.com/syndesisio/syndesis/install/operator/pkg/syndesis/upgrade.(*install).rollback\n\t/git/syndesis/install/operator/pkg/syndesis/upgrade/install.go:54\ngithub.com/syndesisio/syndesis/install/operator/pkg/syndesis/upgrade.(*upgrade).Rollback\n\t/git/syndesis/install/operator/pkg/syndesis/upgrade/upgrade.go:119\ngithub.com/syndesisio/syndesis/install/operator/pkg/syndesis/action.(*upgradeAction).Execute\n\t/git/syndesis/install/operator/pkg/syndesis/action/upgrade.go:90\ngithub.com/syndesisio/syndesis/install/operator/pkg/controller/syndesis.(*ReconcileSyndesis).Reconcile\n\t/git/syndesis/install/operator/pkg/controller/syndesis/syndesis_controller.go:125\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
      {"level":"error","ts":1583151646.0085454,"logger":"action","msg":"an error has encountered while rolling back, some manual steps might be required","type":"upgrade","error":"Operation cannot be fulfilled on deploymentconfigs.apps.openshift.io \"syndesis-meta\": StorageError: invalid object, Code: 4, Key: /openshift.io/deploymentconfigs/avano-syndesis/syndesis-meta, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 318208d5-5c7f-11ea-8380-fa163e748b89, UID in object meta: 2d92f464-5c80-11ea-8380-fa163e748b89","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/git/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/syndesisio/syndesis/install/operator/pkg/syndesis/upgrade.(*upgrade).Rollback\n\t/git/syndesis/install/operator/pkg/syndesis/upgrade/upgrade.go:120\ngithub.com/syndesisio/syndesis/install/operator/pkg/syndesis/action.(*upgradeAction).Execute\n\t/git/syndesis/install/operator/pkg/syndesis/action/upgrade.go:90\ngithub.com/syndesisio/syndesis/install/operator/pkg/controller/syndesis.(*ReconcileSyndesis).Reconcile\n\t/git/syndesis/install/operator/pkg/controller/syndesis/syndesis_controller.go:125\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/git/syndesis/install/operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/git/syndesis/install/operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
      
      

      This is because the update of the resource changes only the affected field, so the build config ends with incorrect configuration:

      before:
      from:
                kind: ImageStreamTag
                name: 'php:7.0'
                namespace: openshift
      
      should be changed to:
      from:
                kind: DockerImage
                name: 'docker.io/centos/php-71-centos7'
      
      resulting patch:
      from:
                kind: DockerImage
                name: 'docker.io/centos/php-71-centos7'
                namespace: openshift <- this should not be here
      

      This can be worked around by scaling down the operator, deleting the todo buildconfig and then upgrading the operator, but then for some reason the todo build config is updated on each reconcile loop:

      {"level":"info","ts":1583166363.903244,"logger":"action","msg":"resource updated","type":"install","kind":"BuildConfig","name":"todo","namespace":"avano-syndesis"}
      {"level":"info","ts":1583166382.6639855,"logger":"util","msg":"Connecting to PostgreSQL server running at syndesis-db:5432"}
      {"level":"info","ts":1583166382.6917567,"logger":"configuration","msg":"PostgreSQL upgrade summary","source-postgres-version":"9.60","target-postgres-version":"9.60","perform-upgrade":"false"}
      {"level":"info","ts":1583166383.247898,"logger":"action","msg":"resource updated","type":"install","kind":"BuildConfig","name":"todo","namespace":"avano-syndesis"}
      {"level":"info","ts":1583166401.9964323,"logger":"util","msg":"Connecting to PostgreSQL server running at syndesis-db:5432"}
      {"level":"info","ts":1583166402.0206935,"logger":"configuration","msg":"PostgreSQL upgrade summary","source-postgres-version":"9.60","target-postgres-version":"9.60","perform-upgrade":"false"}
      {"level":"info","ts":1583166402.5781598,"logger":"action","msg":"resource updated","type":"install","kind":"BuildConfig","name":"todo","namespace":"avano-syndesis"}
      {"level":"info","ts":1583166421.3243842,"logger":"util","msg":"Connecting to PostgreSQL server running at syndesis-db:5432"}
      {"level":"info","ts":1583166421.3500202,"logger":"configuration","msg":"PostgreSQL upgrade summary","source-postgres-version":"9.60","target-postgres-version":"9.60","perform-upgrade":"false"}
      {"level":"info","ts":1583166421.9040582,"logger":"action","msg":"resource updated","type":"install","kind":"BuildConfig","name":"todo","namespace":"avano-syndesis"}
      {"level":"info","ts":1583166440.6589677,"logger":"util","msg":"Connecting to PostgreSQL server running at syndesis-db:5432"}
      {"level":"info","ts":1583166440.6933048,"logger":"configuration","msg":"PostgreSQL upgrade summary","source-postgres-version":"9.60","target-postgres-version":"9.60","perform-upgrade":"false"}
      {"level":"info","ts":1583166441.247575,"logger":"action","msg":"resource updated","type":"install","kind":"BuildConfig","name":"todo","namespace":"avano-syndesis"}
      
      

            lgarciaac Luis GarcĂ­a Acosta
            avano@redhat.com Andrej Vano
            Andrej Vano Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: