Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-1771

Several Builds are triggered when deploying a Kogito Application using S2i

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 0.11.0
    • 0.9.0
    • Operator
    • None
    • Hide

      1.- Given the Kogito Cloud Operator
      2.- When deploy the Kogito App:

      apiVersion: app.kiegroup.org/v1alpha1
      kind: KogitoApp
      metadata:
        name: payroll
      spec:
        build:
          gitSource:
            contextDir: onboarding-example/payroll
            uri: 'https://github.com/kiegroup/kogito-examples'
          imageVersion: 0.9.0-rc2
          native: true
          resources:
            requests:
              memory: 4Gi
        replicas: 1
        runtime: quarkus
        service:
          labels:
            payments/date: process
            taxes/rate: process
            vacations/days: process
      

      3.- Sometimes (it's random!) some Builder are created (see description)

      Show
      1.- Given the Kogito Cloud Operator 2.- When deploy the Kogito App: apiVersion: app.kiegroup.org/v1alpha1 kind: KogitoApp metadata: name: payroll spec: build: gitSource: contextDir: onboarding-example/payroll uri: 'https: //github.com/kiegroup/kogito-examples' imageVersion: 0.9.0-rc2 native : true resources: requests: memory: 4Gi replicas: 1 runtime: quarkus service: labels: payments/date: process taxes/rate: process vacations/days: process 3.- Sometimes (it's random!) some Builder are created (see description)
    • 2020 Week 16-18 (from Apr 13)

    Description

      When deploy a new Kogito App, for example:

      apiVersion: app.kiegroup.org/v1alpha1
      kind: KogitoApp
      metadata:
        name: payroll
      spec:
        build:
          gitSource:
            contextDir: onboarding-example/payroll
            uri: 'https://github.com/kiegroup/kogito-examples'
          imageVersion: 0.9.0-rc2
          native: true
          resources:
            requests:
              memory: 4Gi
        replicas: 1
        runtime: quarkus
        service:
          labels:
            payments/date: process
            taxes/rate: process
            vacations/days: process
      

      Randomly, two Builder are triggered at almost the same time, see status of the KogitoApp with the following information:

      apiVersion: app.kiegroup.org/v1alpha1
      kind: KogitoApp
      metadata:
        generation: 4
        name: payroll
      status:
        builds:
          new:
            - payroll-builder-2
          running:
            - payroll-builder-1
        conditions:
          - lastTransitionTime: '2020-04-08T10:41:05Z'
            status: 'True'
            type: Provisioning
        deployments: {}
      

      Looking into each Builder, the first is triggered by:

      triggeredBy:
          - message: Image change
            imageChangeBuild:
              imageID: >-
                image-registry.openshift-image-registry.svc:5000/cucumber-tezz/kogito-quarkus-ubi8-s2i@sha256:729e158710dedba50a49943ba188d8f31d09568634896de9b903838fc4e34e94
              fromRef:
                kind: ImageStreamTag
                namespace: cucumber-tezz
                name: 'kogito-quarkus-ubi8-s2i:0.9.0-rc2'
      

      And the second only says:

      triggeredBy:
          - message: Triggered by payroll operator
      

      Attachments

        1. Builds1.png
          Builds1.png
          80 kB
        2. Builds2.png
          Builds2.png
          79 kB
        3. operator-log1.log
          139 kB
        4. operator-log2.log
          48 kB
        5. Screenshot from 2020-04-22 09-53-03.png
          Screenshot from 2020-04-22 09-53-03.png
          49 kB

        Issue Links

          Activity

            People

              rhn-support-zanini Ricardo Zanini Fernandes
              jcarvaja@redhat.com Jose Carvajal Hilario
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: