diff --git a/.changelog/25581.txt b/.changelog/25581.txt new file mode 100644 index 000000000..571b29dcc --- /dev/null +++ b/.changelog/25581.txt @@ -0,0 +1,3 @@ +```release-note:improvement +cni: Add a warning log when CNI check commands fail +``` diff --git a/client/allocrunner/network_hook.go b/client/allocrunner/network_hook.go index 472cc5ad4..1ac34d678 100644 --- a/client/allocrunner/network_hook.go +++ b/client/allocrunner/network_hook.go @@ -157,6 +157,7 @@ CREATE: // ErrCNICheckFailed. We'll try to recover from this one time by // recreating the netns from scratch before giving up if errors.Is(err, ErrCNICheckFailed) && !checkedOnce { + h.logger.Warn("network configuration check failed", "error", err) checkedOnce = true destroyErr := h.manager.DestroyNetwork(h.alloc.ID, spec) if destroyErr != nil {