Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(vanilla minikube) RestDSL.java not working out of the box #1452

Closed
michaelwjoyner opened this issue May 6, 2020 · 5 comments
Closed

(vanilla minikube) RestDSL.java not working out of the box #1452

michaelwjoyner opened this issue May 6, 2020 · 5 comments

Comments

@michaelwjoyner
Copy link

Code is out of the box:
image

Pod is in crash loop backoff

image

Logs ............. there is more above this as well.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  26.730 s
[INFO] Finished at: 2020-05-06T13:20:49Z
[INFO] ------------------------------------------------------------------------
{"level":"info","ts":1588771249.9584508,"logger":"camel-k.builder","msg":"step done in 28.558693 seconds","step":"github.com/apache/camel-k/pkg/builder/runtime/ComputeDependencies","phase":20,"name":"kit-bqpbj59jlfefk721mnt0","task":"builder"}
{"level":"info","ts":1588771249.9587424,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/IncrementalImageContext","phase":30,"name":"kit-bqpbj59jlfefk721mnt0","task":"builder"}
{"level":"info","ts":1588771250.0011597,"logger":"camel-k.builder","msg":"step done in 0.042014 seconds","step":"github.com/apache/camel-k/pkg/builder/IncrementalImageContext","phase":30,"name":"kit-bqpbj59jlfefk721mnt0","task":"builder"}
{"level":"info","ts":1588771250.001404,"logger":"camel-k.builder","msg":"executing step","step":"github.com/apache/camel-k/pkg/builder/spectrum/Publisher","phase":40,"name":"kit-bqpbj59jlfefk721mnt0","task":"builder"}
{"level":"info","ts":1588771358.667785,"logger":"camel-k.builder","msg":"step done in 108.666297 seconds","step":"github.com/apache/camel-k/pkg/builder/spectrum/Publisher","phase":40,"name":"kit-bqpbj59jlfefk721mnt0","task":"builder"}
{"level":"info","ts":1588771358.6678567,"logger":"camel-k.builder","msg":"dependencies: [camel:direct mvn:org.apache.camel.k/camel-k-loader-java mvn:org.apache.camel.k/camel-k-runtime-http mvn:org.apache.camel.k/camel-k-runtime-main mvn:org.apache.camel/camel-rest]"}
{"level":"info","ts":1588771358.667885,"logger":"camel-k.builder","msg":"artifacts: [org.apache.camel:camel-direct:jar:3.1.0 org.apache.camel:camel-support:jar:3.1.0 org.apache.camel:camel-api:jar:3.1.0 org.apache.camel:camel-management-api:jar:3.1.0 org.apache.camel:camel-util:jar:3.1.0 org.slf4j:slf4j-api:jar:1.7.30 org.apache.camel.k:camel-k-loader-java:jar:1.3.0-SNAPSHOT org.apache.camel.k:camel-k-runtime-core:jar:1.3.0-SNAPSHOT org.apache.camel:camel-core-languages:jar:3.2.0 org.apache.camel:camel-core-engine:jar:3.1.0 org.apache.camel:camel-base:jar:3.1.0 org.apache.camel:camel-endpointdsl:jar:3.1.0 org.jooq:joor:jar:0.9.13 org.apache.camel.k:camel-k-runtime-http:jar:1.3.0-SNAPSHOT org.apache.camel:camel-platform-http:jar:3.1.0 io.vertx:vertx-web:jar:3.8.5 io.vertx:vertx-web-common:jar:3.8.5 io.vertx:vertx-auth-common:jar:3.8.5 io.vertx:vertx-bridge-common:jar:3.8.5 io.vertx:vertx-core:jar:3.8.5 io.netty:netty-common:jar:4.1.42.Final io.netty:netty-buffer:jar:4.1.42.Final io.netty:netty-transport:jar:4.1.42.Final io.netty:netty-handler:jar:4.1.42.Final io.netty:netty-codec:jar:4.1.42.Final io.netty:netty-handler-proxy:jar:4.1.42.Final io.netty:netty-codec-socks:jar:4.1.42.Final io.netty:netty-codec-http:jar:4.1.42.Final io.netty:netty-codec-http2:jar:4.1.42.Final io.netty:netty-resolver:jar:4.1.42.Final io.netty:netty-resolver-dns:jar:4.1.42.Final io.netty:netty-codec-dns:jar:4.1.42.Final com.fasterxml.jackson.core:jackson-core:jar:2.9.9 com.fasterxml.jackson.core:jackson-databind:jar:2.9.9.1 com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0 org.apache.camel.k:camel-k-runtime-main:jar:1.3.0-SNAPSHOT org.apache.camel:camel-main:jar:3.1.0 org.apache.camel:camel-caffeine-lrucache:jar:3.1.0 com.github.ben-manes.caffeine:caffeine:jar:2.8.1 org.apache.camel:camel-headersmap:jar:3.1.0 com.cedarsoftware:java-util:jar:1.40.0 org.apache.camel:camel-bean:jar:3.1.0 org.apache.logging.log4j:log4j-core:jar:2.13.2 org.apache.logging.log4j:log4j-api:jar:2.13.2 org.apache.logging.log4j:log4j-slf4j-impl:jar:2.13.2 org.apache.camel:camel-rest:jar:3.1.0 org.apache.camel:camel-tooling-model:jar:3.1.0 org.apache.camel:camel-util-json:jar:3.1.0]"}
{"level":"info","ts":1588771358.6679382,"logger":"camel-k.builder","msg":"artifacts selected: [org.apache.camel:camel-direct:jar:3.1.0 org.apache.camel:camel-support:jar:3.1.0 org.apache.camel:camel-api:jar:3.1.0 org.apache.camel:camel-management-api:jar:3.1.0 org.apache.camel:camel-util:jar:3.1.0 org.slf4j:slf4j-api:jar:1.7.30 org.apache.camel.k:camel-k-loader-java:jar:1.3.0-SNAPSHOT org.apache.camel.k:camel-k-runtime-core:jar:1.3.0-SNAPSHOT org.apache.camel:camel-core-languages:jar:3.2.0 org.apache.camel:camel-core-engine:jar:3.1.0 org.apache.camel:camel-base:jar:3.1.0 org.apache.camel:camel-endpointdsl:jar:3.1.0 org.jooq:joor:jar:0.9.13 org.apache.camel.k:camel-k-runtime-http:jar:1.3.0-SNAPSHOT org.apache.camel:camel-platform-http:jar:3.1.0 io.vertx:vertx-web:jar:3.8.5 io.vertx:vertx-web-common:jar:3.8.5 io.vertx:vertx-auth-common:jar:3.8.5 io.vertx:vertx-bridge-common:jar:3.8.5 io.vertx:vertx-core:jar:3.8.5 io.netty:netty-common:jar:4.1.42.Final io.netty:netty-buffer:jar:4.1.42.Final io.netty:netty-transport:jar:4.1.42.Final io.netty:netty-handler:jar:4.1.42.Final io.netty:netty-codec:jar:4.1.42.Final io.netty:netty-handler-proxy:jar:4.1.42.Final io.netty:netty-codec-socks:jar:4.1.42.Final io.netty:netty-codec-http:jar:4.1.42.Final io.netty:netty-codec-http2:jar:4.1.42.Final io.netty:netty-resolver:jar:4.1.42.Final io.netty:netty-resolver-dns:jar:4.1.42.Final io.netty:netty-codec-dns:jar:4.1.42.Final com.fasterxml.jackson.core:jackson-core:jar:2.9.9 com.fasterxml.jackson.core:jackson-databind:jar:2.9.9.1 com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0 org.apache.camel.k:camel-k-runtime-main:jar:1.3.0-SNAPSHOT org.apache.camel:camel-main:jar:3.1.0 org.apache.camel:camel-caffeine-lrucache:jar:3.1.0 com.github.ben-manes.caffeine:caffeine:jar:2.8.1 org.apache.camel:camel-headersmap:jar:3.1.0 com.cedarsoftware:java-util:jar:1.40.0 org.apache.camel:camel-bean:jar:3.1.0 org.apache.logging.log4j:log4j-core:jar:2.13.2 org.apache.logging.log4j:log4j-api:jar:2.13.2 org.apache.logging.log4j:log4j-slf4j-impl:jar:2.13.2 org.apache.camel:camel-rest:jar:3.1.0 org.apache.camel:camel-tooling-model:jar:3.1.0 org.apache.camel:camel-util-json:jar:3.1.0]"}
{"level":"info","ts":1588771358.6679757,"logger":"camel-k.builder","msg":"base image: adoptopenjdk/openjdk11:slim"}
{"level":"info","ts":1588771358.6679804,"logger":"camel-k.builder","msg":"resolved base image: adoptopenjdk/openjdk11:slim"}
{"level":"info","ts":1588771358.667986,"logger":"camel-k.builder","msg":"resolved image: 10.102.8.91/default/camel-k-kit-bqpbj59jlfefk721mnt0:766822"}
{"level":"info","ts":1588771358.7149088,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"default","request-name":"kit-bqpbj59jlfefk721mnt0"}
{"level":"info","ts":1588771358.7151692,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"default","request-name":"kit-bqpbj59jlfefk721mnt0"}
{"level":"info","ts":1588771358.715245,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build-submitted","request-namespace":"default","request-name":"kit-bqpbj59jlfefk721mnt0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-bqpbj59jlfefk721mnt0"}
{"level":"info","ts":1588771358.7384434,"logger":"camel-k","msg":"Kit kit-bqpbj59jlfefk721mnt0 ready, wake-up integration: rest-dsl"}
{"level":"info","ts":1588771358.7385273,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"default","request-name":"rest-dsl"}
{"level":"info","ts":1588771358.7385614,"logger":"camel-k.controller.integration","msg":"Invoking action build-kit","request-namespace":"default","request-name":"rest-dsl","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"rest-dsl"}
{"level":"info","ts":1588771358.739164,"logger":"camel-k.trait","msg":"Apply trait: init"}
{"level":"info","ts":1588771358.7391803,"logger":"camel-k.trait","msg":"Apply trait: camel"}
{"level":"info","ts":1588771358.7410219,"logger":"camel-k.trait","msg":"Apply trait: deployer"}
{"level":"info","ts":1588771358.7423337,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"default","request-name":"kit-bqpbj59jlfefk721mnt0"}
{"level":"info","ts":1588771358.7424445,"logger":"camel-k.controller.integrationkit","msg":"Invoking action monitor","request-namespace":"default","request-name":"kit-bqpbj59jlfefk721mnt0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-bqpbj59jlfefk721mnt0"}
{"level":"info","ts":1588771358.7729285,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"default","request-name":"rest-dsl"}
{"level":"info","ts":1588771358.7733655,"logger":"camel-k.controller.integration","msg":"Invoking action deploy","request-namespace":"default","request-name":"rest-dsl","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"rest-dsl"}
{"level":"info","ts":1588771358.775728,"logger":"camel-k.trait","msg":"Apply trait: init"}
{"level":"info","ts":1588771358.775904,"logger":"camel-k.trait","msg":"Apply trait: camel"}
{"level":"info","ts":1588771358.7793496,"logger":"camel-k.trait","msg":"Apply trait: environment"}
{"level":"info","ts":1588771358.7835605,"logger":"camel-k.trait","msg":"Apply trait: deployer"}
{"level":"info","ts":1588771358.8018355,"logger":"camel-k.trait","msg":"Apply trait: deployment"}
{"level":"info","ts":1588771358.8019538,"logger":"camel-k.trait","msg":"Apply trait: gc"}
{"level":"info","ts":1588771358.8043685,"logger":"camel-k.trait","msg":"Apply trait: service"}
{"level":"info","ts":1588771358.804427,"logger":"camel-k.trait","msg":"Apply trait: container"}
{"level":"info","ts":1588771358.804497,"logger":"camel-k.trait","msg":"Apply trait: jvm"}
{"level":"info","ts":1588771358.8045597,"logger":"camel-k.trait","msg":"Apply trait: owner"}
{"level":"info","ts":1588771359.0574303,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"default","request-name":"rest-dsl"}
{"level":"info","ts":1588771359.0594814,"logger":"camel-k.controller.integration","msg":"Invoking action monitor","request-namespace":"default","request-name":"rest-dsl","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"rest-dsl"}
{"level":"info","ts":1588771359.0609195,"logger":"camel-k.trait","msg":"Apply trait: init"}
{"level":"info","ts":1588771359.0611358,"logger":"camel-k.trait","msg":"Apply trait: camel"}
{"level":"info","ts":1588771359.0770335,"logger":"camel-k.trait","msg":"Apply trait: environment"}
{"level":"info","ts":1588771359.086517,"logger":"camel-k.trait","msg":"Apply trait: deployer"}
{"level":"info","ts":1588771359.086573,"logger":"camel-k.trait","msg":"Apply trait: deployment"}
{"level":"info","ts":1588771359.0866094,"logger":"camel-k.trait","msg":"Apply trait: gc"}
{"level":"info","ts":1588771359.092579,"logger":"camel-k.trait","msg":"Apply trait: service"}
{"level":"info","ts":1588771359.0926414,"logger":"camel-k.trait","msg":"Apply trait: container"}
{"level":"info","ts":1588771359.0927186,"logger":"camel-k.trait","msg":"Apply trait: jvm"}
{"level":"info","ts":1588771359.0928116,"logger":"camel-k.trait","msg":"Apply trait: owner"}
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
@nicolaferraro
Copy link
Member

@michaelwjoyner can you try downloading latest nightly build?
Then:

kamel version
# Camel K Client 1.0.0-nightly.202005060045
kamel install --olm=false --maven-repository=https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@snapshots
kubectl delete camelcatalog --all
kamel reset

Apache snapshots switched to Camel 3.2 and Camel K catalogs from previous nightly build are not in sync.

@michaelwjoyner
Copy link
Author

@nicolaferraro Would be useful if I test all the out of the box samples?

I will pull the nightly down and thank you for telling me what I need to do to reset everything.

@michaelwjoyner
Copy link
Author

michaelwjoyner commented May 6, 2020

@nicolaferraro I wasn't sure if I needed to do a --force but I ran the below statement.

kubectl delete all,pvc,configmap,rolebindings,clusterrolebindings,secrets,sa,roles,clusterroles,crd -l 'app=camel-k'

@michaelwjoyner
Copy link
Author

michaelwjoyner commented May 6, 2020

@nicolaferraro Please close, steps fixed the issue. It was the nightly build.

@nicolaferraro
Copy link
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants