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

Race condition when deploying local Kogito runtime using CLI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • None
    • 1.1.0.Final
    • Operator
    • False
    • False
    • Undefined
    • Hide

      The issue was observed when following CLI command was used:

      kogito deploy dmn-springboot-example <local DMN file> --image-runtime kogito-springboot-ubi8-nightly:latest --image-s2i kogito-springboot-ubi8-s2i-nightly:latest --replicas 1 --runtime springboot
      
      Show
      The issue was observed when following CLI command was used: kogito deploy dmn-springboot-example <local DMN file> --image-runtime kogito-springboot-ubi8-nightly:latest --image-s2i kogito-springboot-ubi8-s2i-nightly:latest --replicas 1 --runtime springboot
    • ---
    • ---

    Description

      When Kogito runtime is deployed from local source files then the S2I build is triggered right after image streams are created. Sometimes the images from image streams are not fetched yet, causing error being thrown:

      Kogito Build Service successfully installed in the Project jenkins-cucumber-1ffd.
      Check the Service status by running 'oc describe kogitobuild/dmn-springboot-example -n jenkins-cucumber-1ffd'
      File(s) found: /tmp/kogito-examples295211259/dmn-springboot-example/src/main/resources/Traffic Violation.dmn.\nTriggering the new build
      Error resolving ImageStreamTag custom-kogito-springboot-ubi8-s2i-nightly:latest in namespace jenkins-cucumber-1ffd: unable to find latest tagged image
      

      Ideally CLI should check that images are fetched before triggering a build.

      Attachments

        Activity

          People

            rhn-support-fspolti Filippe Spolti
            ksuta Karel Suta
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: