You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "fourstepper (via GitHub)" <gi...@apache.org> on 2023/02/14 13:53:03 UTC

[GitHub] [camel-k] fourstepper opened a new issue, #4058: MongoDB sink: error during trait customization: component not found for uri

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-unsubscribe@camel.apache.org.apache.org

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


[GitHub] [camel-k] oscerd commented on issue #4058: MongoDB sink: error during trait customization: component not found for uri

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on issue #4058:
URL: https://github.com/apache/camel-k/issues/4058#issuecomment-1430942554

   There are multiple kamelets using that approach. I think this is important to fix for 1.12.0. Let me add it to the list.


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] squakez commented on issue #4058: MongoDB sink: error during trait customization: component not found for uri

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4058:
URL: https://github.com/apache/camel-k/issues/4058#issuecomment-1430978728

   Yes, thanks @christophd , it seems it will be fixed in 1.12. I wonder if it makes sense to backport to 1.11 and 1.10 branches as well, as it looks to be failing on those versions as well. Do you think you can have a look?


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] fourstepper closed issue #4058: MongoDB sink: error during trait customization: component not found for uri

Posted by "fourstepper (via GitHub)" <gi...@apache.org>.
fourstepper closed issue #4058: MongoDB sink: error during trait customization: component not found for uri
URL: https://github.com/apache/camel-k/issues/4058


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] fourstepper commented on issue #4058: MongoDB sink: error during trait customization: component not found for uri

Posted by "fourstepper (via GitHub)" <gi...@apache.org>.
fourstepper commented on issue #4058:
URL: https://github.com/apache/camel-k/issues/4058#issuecomment-1449657610

   Hi @squakez , I can confirm that this works now, thank you!
   
   I will therefore close this issue


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] squakez commented on issue #4058: MongoDB sink: error during trait customization: component not found for uri

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4058:
URL: https://github.com/apache/camel-k/issues/4058#issuecomment-1430941349

   I have the feeling it can be a regression when we introduced https://github.com/apache/camel-k/pull/3640 - basically there is a check that verify the components exists in the catalog, but, in this case since it's a variable, it may be not the case. @tadayosi wdyt?


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] christophd commented on issue #4058: MongoDB sink: error during trait customization: component not found for uri

Posted by "christophd (via GitHub)" <gi...@apache.org>.
christophd commented on issue #4058:
URL: https://github.com/apache/camel-k/issues/4058#issuecomment-1430971596

   I think this is the same as #3896
   
   The issue #3896 has already been fixed in https://github.com/apache/camel-k/pull/3901


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] oscerd commented on issue #4058: MongoDB sink: error during trait customization: component not found for uri

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on issue #4058:
URL: https://github.com/apache/camel-k/issues/4058#issuecomment-1429807491

   @squakez as far as I remember this always worked in this way. Do you have any clue? I'll try to reproduce btw


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] oscerd commented on issue #4058: MongoDB sink: error during trait customization: component not found for uri

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on issue #4058:
URL: https://github.com/apache/camel-k/issues/4058#issuecomment-1430980217

   Probably it doesn't make sense to do it on 1.11. It's not an LTS, we released 1.11.1 just for OpenJDK troubles


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] squakez commented on issue #4058: MongoDB sink: error during trait customization: component not found for uri

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4058:
URL: https://github.com/apache/camel-k/issues/4058#issuecomment-1446112174

   This should be fixed with 1.12.0 just released. @fourstepper can you please have a look and confirm if it now works?


-- 
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-unsubscribe@camel.apache.org

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