kubernetes-retired / rktlet

[EOL] The rkt implementation of the Kubernetes Container Runtime Interface
Apache License 2.0
137 stars 43 forks source link

StopPodSandbox fails with "no matches found" #138

Closed dongsupark closed 7 years ago

dongsupark commented 7 years ago

During cri-tools tests, stopPodSandbox sometimes fails with errors like:

E0927 16:45:09.004685    7605 remote_runtime.go:115] StopPodSandbox "51b1d5fb-9546-4e78-b11d-63dd5029adf0" from runtime service failed: rpc error: code = Unknown desc = failed to run stop [--force=false 51b1d5fb-9546-4e78-b11d-63dd5029adf0]: exit status 254
output: stop: cannot get pod: no matches found for "51b1d5fb-9546-4e78-b11d-63dd5029adf0"
[k8s.io] PodSandbox runtime should support basic operations on PodSandbox 
  runtime should support removing PodSandbox [Conformance]
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/pod.go:72
[BeforeEach] [k8s.io] PodSandbox
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/framework/framework.go:50
[BeforeEach] [k8s.io] PodSandbox
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/pod.go:40
[It] runtime should support removing PodSandbox [Conformance]
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/pod.go:72
STEP: run PodSandbox
STEP: stop PodSandbox
STEP: Stop PodSandbox for podID: 51b1d5fb-9546-4e78-b11d-63dd5029adf0
Sep 27 16:45:08.605: INFO: Stopped PodSandbox "51b1d5fb-9546-4e78-b11d-63dd5029adf0"

STEP: test remove PodSandbox
STEP: Remove PodSandbox for podID: 51b1d5fb-9546-4e78-b11d-63dd5029adf0
Sep 27 16:45:08.946: INFO: Removed PodSandbox "51b1d5fb-9546-4e78-b11d-63dd5029adf0"

STEP: List PodSandbox for podID: 51b1d5fb-9546-4e78-b11d-63dd5029adf0
STEP: List PodSandbox.
Sep 27 16:45:08.969: INFO: List PodSandbox succeed
[AfterEach] runtime should support basic operations on PodSandbox
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/pod.go:48
STEP: stop PodSandbox
E0927 16:45:09.004685    7605 remote_runtime.go:115] StopPodSandbox "51b1d5fb-9546-4e78-b11d-63dd5029adf0" from runtime service failed: rpc error: code = Unknown desc = failed to run stop [--force=false 51b1d5fb-9546-4e78-b11d-63dd5029adf0]: exit status 254
output: stop: cannot get pod: no matches found for "51b1d5fb-9546-4e78-b11d-63dd5029adf0"
stop: failed to stop 1 pod(s)
STEP: delete PodSandbox
E0927 16:45:09.403043    7605 remote_runtime.go:132] RemovePodSandbox "51b1d5fb-9546-4e78-b11d-63dd5029adf0" from runtime service failed: rpc error: code = Unknown desc = failed to run rm [51b1d5fb-9546-4e78-b11d-63dd5029adf0]: exit status 254
output: rm: cannot get pod: no matches found for "51b1d5fb-9546-4e78-b11d-63dd5029adf0"
rm: failed to remove one or more pods
[AfterEach] [k8s.io] PodSandbox
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/framework/framework.go:51