Closed pbochynski closed 3 years ago
The error happens frequently because natss-streaming installation fails frequently. Examples: https://github.com/kyma-incubator/local-kyma/runs/1853847670?check_suite_focus=true#step:4:73 https://github.com/kyma-incubator/local-kyma/runs/1850719897?check_suite_focus=true#step:4:76
Nats streaming will be removed from kyma in 1.21
Description
Sending event through event-service fails with 500 error.
Expected result
The event is delivered.
Actual result
Steps to reproduce
Install Kyma and execute fast-integration tests with commerce-mock:
It is not reproducible in each run. About 10% of executions fail this way.
Troubleshooting
kubectl logs -n kyma-integration commerce-c8cc4df7-9pkmb source
kubectl logs -n knative-eventing natss-ch-dispatcher-66dd8687fd-j9f58 dispatcher:
kubectl logs -n natss nats-streaming-0 nats-streaming
The password from knative-eventing natss-ch-dispatcher is
jSrqzDEmLfMG
(nats://eventbus:jSrqzDEmLfMG@nats-streaming.natss:4222). But secret looks different:The decoded password is:
tqsvCjpjDxpC
Restarting natss-ch-dispatcher solves the issue.
It seems that secret nats-user-eventbus was regenerated after it was mounted to natss-ch-dispatcher. It happens when natss-streaming is not installed in the first shot (retry happens).
Links https://helm.sh/docs/howto/charts_tips_and_tricks/#be-careful-with-generating-random-values