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

examples/knative splitter 'Service.serving.knative.dev \"words\" not found' #645

Closed
maschmid opened this issue May 6, 2019 · 1 comment
Labels
kind/bug Something isn't working

Comments

@maschmid
Copy link

maschmid commented May 6, 2019

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"}
@nicolaferraro
Copy link
Member

Thanks for spotting it. That's a bug introduced probably here:

if t.EndpointSinks == "" {

@nicolaferraro nicolaferraro added the kind/bug Something isn't working label May 7, 2019
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue May 7, 2019
valdar pushed a commit to jboss-fuse/camel-k that referenced this issue May 21, 2019
ipolyzos pushed a commit to ipolyzos/camel-k that referenced this issue Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants