You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "mrkhedri (via GitHub)" <gi...@apache.org> on 2023/04/29 07:32:36 UTC

[GitHub] [camel-k] mrkhedri opened a new issue, #4304: camel k operator error when running simple example

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

   I created an operator with Kamel and ran a simple `HelloWorld` example. But I have the same error every time I ran different examples.
   
   You can see my commands below:
   
   **Install**
   ```sh
   $ kamel install --olm=false -n camel-basic --registry 127.0.0.1:5000 --organization charisma --wait --force --registry-insecure true
   
   Integration Platform "camel-k" in phase "Creating"
   Camel K installed in namespace camel-basic
   ``
   
   **Check integration platform**
   ```sh
   $ kubectl get integrationplatform
   
   NAME      PHASE
   camel-k   Ready
   ```
   
   **Run example**
   ```sh
   $ kamel run .\HelloWorldRoute.java --dev
   
   Integration "hello-world-route" created
   Progress: integration "hello-world-route" in phase Initialization
   Condition "IntegrationPlatformAvailable" is "True" for Integration hello-world-route: camel-basic/camel-k
   Integration "hello-world-route" in phase "Initialization"
   Progress: integration "hello-world-route" in phase Building Kit
   Integration "hello-world-route" in phase "Building Kit"
   Condition "IntegrationKitAvailable" is "False" for Integration hello-world-route: creating a new integration kit
   Integration Kit "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Build Submitted"
   Build "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Scheduling"
   Build "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Pending"
   Build "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Running"
   Integration Kit "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Build Running"
   Build "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Failed"
   Build "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Initialization" (recovery 1 of 5)
   Build "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Scheduling" (recovery 1 of 5)
   Build "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Pending" (recovery 1 of 5)
   Build "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Running" (recovery 1 of 5)
   Build "kit-ch6c16q2in32tbdt31l0", created by Integration "hello-world-route", changed phase to "Failed" (recovery 1 of 5)
   ```
   
   **Operator error log**
   ```sh
   $ kubectl logs camel-k-operator-9977dd584-fngnz -f
   
   {"level":"error","ts":1682753313.6273654,"msg":"Reconciler error","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","Integration":{"name":"hello-world-route","namespace":"camel-basic"},"namespace":"camel-basic","name":"hello-world-route","reconcileID":"324c8046-031d-4d20-ab0d-1e98aaa5437c","error":"error during trait customization: unable to find integration container: hello-world-route","errorVerbose":"unable to find integration container: hello-world-route\nerror during trait customization\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:59\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:114\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:361\ngithub.com/apache/camel-
 k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:121\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:320\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:234\nruntime.goexit\n\truntime/asm_amd64.s:1571","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/inter
 nal/controller/controller.go:326\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:234"}
   ```


-- 
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] squakez commented on issue #4304: camel k operator error when running simple example

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

   Yeah, mind that `--registry 127.0.0.1:5000` would resolve to the localhost of the running Pod, not the localhost of your machine. Make sure to follow properly instructions to [provide a correct configuration for the container registry in Camel K](https://camel.apache.org/camel-k/next/installation/registry/registry.html).


-- 
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] gansheer commented on issue #4304: camel k operator error when running simple example

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

   That could be a registry error (like this issue #4272) -- it is a common one for this kind of error message. 
   
   You can also check [your custom camel resources](https://github.com/apache/camel-k/issues/4150#issuecomment-1481181110) resources to get more informations on the state of the operator/integrations.
   
   If you don't find anything usefull, don't hesitate to share more inputs about your env : the type of kubernetes cluster, the type of registry, your camel-k version, etc.


-- 
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] github-actions[bot] closed issue #4304: camel k operator error when running simple example

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4304: camel k operator error when running simple example
URL: https://github.com/apache/camel-k/issues/4304


-- 
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] mrkhedri commented on issue #4304: camel k operator error when running simple example

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

   I changed my registry address to the external registry and that's worked.
   For my local registry issue, I think it's better to move the registry container to the kind cluster. So all pods can see together (with default kubernetes network policy).


-- 
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] github-actions[bot] commented on issue #4304: camel k operator error when running simple example

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4304:
URL: https://github.com/apache/camel-k/issues/4304#issuecomment-1672351987

   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!


-- 
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