mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
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 ```
This commit is contained in:
commit
a4986e38e6
@ -301,7 +301,7 @@ func (ds *dockerService) GetPodPortMappings(podSandboxID string) ([]*hostport.Po
|
|||||||
// Return empty portMappings if checkpoint is not found
|
// Return empty portMappings if checkpoint is not found
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == errors.CheckpointNotFoundError {
|
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
|
return nil, nil
|
||||||
} else {
|
} else {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user