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
We hit the following error in our environment just once.
time="2023-02-01T02:04:48Z" level=fatal msg="could not perform assertion: hybridControllerFrontend.(controllerhelpers.ControllerHelper)"
As I can see the trident log, the process exited by the fatal error and then the trident container was restarted successfully.
hybridControllerFrontend could be nil if a temporary error(e.g. failure of creating k8s client) occurs here, which causes the type assertion error.
The err is checked here, but before that, the err is overwitten here. So if k8sctrlhelper.NewHelper failed but k8snodehelper.NewHelper succeeded, the error check would be passed and the type assertion of hybridControllerFrontend would be executed even though it is nil.
Environment
Provide accurate information about the environment to help us reproduce the issue.
To Reproduce
It is difficult to reproduce this problem intentionally, but I think it would be reproduced if you changed the code to make k8sctrlhelper.NewHelper always return error here.
Expected behavior
handle the error correctly
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
We hit the following error in our environment just once.
As I can see the trident log, the process exited by the fatal error and then the trident container was restarted successfully.
hybridControllerFrontend
could be nil if a temporary error(e.g. failure of creating k8s client) occurs here, which causes the type assertion error.The
err
is checked here, but before that, theerr
is overwitten here. So ifk8sctrlhelper.NewHelper
failed butk8snodehelper.NewHelper
succeeded, the error check would be passed and the type assertion ofhybridControllerFrontend
would be executed even though it is nil.Environment
Provide accurate information about the environment to help us reproduce the issue.
silenceAutosupport: true
(Trident Operator)To Reproduce
It is difficult to reproduce this problem intentionally, but I think it would be reproduced if you changed the code to make k8sctrlhelper.NewHelper always return error here.
Expected behavior
handle the error correctly
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: