fourstepper opened a new issue, #4058:
URL: https://github.com/apache/camel-k/issues/4058

   Hi, I am having issues setting up the MongoDB sink using the included kamelet
   
   I am trying to set up a mongoDB sink with RMQ source using a kameletbinding 
after installing the `camel-k operator 1.11.x`
   
   My full configuration is:
   
   ```yaml
   apiVersion: camel.apache.org/v1alpha1
   kind: KameletBinding
   metadata:
     name: rmq-source-mongodb-sink-test
     namespace: event-store
   spec:
     source:
       ref:
         kind: Kamelet
         apiVersion: camel.apache.org/v1alpha1
         name: heu-rabbitmq-source # custom kamelet defined where we configure 
URL query params
       properties:
         username: "infra-eventstore-postman"
         password: "<REDACTED>"
         addresses: <REDACTED>:5672
         exchangeName: op-ex
         routingKey: infra-eventstore
         vhost: op-vh
         queue: infra-eventstore-test.1
     sink:
       ref:
         kind: Kamelet
         apiVersion: camel.apache.org/v1alpha1
         name: mongodb-sink
       properties:
         hosts: "mongo-mongodb-headless.event-store:27017"
         database: "event-store"
         collection: "event-store"
         createCollection: true
         username: "event-store"
         password: "<REDACTED>"
   ```
   
   This throws the following error in the KameletBindings' status that leaves 
me a bit puzzled and stuck:
   
   ```
   Status:
     Conditions:
       Last Transition Time:  2023-02-14T11:46:19Z
       Last Update Time:      2023-02-14T11:53:07Z
       Message:               error during trait customization: component not 
found for uri 
"{{local-mongodb}}:test?collection=%7B%7Bcollection%7D%7D&createCollection=%7B%7B%3FcreateCollection%7D%7D&database=%7B%7Bdatabase%7D%7D&hosts=%7B%7Bhosts%7D%7D&operation=insert&password=%7B%7B%3Fpassword%7D%7D&username=%7B%7B%3Fusername%7D%7D&writeConcern=%7B%7B%3FwriteConcern%7D%7D"
 in camel catalog runtime version 1.16.0
       Reason:                InitializationFailed
       Status:                False
       Type:                  Ready
     Observed Generation:     3
     Phase:                   Error
   ```
   
   This is probably somehow related to this line, but I still don't have many 
ideas on how to fix the issue 
https://github.com/apache/camel-kamelets/blob/main/kamelets/mongodb-sink.kamelet.yaml#L106
   
   This isn't even mentioned in the 
[docs](https://camel.apache.org/camel-kamelets/next/mongodb-sink.html#_knative_sink)
 anywhere and I am using the stock Kamelet that comes with the operator when 
installing it using the helm-chart


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to