You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KIM is logging state changes. Two things should be improved:
The TO-state is sometimes empty, example:
{"level":"info","ts":"2024-11-29T12:12:21Z","msg":"switching state from github.com/kyma-project/infrastructure-manager/internal/controller/runtime/fsm.sFnWaitForShootReconcile.updateStatusAndRequeueAfter.sFnUpdateStatus.func2 to ","runtimeID":"i539990-fd2b-4186-b0e5-8a1bc8ede01","shootName":"i539990-test","requestID":3213,"result":{"Requeue":false,"RequeueAfter":30000000000},"err":null,"mFnIsNill":true}
{"level":"info","ts":"2024-11-29T12:10:57Z","msg":"switching state from github.com/kyma-project/infrastructure-manager/internal/controller/runtime/fsm.sFnEmmitEventfunc.func1 to ","runtimeID":"eb05f922-f2c1-4436-a506-745a7feacdcb","shootName":"d7ce229","requestID":3210,"result":null,"err":null,"mFnIsNill":true}
Loglevel "INFO" should be challenged as it indicates a relevant event which is relevant for maintainers/administrators. I agree that state-changes could be helpful for debugging, but the generated noise is too much (consider 1.500 Clusters will be reconcilled - this will generate several GB logs per day). Options I see:
Do we have to track each state-change separately - isn't it possible to track them whole chain of changes in one message?
If it's not possible, we shouild consider to log state-changes with DEBUG to avoid to many noise.
Expected result
TO-state is never empty
State-chagnes are optimised or reduced to DEBUG-level to reduce "log noise"
Actual result
Empty TO-changes are printed when the FROM-state is updateStatusAndRequeueAfter.sFnUpdateStatus.func2 or fsm.sFnEmmitEventfunc.func1
Log-Noise is very high caused by logging all details of state-changes
Steps to reproduce
Review logs of a reconciled cluster in KIM
Troubleshooting
The text was updated successfully, but these errors were encountered:
tobiscr
changed the title
Log message of state includes the FROM-state but TO-state is sotimes empty
Log message of state includes the FROM-state but TO-state is sometimes empty
Dec 19, 2024
Description
KIM is logging state changes. Two things should be improved:
Expected result
Actual result
updateStatusAndRequeueAfter.sFnUpdateStatus.func2
orfsm.sFnEmmitEventfunc.func1
Steps to reproduce
Review logs of a reconciled cluster in KIM
Troubleshooting
The text was updated successfully, but these errors were encountered: