Uploaded image for project: 'Serverless logic'
  1. Serverless logic
  2. SRVLOGIC-185

Serverless logic operator builder is not able to find builder config ConfigMap

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.33.0
    • 1.31.0, 1.32.0
    • Cloud:Operator
    • None
    • False
    • None
    • False
    • Hide

      Deploy Serverless logic operator using the Operator hub and then create a new serverless workflow (e.g. greetings example).
      Expected results - workflow shold be build and pod for the workflow app is running
      Actual result - workflow build does not start, in operator pod log is reconciler error message

      Workaround:

      In operator's namespace create a copy of 'logic-operator-rhel8-builder-config' configMap with name 'sonataflow-operator-builder-config

      Show
      Deploy Serverless logic operator using the Operator hub and then create a new serverless workflow (e.g. greetings example). Expected results - workflow shold be build and pod for the workflow app is running Actual result - workflow build does not start, in operator pod log is reconciler error message Workaround: In operator's namespace create a copy of 'logic-operator-rhel8-builder-config' configMap with name 'sonataflow-operator-builder-config

      When is deployed productised SonataFlow Operator (image openshift-serverless-1-tech-preview/logic-operator-rhel8) into the OCP cluster using the OpenShift catalog, then builder is failing with following error message:

      E1128 21:17:48.494139       1 config.go:65] "fetching configmap" err="ConfigMap \"sonataflow-operator-builder-config\" not found" name="sonataflow-operator-builder-config"
      E1128 21:17:48.494192       1 builder.go:55] "Failed to get common configMap for Workflow Builder. Make sure that sonataflow-operator-builder-config is present in the operator namespace." err="ConfigMap \"sonataflow-operator-builder-config\" not found"
      E1128 21:17:48.494207       1 sonataflowbuild_controller.go:81] "Failed to get create a build manager to handle the workflow build" err="ConfigMap \"sonataflow-operator-builder-config\" not found"
      E1128 21:17:48.494281       1 controller.go:324] sonataflow-manager "msg"="Reconciler error" "error"="ConfigMap \"sonataflow-operator-builder-config\" not found" "SonataFlowBuild"={"name":"greeting","namespace":"usecase1"} "controller"="sonataflowbuild" "controllerGroup"="sonataflow.org" "controllerKind"="SonataFlowBuild" "name"="greeting" "namespace"="usecase1" "reconcileID"="47a9b890-e471-4edb-94d1-442989d9efee"
      

      The logic-operator deployed from catalog creates the ConfigMap, but the name is different than expected. This because the ConfigMap name is set as constant in the operator. See this line in builder/config.go.
      ConfigMap created by bundle:
      `logic-operator-rhel8-builder-config`
      Expected ConfigMap by operator:
      `sonataflow-operator-builder-config`

      Fix proposal:
      serverless logic-operator should expect the productised version of ConfigMap, the constant for ConfigMap name needs to be change for the product build of operator.

              rhn-support-zanini Ricardo Zanini
              jakubschwan Jakub Schwan
              Jakub Schwan, Ricardo Zanini
              Jakub Schwan Jakub Schwan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: