mirror of https://github.com/k3s-io/k3s
Merge pull request #42556 from resouer/fix-id
Automatic merge from submit-queue (batch tested with PRs 42522, 42545, 42556, 42006, 42631) Use pod sandbox id in checkpoint **What this PR does / why we need it**: we should log out sandbox id when checkpoint error **Release note**: ```NONE ```pull/6/head
commit
a4986e38e6
|
@ -301,7 +301,7 @@ func (ds *dockerService) GetPodPortMappings(podSandboxID string) ([]*hostport.Po
|
|||
// Return empty portMappings if checkpoint is not found
|
||||
if err != nil {
|
||||
if err == errors.CheckpointNotFoundError {
|
||||
glog.Warningf("Failed to retrieve checkpoint for sandbox %q: %v", err)
|
||||
glog.Warningf("Failed to retrieve checkpoint for sandbox %q: %v", podSandboxID, err)
|
||||
return nil, nil
|
||||
} else {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue