You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by GitBox <gi...@apache.org> on 2019/05/06 19:42:48 UTC

[GitHub] [camel-k] maschmid opened a new issue #645: examples/knative splitter 'Service.serving.knative.dev \"words\" not found'

maschmid opened a new issue #645: examples/knative splitter 'Service.serving.knative.dev \"words\" not found'
URL: https://github.com/apache/camel-k/issues/645
 
 
   Attemting to run the examples/knative examples on knative for OpenShift
   
   (installed via https://github.com/openshift-cloud-functions/knative-operators/blob/openshift-v0.5.0/etc/scripts/install.sh  on OCP 4.1.rc0 on AWS)
   
   the "printer" integration deploys fine,
   attempting to add the "splitter" with
   
   kamel run splitter.groovy
   
   ```
   from('knative:channel/messages')
     .split().tokenize(" ")
     .log('sending ${body} to words channel')
     .to('knative:channel/words')
   ```
   
   the splitter stays in the "Deploying" state, with the following error during splitter Integration reconsiliation:
   
   ```
   error during trait customization before deployment: could not retrieve service words in namespace myproject: Service.serving.knative.dev \"words\" not found
   ```
   
   (note that the "words" exists as a channel, not as a knative service)
   
   full error:
   
   ```
   {"level":"info","ts":1557171498.1958346,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"myproject","request-name":"splitter"}
   {"level":"info","ts":1557171498.1959271,"logger":"camel-k.controller.integration","msg":"Invoking action deploy","request-namespace":"myproject","request-name":"splitter","api-version":"camel.apache.org/v1alpha1","kind":"Integration","ns":"myproject","name":"splitter"}
   {"level":"info","ts":1557171498.196114,"logger":"camel-k.trait","msg":"Apply trait: camel"}
   {"level":"info","ts":1557171498.1990047,"logger":"camel-k.trait","msg":"Apply trait: gc"}
   {"level":"info","ts":1557171498.1997056,"logger":"camel-k.trait","msg":"Apply trait: knative"}
   {"level":"error","ts":1557171498.1997898,"logger":"kubebuilder.controller","msg":"Reconciler error","controller":"integration-controller","request":"myproject/splitter","error":"error during trait customization before deployment: could not retrieve service words in namespace myproject: Service.serving.knative.dev \"words\" not found","errorVerbose":"Service.serving.knative.dev \"words\" not found\ncould not retrieve service words in namespace myproject\ngithub.com/apache/camel-k/pkg/util/knative.GetService\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/util/knative/knative.go:94\ngithub.com/apache/camel-k/pkg/trait.(*knativeTrait).configureEndpoints\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/trait/knative.go:251\ngithub.com/apache/camel-k/pkg/trait.(*knativeTrait).createConfiguration\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/trait/knative.go:131\ngithub.com/apache/camel-k/pkg/trait.(*knativeTrait).Apply\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/trait/knative.go:110\ngithub.com/apache/camel-k/pkg/trait.(*Catalog).apply\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/trait/trait_catalog.go:222\ngithub.com/apache/camel-k/pkg/trait.Apply\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/trait/trait.go:49\ngithub.com/apache/camel-k/pkg/controller/integration.(*deployAction).Handle\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/controller/integration/deploy.go:62\ngithub.com/apache/camel-k/pkg/controller/integration.(*ReconcileIntegration).Reconcile\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/controller/integration/integration_controller.go:151\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:2361\nerror during trait customization before deployment\ngithub.com/apache/camel-k/pkg/trait.Apply\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/trait/trait.go:50\ngithub.com/apache/camel-k/pkg/controller/integration.(*deployAction).Handle\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/controller/integration/deploy.go:62\ngithub.com/apache/camel-k/pkg/controller/integration.(*ReconcileIntegration).Reconcile\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/controller/integration/integration_controller.go:151\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:2361","stacktrace":"github.com/apache/camel-k/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:217\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services