Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2942

Unable to deploy immutable kie-server by using Operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.8.0.GA
    • 7.6.0.GA, 7.7.0.GA, 7.7.1.GA
    • Cloud
    • Release Notes
    • CR1
    • +
    • Hide
      Immutable environments do not successfully deploy in OpenShift using Operator by default.
      To successfully deploy immutable kie-server by Operator use useImageTags flag (In Operator UI check Use Image Tags field or add to KieApp spec `useImageTags: true`).
      Show
      Immutable environments do not successfully deploy in OpenShift using Operator by default. To successfully deploy immutable kie-server by Operator use useImageTags flag (In Operator UI check Use Image Tags field or add to KieApp spec `useImageTags: true`).
    • Hide

      use useImageTags flag .
      e.g.

      apiVersion: app.kiegroup.org/v2
      kind: KieApp
      metadata:
        name: rhdm-production-immutable
        annotations:
          consoleName: rhdm-production-immutable
          consoleTitle: DM Production Immutable
          consoleDesc: Deploys a DM Production Immutable environment
      spec:
        environment: rhdm-production-immutable
        useImageTags: true
        objects:
          servers:
            - build:
                kieServerContainerDeployment: rhdm-kieserver-hellorules=org.openshift.quickstarts:rhdm-kieserver-hellorules:1.6.0-SNAPSHOT
                gitSource:
                  uri: https://github.com/jboss-container-images/rhdm-7-openshift-image.git
                  reference: master
                  contextDir: quickstarts/hello-rules/hellorules
      
      Show
      use useImageTags flag . e.g. apiVersion: app.kiegroup.org/v2 kind: KieApp metadata: name: rhdm-production-immutable annotations: consoleName: rhdm-production-immutable consoleTitle: DM Production Immutable consoleDesc: Deploys a DM Production Immutable environment spec: environment: rhdm-production-immutable useImageTags: true objects: servers: - build: kieServerContainerDeployment: rhdm-kieserver-hellorules=org.openshift.quickstarts:rhdm-kieserver-hellorules:1.6.0-SNAPSHOT gitSource: uri: https://github.com/jboss-container-images/rhdm-7-openshift-image.git reference: master contextDir: quickstarts/hello-rules/hellorules
    • Hide

      With Business Automation Operator, create KieApp by using the following yaml.

      https://github.com/kiegroup/kie-cloud-operator/blob/master/deploy/crs/v2/kieapp_rhdm_production-immutable.yaml

      Show
      With Business Automation Operator, create KieApp by using the following yaml. https://github.com/kiegroup/kie-cloud-operator/blob/master/deploy/crs/v2/kieapp_rhdm_production-immutable.yaml
    • 2020 Week 19-21 (from May 4)

      When deploying immutable kie-server to OpenShift v4.2.18 using the Operator method (Business Automation v1.4) with the following yaml,

      apiVersion: app.kiegroup.org/v2
      kind: KieApp
      metadata:
        name: rhdm-production-immutable
        annotations:
          consoleName: rhdm-production-immutable
          consoleTitle: DM Production Immutable
          consoleDesc: Deploys a DM Production Immutable environment
      spec:
        environment: rhdm-production-immutable
        objects:
          servers:
            - build:
                kieServerContainerDeployment: rhdm-kieserver-hellorules=org.openshift.quickstarts:rhdm-kieserver-hellorules:1.5.0-SNAPSHOT
                gitSource:
                  uri: https://github.com/jboss-container-images/rhdm-7-openshift-image.git
                  reference: master
                  contextDir: quickstarts/hello-rules/hellorules
      

      it fails with the following error in operator's pod.

      {
        "level": "error",
        "ts": "2020-05-14T07:02:44.430558521Z",
        "logger": "kieapp.controller",
        "msg": "Issue creating object. ImageStream.image.openshift.io \"rhdm-kieserver-rhel8@sha256\" is invalid: metadata.name: Invalid value: \"rhdm-kieserver-rhel8@sha256\": must match \"[a-z0-9]+(?:[._-][a-z0-9]+)*\"",
        "kind": "ImageStreamTag",
        "name": "rhdm-kieserver-rhel8@sha256:372d0de47fe02ecacca9f2b48f7ae0f7bfa81f0130eba4f3c6bd8d280c5a9fc1",
        "from": "registry.redhat.io/rhdm-7/rhdm-kieserver-rhel8@sha256:372d0de47fe02ecacca9f2b48f7ae0f7bfa81f0130eba4f3c6bd8d280c5a9fc1",
        "namespace": "ope2"
      }
      {
        "level": "error",
        "ts": "2020-05-14T07:02:44.430576416Z",
        "logger": "kieapp.controller",
        "msg": "ImageStream.image.openshift.io \"rhdm-kieserver-rhel8@sha256\" is invalid: metadata.name: Invalid value: \"rhdm-kieserver-rhel8@sha256\": must match \"[a-z0-9]+(?:[._-][a-z0-9]+)*\""
      }
      {
        "level": "error",
        "ts": 1589439764.4427147,
        "logger": "controller-runtime.controller",
        "msg": "Reconciler error",
        "controller": "kieapp-controller",
        "request": "ope2/rhdm-production-immutable",
        "error": "BuildConfig.build.openshift.io \"rhdm-production-immutable-kieserver\" is invalid: spec.strategy.sourceStrategy.from.name: Invalid value: \"rhdm-kieserver-rhel8@sha256\": invalid name syntax",
        "stacktrace": "github.com/go-logr/zapr.(*zapLogger).Error\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/github.com/go-logr/zapr/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:218\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:192\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:171\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/root/go/src/github.com/kiegroup/kie-cloud-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"
      }
      

              tohughes Tommy Hughes
              rhn-support-hmiura Hiroko Miura
              Jose Carvajal Hilario Jose Carvajal Hilario
              Jose Carvajal Hilario Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: