k3s/pkg/kubelet/rkt
k8s-merge-robot ac17b239b6 Merge pull request #29145 from yifan-gu/no_chtime
Automatic merge from submit-queue

rkt: Don't return if the service file doesn't exist when killing the pod

Remove an unused logic. Also this prevents the KillPod() from failing
when the service file doesn't exist. E.g., it can be removed by garbage
collection in a rare case:

1, There are already more than `gcPolicy.MaxContainers` containers running
   on the host.
2, The new pod(A) starts to run but doesn't enter 'RUNNING' state yet.
3, GC is triggered, and it sees the pod(A) is in an inactive state (not running),
   and the it needs to remove the pod to force the `gcPolicy.MaxContainers`.
4, GC fails to remove the pod because `rkt rm` fails when the pod is running,
   but it removes the service file anyway.
5, Follow up KillPod() call will fail because it cannot find the service file
   on disk.

Also this is possible only when the pod has been in prepared state for longer
than 1 min, which sounds like another issue.

cc @kubernetes/sig-rktnetes
2016-07-21 05:20:15 -07:00
..
mock_os Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
cap.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
config.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
container_id.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
fake_rkt_interface_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
image.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
log.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
rkt.go Merge pull request #29145 from yifan-gu/no_chtime 2016-07-21 05:20:15 -07:00
rkt_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
systemd.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
version.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00