camel-k
camel-k copied to clipboard
Basic example fails on Docker Desktop MacOS
What happened?
https://camel.apache.org/camel-k/2.2.x/running/running.html
$ kamel run hello.groovy
Integration "hello" created
$ kamel logs hello
Integration 'hello' is at: Error ...
Integration 'hello' is now running. Showing log ...
2024-01-24T11:25:45+01:00 ERROR camel-k.scraper.pod error caught during log scraping {"name": "hello-6dbfbbc959-hfjq5", "error": "no state change after 30 seconds for pod hello-6dbfbbc959-hfjq5"}
github.com/apache/camel-k/v2/pkg/util/log.Logger.Error
github.com/apache/camel-k/v2/pkg/util/log/log.go:81
github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*PodScraper).handleAndRestart
github.com/apache/camel-k/v2/pkg/util/kubernetes/log/pod_scraper.go:122
github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*PodScraper).doScrape
github.com/apache/camel-k/v2/pkg/util/kubernetes/log/pod_scraper.go:85
2024-01-24T11:25:45+01:00 DEBUG camel-k.scraper.pod Retrying to scrape pod logs in 5.000000 seconds... {"name": "hello-6dbfbbc959-hfjq5"}
Steps to reproduce
No response
Relevant log output
No response
Camel K version
No response
Thanks for reporting. Can you please verify if the Pod is started and working correctly? or is it the CLI which is failing to scrape the Pod log?
I see ...
kubectl get pods --watch
NAME READY STATUS RESTARTS AGE
camel-k-operator-7989475884-drl6k 1/1 Running 0 6m46s
hello-6dbfbbc959-vr5b8 0/1 ImagePullBackOff 0 6m21s
It seems the Pod cannot start, likely a registry problem. Have you followed the special instructions required for Docker Desktop? https://camel.apache.org/camel-k/2.2.x/installation/platform/docker-desktop.html
Yes, I have. The registry is running and camel-k installed with no problem
$ kamel install --registry host.docker.internal:5000 --registry-insecure true
OLM is not available in the cluster. Fallback to regular installation.
Camel K installed in namespace default
What do you see in the operator logs?
Please don't hesitate to check the troubleshooting documentation to know what to look for: https://camel.apache.org/camel-k/2.2.x/troubleshooting/troubleshooting.html
What do you see in the operator logs?
yes, it would be interesting to see what is in the operator logs
Here you go ...
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"maxprocs: Leaving GOMAXPROCS=[8]: CPU quota undefined"}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Go Version: go1.21.0"}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Go OS/Arch: linux/amd64"}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Camel K Operator Version: 2.2.0"}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Camel K Default Runtime Version: 3.2.3"}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Camel K Git Commit: c6a9348d8467f68800dabb7c845a411765fad8e3"}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Camel K Operator ID: camel-k"}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"controller-runtime.metrics","msg":"Metrics server is starting to listen","addr":":8080"}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Configuring manager"}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k","msg":"KnativeService resources are not installed in the cluster. You can't use Knative features. If you install Knative Serving resources after the\n\t\tCamel K operator, make sure to apply the required RBAC privileges and restart the Camel K Operator Pod to be able to watch for\n\t\tCamel K managed Knative Services."}
2024-01-26 11:45:55 {"level":"info","ts":"2024-01-26T10:45:55Z","logger":"camel-k.cmd","msg":"Installing operator resources"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.cmd","msg":"Starting the manager"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting server","kind":"health probe","addr":"[::]:8081"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"starting server","path":"/metrics","kind":"metrics","addr":"[::]:8080"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.cmd","msg":"attempting to acquire leader lease default/camel-k-lock..."}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.cmd","msg":"successfully acquired lease default/camel-k-lock"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog","source":"kind source: *v1.CamelCatalog"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Integration"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.IntegrationKit"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build","source":"kind source: *v1.Build"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1.Pipe"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integrationplatform-controller","source":"kind source: *v1.IntegrationPlatform"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1alpha1.KameletBinding"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting Controller","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Deployment"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.CronJob"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.IntegrationKit"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.IntegrationPlatform"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.ConfigMap"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Secret"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting Controller","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1.Integration"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting Controller","controller":"kamelet-binding-controller"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting Controller","controller":"integrationplatform-controller"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1.Integration"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting Controller","controller":"kamelet-binding-controller"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Pod"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting Controller","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.Build"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.IntegrationPlatform"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting Controller","controller":"integrationkit-controller"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding is deprecated, please, use v1.Pipe instead"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding is deprecated, please, use v1.Pipe instead"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting workers","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog","worker count":8}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting workers","controller":"kamelet-binding-controller","worker count":1}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting workers","controller":"integrationplatform-controller","worker count":1}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting workers","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build","worker count":1}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting workers","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","worker count":1}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting workers","controller":"kamelet-binding-controller","worker count":1}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","msg":"Starting workers","controller":"integrationkit-controller","worker count":1}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking action initialize","request-namespace":"default","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"default","name":"camel-k"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.integrationkit","msg":"Invoking action monitor","request-namespace":"default","request-name":"kit-cmoe5nh9lrbs73afkkig","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-cmoe5nh9lrbs73afkkig"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.integrationplatform","msg":"Initializing IntegrationPlatform","request-namespace":"default","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"default","name":"camel-k"}
2024-01-26 11:45:56 {"level":"error","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.build","msg":"Could not find a platform bound to this Build","request-namespace":"default","request-name":"kit-cmoe5nh9lrbs73afkkig","error":"IntegrationPlatform.camel.apache.org \"camel-k\" not found","stacktrace":"github.com/apache/camel-k/v2/pkg/util/log.Logger.Error\n\tgithub.com/apache/camel-k/v2/pkg/util/log/log.go:81\ngithub.com/apache/camel-k/v2/pkg/controller/build.(*reconcileBuild).Reconcile\n\tgithub.com/apache/camel-k/v2/pkg/controller/build/build_controller.go:146\ngithub.com/apache/camel-k/v2/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/v2/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:118\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:314\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k","msg":"RuntimeVersion set to 3.2.3"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k","msg":"BaseImage set to eclipse-temurin:17"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k","msg":"LocalRepository set to /etc/maven/m2"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k","msg":"Timeout set to {5m0s}"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k","msg":"Maven Timeout set to 5m0s"}
2024-01-26 11:45:56 {"level":"error","ts":"2024-01-26T10:45:56Z","msg":"Reconciler error","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build","Build":{"name":"kit-cmoe5nh9lrbs73afkkig","namespace":"default"},"namespace":"default","name":"kit-cmoe5nh9lrbs73afkkig","reconcileID":"21a958bc-d2e6-4c0c-b81d-45b076a76c4d","error":"IntegrationPlatform.camel.apache.org \"camel-k\" not found","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.integrationkit","msg":"Invoking action monitor","request-namespace":"default","request-name":"kit-cmoe5nh9lrbs73afkkig","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-cmoe5nh9lrbs73afkkig"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.integrationplatform","msg":"State transition","request-namespace":"default","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"default","name":"camel-k","phase-from":"","phase-to":"Creating"}
2024-01-26 11:45:56 {"level":"error","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.build","msg":"Could not find a platform bound to this Build","request-namespace":"default","request-name":"kit-cmoe5nh9lrbs73afkkig","error":"IntegrationPlatform.camel.apache.org \"camel-k\" not found","stacktrace":"github.com/apache/camel-k/v2/pkg/util/log.Logger.Error\n\tgithub.com/apache/camel-k/v2/pkg/util/log/log.go:81\ngithub.com/apache/camel-k/v2/pkg/controller/build.(*reconcileBuild).Reconcile\n\tgithub.com/apache/camel-k/v2/pkg/controller/build/build_controller.go:146\ngithub.com/apache/camel-k/v2/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/v2/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:118\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:314\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226"}
2024-01-26 11:45:56 {"level":"error","ts":"2024-01-26T10:45:56Z","msg":"Reconciler error","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build","Build":{"name":"kit-cmoe5nh9lrbs73afkkig","namespace":"default"},"namespace":"default","name":"kit-cmoe5nh9lrbs73afkkig","reconcileID":"31af19c1-63da-4a57-b4b7-21aaee5ecb03","error":"IntegrationPlatform.camel.apache.org \"camel-k\" not found","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking action create","request-namespace":"default","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"default","name":"camel-k"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.integrationplatform","msg":"Installing camel catalog: /camel-catalog-3.2.3.yaml","request-namespace":"default","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"default","name":"camel-k"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.integrationplatform","msg":"Copying platform annotations to catalog: camel-catalog-3.2.3","request-namespace":"default","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"default","name":"camel-k"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.catalog","msg":"Invoking action initialize","request-namespace":"default","request-name":"camel-catalog-3.2.3","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"default","name":"camel-catalog-3.2.3"}
2024-01-26 11:45:56 {"level":"info","ts":"2024-01-26T10:45:56Z","logger":"camel-k.controller.catalog","msg":"Initializing CamelCatalog","request-namespace":"default","request-name":"camel-catalog-3.2.3","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"default","name":"camel-catalog-3.2.3"}
2024-01-26 11:45:57 {"level":"info","ts":"2024-01-26T10:45:57Z","logger":"camel-k.controller.integrationplatform","msg":"State transition","request-namespace":"default","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"default","name":"camel-k","phase-from":"Creating","phase-to":"Ready"}
2024-01-26 11:45:57 {"level":"info","ts":"2024-01-26T10:45:57Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking action monitor","request-namespace":"default","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"default","name":"camel-k"}
2024-01-26 11:46:01 {"level":"info","ts":"2024-01-26T10:46:01Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking action monitor","request-namespace":"default","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"default","name":"camel-k"}
2024-01-26 11:46:01 {"level":"info","ts":"2024-01-26T10:46:01Z","logger":"camel-k.controller.catalog","msg":"Invoking action initialize","request-namespace":"default","request-name":"camel-catalog-3.2.3","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"default","name":"camel-catalog-3.2.3"}
2024-01-26 11:46:01 {"level":"info","ts":"2024-01-26T10:46:01Z","logger":"camel-k.controller.catalog","msg":"Initializing CamelCatalog","request-namespace":"default","request-name":"camel-catalog-3.2.3","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"default","name":"camel-catalog-3.2.3"}
2024-01-26 11:46:02 {"level":"info","ts":"2024-01-26T10:46:02Z","logger":"camel-k.controller.catalog","msg":"State transition","request-namespace":"default","request-name":"camel-catalog-3.2.3","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"default","name":"camel-catalog-3.2.3","phase-from":"","phase-to":"Ready"}
2024-01-26 11:46:02 {"level":"info","ts":"2024-01-26T10:46:02Z","logger":"camel-k.controller.catalog","msg":"Invoking action monitor","request-namespace":"default","request-name":"camel-catalog-3.2.3","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"default","name":"camel-catalog-3.2.3"}
2024-01-26 11:47:29 {"level":"info","ts":"2024-01-26T10:47:29Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"","phase-to":"Initialization"}
2024-01-26 11:47:29 {"level":"info","ts":"2024-01-26T10:47:29Z","logger":"camel-k.controller.integration","msg":"Initializing Integration","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello"}
2024-01-26 11:47:29 {"level":"info","ts":"2024-01-26T10:47:29Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"Initialization","phase-to":"Building Kit"}
2024-01-26 11:47:29 {"level":"info","ts":"2024-01-26T10:47:29Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"Building Kit","phase-to":"Deploying"}
2024-01-26 11:47:29 {"level":"info","ts":"2024-01-26T10:47:29Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"Deploying","phase-to":"Running"}
2024-01-26 11:47:29 {"level":"info","ts":"2024-01-26T10:47:29Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"Deploying","phase-to":"Running"}
2024-01-26 11:47:44 {"level":"info","ts":"2024-01-26T10:47:44Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"Running","phase-to":"Error"}
2024-01-26 11:47:44 {"level":"info","ts":"2024-01-26T10:47:44Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","reason":"Error","error-message":"Back-off pulling image \"host.docker.internal:5000/default/camel-k-kit-cmoe5nh9lrbs73afkkig@sha256:18d8f7b8ef18f8d166f51c2edac13ce116cfbfb1d23746aa4265afbd14002931\""}
2024-01-26 11:47:58 {"level":"info","ts":"2024-01-26T10:47:58Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"Error","phase-to":"Running"}
2024-01-26 11:48:13 {"level":"info","ts":"2024-01-26T10:48:13Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"Running","phase-to":"Error"}
2024-01-26 11:48:13 {"level":"info","ts":"2024-01-26T10:48:13Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","reason":"Error","error-message":"Back-off pulling image \"host.docker.internal:5000/default/camel-k-kit-cmoe5nh9lrbs73afkkig@sha256:18d8f7b8ef18f8d166f51c2edac13ce116cfbfb1d23746aa4265afbd14002931\""}
2024-01-26 11:48:24 {"level":"info","ts":"2024-01-26T10:48:24Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"Error","phase-to":"Running"}
2024-01-26 11:48:30 {"level":"info","ts":"2024-01-26T10:48:30Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","phase-from":"Running","phase-to":"Error"}
2024-01-26 11:48:30 {"level":"info","ts":"2024-01-26T10:48:30Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","reason":"Error","error-message":"ReplicaSet \"hello-6dbfbbc959\" has timed out progressing."}
Folks, how would I get started to debug this? I have Docker Engine on MacOs + GoLand
When running the Camel K operator locally in debug mode on MacOS please make sure to set the environment variable MAVEN_WRAPPER=false
. Usually there is a Maven wrapper bundled into the operator image but when running the operator locally you may not have this wrapper in the right place on your machine.
When the wrapper envar is disabled the operator uses the Maven binary that is set in MAVEN_CMD
environment variable. So you may need to set this too pointing to your local Maven installation binary or simply set this to mvn
when it is on your $PATH
I think this resolves some issues that the integration kit is not being built properly when using a local operator.
I see the following error message
Could not find a platform bound to this Build","request-namespace":"default","request-name":"kit-cmoe5nh9lrbs73afkkig",
"error":"IntegrationPlatform.camel.apache.org \"camel-k\" not found"
What does the command returns kubectl get -A IntegrationPlatform
?
Instead of getting the local operator to get working have you tried to install Camel K on a local Minikube or Kind cluster already? This is my usual way of running Camel K locally with installing the operator on a Minikube cluster as described in https://camel.apache.org/camel-k/2.1.x/installation/platform/minikube.html
2024-01-26 11:48:13 {"level":"info","ts":"2024-01-26T10:48:13Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"default","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"hello","reason":"Error","error-message":"Back-off pulling image \"host.docker.internal:5000/default/camel-k-kit-cmoe5nh9lrbs73afkkig@sha256:18d8f7b8ef18f8d166f51c2edac13ce116cfbfb1d23746aa4265afbd14002931\""}
I think the problem is with Kubernetes platform, which is not able to pull the image for some reason. Basically, Camel K is doing his job by building the container image and pushing it to the registry. Then, when the Deployment
is created, Kubernetes cluster is not able to pull from container registry. Make sure to follow the instructions at https://docs.docker.com/registry/#deploy-a-plain-http-registry
works now
I think we need to reopen this. The basic example
kamel run Basic.java --dev
does no longer work an ARM64 without defining additional -t builder.platforms
settings. IMHO, it should be possible to detect the current platform and configure the build accordingly.
Is it really the (most common) case, that kamel run Basic.java
needs to build something for a platform that isn't the current one?
Unfortunately it's a breaking compatibility change. See: https://github.com/apache/camel-k/pull/5246#issuecomment-2009270960 - mind that what it works for you may be disruptive for another running production environment.
Testing the upgrade scenario
On AMD64
git checkout v2.2.0
make images
go build ./cmd/kamel
kamel install --olm=false
kubectl describe pod -l app=camel-k
kubectl logs -f --tail=400 -l app=camel-k
cd $HOME/git/camel-k-examples/01-basic
kamel run Basic.java --dev
...
Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World! Camel K route written in Java.
Now the upgrade
https://camel.apache.org/camel-k/next/contributing/upgrade.html
git checkout ghi5238
make images
go build ./cmd/kamel
kamel install --force --olm=false
kamel rebuild basic
Condition "IntegrationPlatformAvailable" is "True" for Integration basic: camel/camel-k
Integration "basic" in phase "Initialization"
Condition "TraitInfo" is "True" for Integration basic: explicitly disabled by the user
Integration "basic" in phase "Building Kit"
Condition "IntegrationKitAvailable" is "False" for Integration basic: creating a new integration kit
Integration Kit "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Build Submitted"
[2] 2024-03-25 14:19:00,696 INFO [info] (Camel (camel-1) thread #1 - timer://java) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World! Camel K route written in Java.]
Build "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Scheduling"
Build "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Pending"
Build "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Running"
Integration Kit "kit-co0ofl7au4vc739aie90", created by Integration "basic", changed phase to "Build Running"
It seems that the upgrade works fine with
-Djib.from.platforms=linux/amd64,linux/arm64
More investigation about this in https://github.com/apache/camel-k/issues/5292