Improve error handling when InitializeMachine
method is not yet implement by a provider
#934
Labels
kind/bug
Bug
priority/2
Priority (lower number equals higher priority)
status/closed
Issue is closed (either delivered or triaged)
How to categorize this issue?
/area logging|ops-productivity
/kind bug
/priority 2
What happened:
Currently the InitializeMachine is not implemented by every provider other than AWS.
However as the call to the provider implementation results in
Unimplemented
error type, MCM logs the error and doesn't check the semantics to rather ignore this error. https://github.com/gardener/machine-controller-manager/blob/ff8261398277c3e5a481f0[…]fb57c417dfd07754/pkg/util/provider/machinecontroller/machine.go.Can we mark this as an Info/Warning message instead of error.
What you expected to happen:
The system to ignore the error when the method is not yet implemented and just log the behavior as an Info log.
How to reproduce it (as minimally and precisely as possible):
Create a machine in Azure where this method is not implemented and you should see the logs containing this error.
Anything else we need to know?:
Environment:
kubectl version
):The text was updated successfully, but these errors were encountered: