camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Simple KameletBinding created with Errors

Open tmihalac opened this issue 2 years ago • 6 comments

In Camel-k 1.8.2/1.9.2 on Openshift when I try to create a simple KameletBinding it is created unsuccessfully and keeps respawning pods with errors, this looks some kind of a race condition (it is inconsistently happening - sometimes it happens all the time and sometimes it doesnt happen at all) The Kamelet I am using as the source is a clone of the Webhook Source Kamelet

The KameletBinding:

apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
  name: auto-remediation-platform
  annotations:
    trait.camel.apache.org/logging.level: DEBUG
    trait.camel.apache.org/logging.color: "false"
spec:
  source:
    ref:
      apiVersion: camel.apache.org/v1alpha1
      kind: Kamelet
      name: auto-remediation-entrypoint
  sink:
    ref:
      kind: Broker
      apiVersion: eventing.knative.dev/v1
      name: default

The Kamelet:

apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
metadata:
  name: auto-remediation-entrypoint
  annotations:
    camel.apache.org/kamelet.group: "Webhook"
  labels:
    camel.apache.org/kamelet.type: "source"
spec:
  definition:
    title: "Webhook Source"
    description: |-
      Test
    type: object
    properties:
      subpath:
        title: Subpath
        description: |
          The subpath where the webhook is registered
        type: string
        default: "webhook"
  dependencies:
    - "camel:platform-http"
    - "camel:kamelet"
  template:
    from:
      uri: "platform-http:///{{subpath}}"
      steps:
        - to: "kamelet:sink"

Steps to reproduce:

  1. Create a new project**(Important)**
  2. Install serverless-operator.v1.22.0
  3. Install Camel K operator 1.8.2
  4. Create knative default broker
  5. Create the Kamelet
  6. Create the KameletBinding

Attached Screenshots & error log

auto-remediation-platform-00001-deployment-65c7f5646d-vqqhx-integration.log

image

image

image

tmihalac avatar May 24 '22 08:05 tmihalac

Install serverless-operator.v1.22.0

In 1.8.2 community version we're aligned with Knative 1.1.0 version. Please, make sure to use that version of the community Knative operator and confirm if it's still an error.

squakez avatar May 24 '22 08:05 squakez

Install serverless-operator.v1.22.0

In 1.8.2 community version we're aligned with Knative 1.1.0 version. Please, make sure to use that version of the community Knative operator and confirm if it's still an error.

Do you mean this: https://knative.dev/v1.1-docs/install/operator/knative-with-operators/ Is it ok to install 1.1.2 ? What version the knative-serving and knative-eventing need to be ?

tmihalac avatar May 24 '22 09:05 tmihalac

If you can recover the operator for 1.1.0 would be better, though the patch release should not be a problem in terms of compatibility.

squakez avatar May 24 '22 12:05 squakez

The issue can be closed, it doesn't happen with Knative 1.1.0

tmihalac avatar May 24 '22 17:05 tmihalac

I guess we need to update Knative anyway.

oscerd avatar May 25 '22 05:05 oscerd

Please reopen, it still happening with Camel-k 1.8.2/1.9.2 community version and with community Knative version 1.1.0 and 1.2.0.

tmihalac avatar May 31 '22 06:05 tmihalac

This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!

github-actions[bot] avatar Sep 05 '22 00:09 github-actions[bot]