k3s/cmd
Kubernetes Submit Queue 53b27ef14e Merge pull request #36474 from bruceauyeung/branch-failure-check-on-umount-when-kubeadm-reset
Automatic merge from submit-queue

add failure check on umount when kubeadm reset, and on service stop

**What this PR does / why we need it**:
before this PR, `umount` will exit with code `123` if `grep` does not match anything
`xargs` has an option:

>-r, --no-run-if-empty
              If the standard input does not contain any nonblanks, do not run the command.  Normally, the command is run  once  even  if
              there is no input.  This option is a GNU extension.


1. this PR add `-r` option to `xargs` , so `umount` will not execute and exit with code `0` correctly while `grep` does not match anything.
2. this PR add failure check on umount. for example, if the directory to be umount is busy, a error message will be printed:
>failed to unmount directories in /var/lib/kubelet, umount: /var/lib/kubelet/foo/bar: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)

3. add failure check on kubelet service stop.


Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn>
2016-12-02 05:45:03 -08:00
..
clicheck autogenerated 2016-10-21 17:32:32 -07:00
gendocs autogenerated 2016-10-21 17:32:32 -07:00
genkubedocs autogenerated 2016-10-21 17:32:32 -07:00
genman autogenerated 2016-10-21 17:32:32 -07:00
genswaggertypedocs autogenerated 2016-10-21 17:32:32 -07:00
genutils autogenerated 2016-10-21 17:32:32 -07:00
genyaml Fix some lint errors. 2016-11-12 21:25:09 -08:00
hyperkube Rename master/options/{APIServer -> ServerRunOptions} 2016-10-31 10:55:19 +01:00
kube-apiserver add loopback auth defaulting to generic apiserver 2016-11-29 11:02:35 -05:00
kube-controller-manager use the client builder to support using SAs 2016-11-28 15:02:22 -05:00
kube-discovery autogenerated 2016-10-21 17:32:32 -07:00
kube-dns Fix package aliases to follow golang convention 2016-11-30 15:40:50 +08:00
kube-proxy run hack/update-all.sh 2016-11-23 15:53:09 -08:00
kubeadm Merge pull request #36474 from bruceauyeung/branch-failure-check-on-umount-when-kubeadm-reset 2016-12-02 05:45:03 -08:00
kubectl Move pkg/kubectl reviewers into an alias 2016-10-28 14:54:17 -07:00
kubelet Merge pull request #36472 from xilabao/cert-key-coexist 2016-12-01 07:52:15 -08:00
kubemark run hack/update-all.sh 2016-11-23 15:53:09 -08:00
kubernetes-discovery autogenerated 2016-10-21 17:32:32 -07:00
libs/go2idl generated: refactor 2016-11-23 22:30:47 -06:00
linkcheck autogenerated 2016-10-21 17:32:32 -07:00
mungedocs Update the latestReleaseBranch to release-1.5 in the munger. 2016-11-05 19:56:24 -07:00
OWNERS Remove myself from a bunch of OWNERS files, as I am too overloaded 2016-05-11 13:34:51 -07:00