kyma-project / application-connector-manager

Apache License 2.0
0 stars 12 forks source link

Application Connector - Events are not received after installation #251

Open koala7659 opened 3 months ago

koala7659 commented 3 months ago

Description

After fresh installation application connector module is unable to receive events until Application are synchronised with Compass which takes about 10 minutes after installation.

It is most likely caused by the reconciliation algorithm in the compass-runtime agent. Normally when compass-runtime-agent service was running from the moment when Kyma Runtime was installed this effect was hardly visible.

When application instance is missing the event received from it is rejected by the connectivity-validator service:

{"level":"INFO","timestamp":"2024-04-22T11:56:31Z","caller":"validationproxy/handler.go:93","message":"Proxying request for application...","traceid":"unknown","spanid":"unknown","context":{"handler":"validation_proxy_handler","application":"mp-pg-fresh","proxyPath":"/mp-pg-fresh/v1/events"}}
{"level":"ERROR","timestamp":"2024-04-22T11:56:31Z","caller":"httptools/response.go:16","message":"Error: while getting application ClientIds: application data for name mp-pg-fresh is not found in the cache. Please retry","traceid":"unknown","spanid":"unknown","context":{"handler":"validation_proxy_handler","applicationName":"mp-pg-fresh"}}
{"level":"INFO","timestamp":"2024-04-22T11:56:31Z","caller":"validationproxy/handler.go:93","message":"Proxying request for application...","traceid":"unknown","spanid":"unknown","context":{"handler":"validation_proxy_handler","application":"mp-pg-fresh","proxyPath":"/mp-pg-fresh/v1/events"}}
{"level":"ERROR","timestamp":"2024-04-22T11:56:31Z","caller":"httptools/response.go:16","message":"Error: while getting application ClientIds: application data for name mp-pg-fresh is not found in the cache. Please retry","spanid":"unknown","traceid":"unknown","context":{"handler":"validation_proxy_handler","applicationName":"mp-pg-fresh"}}

image

=> Fix required. Review in our reconciliation function required to identify a solution.