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

Can't run kameletBinding with the native mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • camel-k-1.8.1
    • camel-k-1.8
    • Camel-K
    • None

      I created following KameletBinding

      apiVersion: camel.apache.org/v1alpha1
      kind: KameletBinding
      metadata:
        annotations:
          camel.apache.org/kamelet.icon: data:image/svg+xml;base64
          trait.camel.apache.org/quarkus.package-type: native
        creationTimestamp: "2022-09-22T11:36:28Z"
        generation: 1
        name: ftp-source-kburi-kamelet-to-log
        namespace: tnb-test-29a4e1fc
        resourceVersion: "27292221"
        uid: 3fc87840-cccd-48c8-90c3-d55fb4452126
      spec:
        integration:
          configuration:
          - type: property
            value: camel.main.streamCachingEnabled=true
        sink:
          properties: {}
          uri: log:info?showStreams=true
        source:
          properties:
            message: "test"
          ref:
            apiVersion: camel.apache.org/v1alpha1
            kind: Kamelet
            name: timer-source
            namespace: tnb-test-29a4e1fc
      

      that results in the following Integration resource

      apiVersion: camel.apache.org/v1
      kind: Integration
      metadata:
        annotations:
          trait.camel.apache.org/quarkus.package-type: native
        creationTimestamp: "2022-09-22T11:42:10Z"
        generation: 1
        labels:
          camel.apache.org/created.by.kind: KameletBinding
          camel.apache.org/created.by.name: ftp-source-kburi-kamelet-to-log
        name: ftp-source-kburi-kamelet-to-log
        namespace: tnb-test-29a4e1fc
        ownerReferences:
        - apiVersion: camel.apache.org/v1alpha1
          blockOwnerDeletion: true
          controller: true
          kind: KameletBinding
          name: ftp-source-kburi-kamelet-to-log
          uid: 95eab7da-c751-4758-8b49-904b731cd67a
        resourceVersion: "27298915"
        uid: 42899b22-faaa-444e-8a94-22112a69e65f
      spec:
        configuration:
        - type: property
          value: camel.kamelet.timer-source.source.message = test
        - type: property
          value: camel.main.streamCachingEnabled=true
        flows:
        - route:
            from:
              uri: kamelet:timer-source/source
            id: binding
            steps:
            - to: log:info?showStreams=true
        profile: Knative
      status:
        conditions:
        - firstTruthyTime: "2022-09-22T11:42:10Z"
          lastTransitionTime: "2022-09-22T11:42:10Z"
          lastUpdateTime: "2022-09-22T11:42:10Z"
          message: tnb-test-29a4e1fc/camel-k
          reason: IntegrationPlatformAvailable
          status: "True"
          type: IntegrationPlatformAvailable
        - firstTruthyTime: "2022-09-22T11:42:10Z"
          lastTransitionTime: "2022-09-22T11:42:10Z"
          lastUpdateTime: "2022-09-22T11:42:10Z"
          message: 'kamelets timer-source found in repositories: (Kubernetes[namespace=tnb-test-29a4e1fc],
            Empty[])'
          reason: KameletsAvailable
          status: "True"
          type: KameletsAvailable
        - firstTruthyTime: "2022-09-22T11:42:39Z"
          lastTransitionTime: "2022-09-22T11:42:39Z"
          lastUpdateTime: "2022-09-22T11:42:39Z"
          message: kit-ccm4k4i7vla0u1sagtn0
          reason: IntegrationKitAvailable
          status: "True"
          type: IntegrationKitAvailable
        - lastTransitionTime: "2022-09-22T11:42:39Z"
          lastUpdateTime: "2022-09-22T11:42:39Z"
          message: different controller strategy used (deployment)
          reason: CronJobNotAvailableReason
          status: "False"
          type: CronJobAvailable
        - firstTruthyTime: "2022-09-22T11:42:39Z"
          lastTransitionTime: "2022-09-22T11:42:39Z"
          lastUpdateTime: "2022-09-22T11:42:39Z"
          message: deployment name is ftp-source-kburi-kamelet-to-log
          reason: DeploymentAvailable
          status: "True"
          type: DeploymentAvailable
        - lastTransitionTime: "2022-09-22T11:42:39Z"
          lastUpdateTime: "2022-09-22T11:42:39Z"
          message: different controller strategy used (deployment)
          reason: KnativeServiceNotAvailable
          status: "False"
          type: KnativeServiceAvailable
        - lastTransitionTime: "2022-09-22T11:42:39Z"
          lastUpdateTime: "2022-09-22T11:43:40Z"
          message: ReplicaSet "ftp-source-kburi-kamelet-to-log-bc8959c44" has timed out
            progressing.
          reason: Error
          status: "False"
          type: Ready
        dependencies:
        - camel:core
        - camel:kamelet
        - camel:log
        - camel:timer
        - mvn:org.apache.camel.k:camel-k-runtime
        - mvn:org.apache.camel.quarkus:camel-quarkus-yaml-dsl
        digest: viAM3PiuGzQ_HE__VcFnn5HX1Zst9E4LanLq9wrgFbkA
        generatedSources:
        - content: |
            - route:
                from:
                  uri: kamelet:timer-source/source
                id: binding
                steps:
                - to: log:info?showStreams=true
          name: camel-k-embedded-flow.yaml
        - contentKey: content
          contentRef: ftp-source-kburi-kamelet-to-log-kamelet-timer-source-template
          language: yaml
          name: timer-source.yaml
        image: image-registry.openshift-image-registry.svc:5000/tnb-test-29a4e1fc/camel-k-kit-ccm4k4i7vla0u1sagtn0@sha256:bf967cffa1c084d87b0c3bef499b3d3289c13885be143428141e71100d9ffdaf
        integrationKit:
          name: kit-ccm4k4i7vla0u1sagtn0
          namespace: tnb-test-29a4e1fc
        lastInitTimestamp: "2022-09-22T11:42:10Z"
        phase: Error
        platform: camel-k
        profile: Knative
        replicas: 1
        runtimeProvider: quarkus
        runtimeVersion: 1.12.1.redhat-00034
        selector: camel.apache.org/integration=ftp-source-kburi-kamelet-to-log
        version: 1.8.0
      

      You can see that the integration ends in the Error phase.
      The integration pod fails with

        state:
            waiting:
              message: |
                container create failed: time="2022-09-22T11:49:29Z" level=error msg="runc create failed: unable to start container process: exec: \"./camel-k-integration-1.8.0-runner\": stat ./camel-k-integration-1.8.0-runner: no such file or directory"
              reason: CreateContainerError
      

            christoph.deppisch Christoph Deppisch
            jbouska@redhat.com Jan Bouska
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: