server: notify user when network isn't ready yet
or else they just wait forever
@@ -370,7 +370,9 @@ func (s *Server) runPodSandbox(ctx context.Context, req *types.RunPodSandboxRequ
// if the cni plugin isn't ready yet, we should wait until it is
// before proceeding
watcher := s.config.CNIPluginAddWatcher()
+ log.Infof(ctx, "CNI plugin not ready. Waiting to create %s as it is not host network", sbox.Name())
<-watcher
+ log.Infof(ctx, "CNI plugin is now ready. Continuing to create %s", sbox.Name())
}
description := fmt.Sprintf("runSandbox: releasing pod sandbox name: %s", sbox.Name())
