sandbox_remove: Do not error out when CNI tear down fails
We don't want to have lingering pods because of CNI failures. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
de0013a2de
commit
53ee423192
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ func (s *Server) StopPodSandbox(ctx context.Context, req *pb.StopPodSandboxReque
|
|||
}
|
||||
if _, err := os.Stat(netnsPath); err == nil {
|
||||
if err2 := s.netPlugin.TearDownPod(netnsPath, sb.namespace, sb.kubeName, sb.id); err2 != nil {
|
||||
return nil, fmt.Errorf("failed to destroy network for container %s in sandbox %s: %v",
|
||||
logrus.Warnf("failed to destroy network for container %s in sandbox %s: %v",
|
||||
podInfraContainer.Name(), sb.id, err2)
|
||||
}
|
||||
} else if !os.IsNotExist(err) { // it's ok for netnsPath to *not* exist
|
||||
|
|
Loading…
Reference in a new issue