tadayosi commented on pull request #2195:
URL: https://github.com/apache/camel-k/pull/2195#issuecomment-864837286
> Do you manage to reproduce the exact same error reported by the Knative
Eventing webhook?
I tested with a range of Eventing versions including v0.18.0, v0.20.4,
v0.21.4, and v0.22.1 and the errors occured vary slightly depending on the
versions. The error I had with v0.20.4 (if I remember it correctly) is as
follows:
```json
{
"level": "error",
"ts": "2021-06-20T13:54:34.688Z",
"logger": "eventing-webhook",
"caller": "v1/sinkbinding_lifecycle.go:109",
"msg": "URI could not be extracted from destination: ",
"commit": "af9c290",
"knative.dev/pod": "eventing-webhook-8489d86856-glgkz",
"knative.dev/kind": "apps/v1, Kind=Deployment",
"knative.dev/namespace": "test-90ba8b8a-f863-4ed1-912b-655a7efb17bd",
"knative.dev/name": "knativegetpost1",
"knative.dev/operation": "CREATE",
"knative.dev/resource": "apps/v1, Resource=deployments",
"knative.dev/subresource": "",
"knative.dev/userinfo":
"{system:serviceaccount:test-90ba8b8a-f863-4ed1-912b-655a7efb17bd:camel-k-operator
f330ad09-9852-4c79-ac4e-fe7f8665a45a [system:serviceaccounts
system:serviceaccounts:test-90ba8b8a-f863-4ed1-912b-655a7efb17bd
system:authenticated] map[]}",
"error": "inmemorychannels.messaging.knative.dev \"messages\" not found",
"logging.googleapis.com/labels": {},
"logging.googleapis.com/sourceLocation": {
"file":
"knative.dev/eventing/pkg/apis/sources/v1/sinkbinding_lifecycle.go",
"line": "109",
"function": "knative.dev/eventing/pkg/apis/sources/v1.(*SinkBinding).Do"
},
"stacktrace":
"knative.dev/eventing/pkg/apis/sources/v1.(*SinkBinding).Do\n\tknative.dev/eventing/pkg/apis/sources/v1/sinkbinding_lifecycle.go:109\nknative.dev/pkg/webhook/psbinding.(*Reconciler).Admit\n\tknative.dev/[email protected]/webhook/psbinding/psbinding.go:221\nknative.dev/pkg/webhook.admissionHandler.func1\n\tknative.dev/[email protected]/webhook/admission.go:115\nnet/http.HandlerFunc.ServeHTTP\n\tnet/http/server.go:2042\nnet/http.(*ServeMux).ServeHTTP\n\tnet/http/server.go:2417\nknative.dev/pkg/webhook.(*Webhook).ServeHTTP\n\tknative.dev/[email protected]/webhook/webhook.go:248\nknative.dev/pkg/network/handlers.(*Drainer).ServeHTTP\n\tknative.dev/[email protected]/network/handlers/drain.go:96\nnet/http.serverHandler.ServeHTTP\n\tnet/http/server.go:2843\nnet/http.(*conn).serve\n\tnet/http/server.go:1925"
}
...
{
"level": "warn",
"ts": "2021-06-20T13:54:34.933Z",
"logger": "eventing-webhook.SinkBindings",
"caller": "psbinding/reconciler.go:147",
"msg": "Failed to update resource status",
"commit": "af9c290",
"knative.dev/pod": "eventing-webhook-8489d86856-glgkz",
"knative.dev/traceid": "232ab6fc-a146-4184-8536-1e8362e702d2",
"knative.dev/key":
"test-90ba8b8a-f863-4ed1-912b-655a7efb17bd/knativegetpost1",
"error": "Operation cannot be fulfilled on
sinkbindings.sources.knative.dev \"knativegetpost1\": the object has been
modified; please apply your changes to the latest version and try again",
"logging.googleapis.com/labels": {},
"logging.googleapis.com/sourceLocation": {
"file":
"knative.dev/[email protected]/webhook/psbinding/reconciler.go",
"line": "147",
"function":
"knative.dev/pkg/webhook/psbinding.(*BaseReconciler).Reconcile"
}
}
{
"level": "error",
"ts": "2021-06-20T13:54:34.933Z",
"logger": "eventing-webhook.SinkBindings",
"caller": "controller/controller.go:538",
"msg": "Reconcile error",
"commit": "af9c290",
"knative.dev/pod": "eventing-webhook-8489d86856-glgkz",
"error": "Operation cannot be fulfilled on
sinkbindings.sources.knative.dev \"knativegetpost1\": the object has been
modified; please apply your changes to the latest version and try again",
"logging.googleapis.com/labels": {},
"logging.googleapis.com/sourceLocation": {
"file":
"knative.dev/[email protected]/controller/controller.go",
"line": "538",
"function": "knative.dev/pkg/controller.(*Impl).handleErr"
},
"stacktrace":
"knative.dev/pkg/controller.(*Impl).handleErr\n\tknative.dev/[email protected]/controller/controller.go:538\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/[email protected]/controller/controller.go:524\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/[email protected]/controller/controller.go:461"
}
...
{
"level": "error",
"ts": "2021-06-20T13:54:34.950Z",
"logger": "eventing-webhook.SinkBindings",
"caller": "sinkbinding/controller.go:153",
"msg": "Failed to get URI from Destination: %!w(*errors.StatusError=&{{{ }
{ <nil>} Failure inmemorychannels.messaging.knative.dev \"messages\" not
found NotFound 0xc001756060 404}})",
"commit": "af9c290",
"knative.dev/pod": "eventing-webhook-8489d86856-glgkz",
"knative.dev/traceid": "4476c6cb-054a-4cae-937e-959d138a0f48",
"knative.dev/key":
"test-90ba8b8a-f863-4ed1-912b-655a7efb17bd/knativegetpost1",
"logging.googleapis.com/labels": {},
"logging.googleapis.com/sourceLocation": {
"file": "knative.dev/eventing/pkg/reconciler/sinkbinding/controller.go",
"line": "153",
"function":
"knative.dev/eventing/pkg/reconciler/sinkbinding.(*SinkBindingSubResourcesReconciler).Reconcile"
},
"stacktrace":
"knative.dev/eventing/pkg/reconciler/sinkbinding.(*SinkBindingSubResourcesReconciler).Reconcile\n\tknative.dev/eventing/pkg/reconciler/sinkbinding/controller.go:153\nknative.dev/pkg/webhook/psbinding.(*BaseReconciler).reconcile\n\tknative.dev/[email protected]/webhook/psbinding/reconciler.go:188\nknative.dev/pkg/webhook/psbinding.(*BaseReconciler).Reconcile\n\tknative.dev/[email protected]/webhook/psbinding/reconciler.go:140\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/[email protected]/controller/controller.go:523\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/[email protected]/controller/controller.go:461"
}
```
The last line is identical to what you showed in a preivous comment.
--
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:
[email protected]