Description of problem: There are two issues in this bug: 1. when use 'oadm manage-node' list pods on node, the output info for different nodes is not consistent. 2. when use 'oadm manage-node' evacuate pods no node with '--dry-run', the output info display twice. Version-Release number of selected component (if applicable): openshift v3.4.0.18+ada983f kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0 How reproducible: Always Steps to Reproduce: 1.Get node info and create some pod on node [root@qe-dma-master-1 ~]# oc get node NAME STATUS AGE qe-dma-master-1 Ready 5h qe-dma-node-registry-router-1 Ready 5h 2.List pod on multi nodes [root@qe-dma-master-1 ~]# oadm manage-node --list-pods --pod-selector='name=heapster' --selector='role=node' Listing matched pods on node: qe-dma-master-1 NAME READY STATUS RESTARTS AGE Listing matched pods on node: qe-dma-node-registry-router-1 heapster-tw295 0/1 Running 35 4h 3.Evacuate pods on multi nodes with '--dry-run' [root@qe-dma-master-1 ~]# oadm manage-node qe-dma-master-1 qe-dma-node-registry-router-1 --evacuate --pod-selector='name=hello-daemonset' --dry-run Listing matched pods on node: qe-dma-master-1 NAME READY STATUS RESTARTS AGE hello-daemonset-pk9nt 1/1 Running 0 8m Listing matched pods on node: qe-dma-node-registry-router-1 hello-daemonset-fmaiz 1/1 Running 0 6m Listing matched pods on node: qe-dma-master-1 NAME READY STATUS RESTARTS AGE hello-daemonset-pk9nt 1/1 Running 0 8m Listing matched pods on node: qe-dma-node-registry-router-1 hello-daemonset-fmaiz 1/1 Running 0 6m Actual results: 2.The output format on different node should be consistent 3.The result should only display once Expected results: Additional info:
Related PR: https://github.com/openshift/origin/pull/12528
Related upstream PR: https://github.com/kubernetes/kubernetes/pull/40111 origin PR will merge after rebase with kube 1.6. Adding UpcomingRelease tag to this bug
Waiting for the 1.6 Kube rebase.
Fixed by the 1.6 Kubernetes rebase and https://github.com/openshift/origin/pull/12528.
Verify on openshift v3.6.94 [root@qe-dma36-master-1 ~]# oc get node NAME STATUS AGE VERSION qe-dma36-master-1 Ready 6h v1.6.1+5115d708d7 qe-dma36-node-registry-router-1 Ready 6h v1.6.1+5115d708d7 [root@qe-dma36-master-1 ~]# oadm manage-node --list-pods --pod-selector='name=hello-pod' --selector='role=node' Listing matched pods on node: qe-dma36-master-1 NAME READY STATUS RESTARTS AGE Listing matched pods on node: qe-dma36-node-registry-router-1 NAME READY STATUS RESTARTS AGE hello-pod 0/1 Running 0 15m [root@qe-dma36-master-1 ~]# oadm manage-node qe-dma36-node-registry-router-1 --evacuate --dry-run --pod-selector='name=hello-pod' Flag --evacuate has been deprecated, use 'oadm drain NODE' instead Listing matched pods on node: qe-dma36-node-registry-router-1 NAME READY STATUS RESTARTS AGE hello-pod 0/1 Running 0 15m
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1716