<p dir="auto">In a PR that only changed docs, TestHandleNodeSelector failed on shippable.<br>
<a href="https://app.shippable.com/builds/5582fe6f152d7e0b0098cd1a" rel="nofollow">https://app.shippable.com/builds/5582fe6f152d7e0b0098cd1a</a><br>
says:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="KUBE_RACE=&quot;-race&quot; KUBE_COVER=&quot;y&quot; KUBE_GOVERALLS_BIN=&quot;$HOME/gopath/bin/goveralls&quot; KUBE_TIMEOUT='-timeout 300s' KUBE_COVERPROCS=8 KUBE_TEST_ETCD_PREFIXES=&quot;${KUBE_TEST_ETCD_PREFIXES}&quot; KUBE_TEST_API_VERSIONS=&quot;${KUBE_TEST_API_VERSIONS}&quot; ./hack/test-go.sh -- -p=2
Running tests for APIVersion: v1 with etcdPrefix: registry
...
W0618 17:31:57.275251 15439 docker.go:259] found a container with the &quot;k8s&quot; prefix, but too few fields (2): &quot;k8s_unidentified&quot;
I0618 17:31:57.275655 15439 container_gc.go:128] Removing unidentified dead container &quot;/k8s_unidentified&quot; with ID &quot;2876&quot;
I0618 17:31:57.278692 15439 image_manager.go:274] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes
I0618 17:31:57.279295 15439 image_manager.go:274] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes
I0618 17:31:57.279756 15439 image_manager.go:274] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes
I0618 17:31:57.280216 15439 image_manager.go:274] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes
I0618 17:31:57.281203 15439 image_manager.go:212] [ImageManager]: Disk usage on &quot;&quot; () is at 95% which is over the high threshold (90%). Trying to free 150 bytes
I0618 17:31:57.281342 15439 image_manager.go:274] [ImageManager]: Removing image &quot;image-0&quot; to free 450 bytes
I0618 17:31:57.281655 15439 image_manager.go:212] [ImageManager]: Disk usage on &quot;&quot; () is at 95% which is over the high threshold (90%). Trying to free 150 bytes
I0618 17:31:57.281744 15439 image_manager.go:274] [ImageManager]: Removing image &quot;image-0&quot; to free 50 bytes
W0618 17:31:57.307083 15439 kubelet.go:567] Data dir for pod &quot;bothpod&quot; exists in both old and new form, using new
W0618 17:31:57.309383 15439 kubelet.go:622] Data dir for pod &quot;newpod&quot;, container &quot;bothctr&quot; exists in both old and new form, using new
I0618 17:31:57.350196 15439 plugins.go:56] Registering credential provider: .dockercfg
E0618 17:31:57.357026 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.423204 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.450256 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.450703 15439 kubelet.go:1835] error getting node: node not found
I0618 17:31:57.588034 15439 plugins.go:56] Registering credential provider: .dockercfg
E0618 17:31:57.589181 15439 kubelet.go:1739] Pod &quot;_&quot;: HostPort is already allocated, ignoring: [[0].port: duplicate value '81/']
E0618 17:31:57.591178 15439 kubelet.go:1739] Pod &quot;newpod_foo&quot;: HostPort is already allocated, ignoring: [[0].port: duplicate value '80/']
E0618 17:31:57.591468 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.594614 15439 kubelet.go:1835] error getting node: node not found
--- FAIL: TestHandleNodeSelector (0.00s)
kubelet_test.go:2318: status of pod &quot;podA_foo&quot; is not found in the status map
E0618 17:31:57.600623 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.602728 15439 kubelet.go:1739] Pod &quot;pod2_&quot;: HostPort is already allocated, ignoring: [[0].port: duplicate value '80/']
E0618 17:31:57.603082 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.603282 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.666564 15439 kubelet.go:2121] Error updating node status, will retry: error getting node &quot;&quot;: Node &quot;&quot; not found
E0618 17:31:57.666683 15439 kubelet.go:2121] Error updating node status, will retry: error getting node &quot;&quot;: Node &quot;&quot; not found
E0618 17:31:57.666745 15439 kubelet.go:2121] Error updating node status, will retry: error getting node &quot;&quot;: Node &quot;&quot; not found
E0618 17:31:57.666810 15439 kubelet.go:2121] Error updating node status, will retry: error getting node &quot;&quot;: Node &quot;&quot; not found
E0618 17:31:57.666868 15439 kubelet.go:2121] Error updating node status, will retry: error getting node &quot;&quot;: Node &quot;&quot; not found
E0618 17:31:57.690660 15439 kubelet.go:1365] Deleting mirror pod &quot;foo_ns&quot; because it is outdated
E0618 17:31:57.698968 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.714840 15439 kubelet.go:1835] error getting node: node not found
I0618 17:31:57.861009 15439 kubelet.go:872] Node was previously registered
W0618 17:31:57.861717 15439 kubelet.go:958] Port name conflicted, &quot;fooContainer-foo&quot; is defined more than once
W0618 17:31:57.861814 15439 kubelet.go:958] Port name conflicted, &quot;fooContainer-TCP:80&quot; is defined more than once
E0618 17:31:57.920199 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.923393 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.927939 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.932362 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:58.002995 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:58.025981 15439 kubelet.go:1835] error getting node: node not found
I0618 17:31:58.029290 15439 plugins.go:56] Registering credential provider: .dockercfg
I0618 17:31:58.095041 15439 plugins.go:56] Registering credential provider: .dockercfg
I0618 17:31:58.096872 15439 plugins.go:56] Registering credential provider: .dockercfg
I0618 17:31:58.158154 15439 plugins.go:56] Registering credential provider: .dockercfg
W0618 17:31:58.159426 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.159557 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.159651 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.159729 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.159908 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.160051 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.160146 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.160241 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.160879 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_98765_0&quot;
W0618 17:31:58.160981 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_98765_0&quot;
W0618 17:31:58.161063 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.161149 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.161322 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_98765_0&quot;
W0618 17:31:58.161447 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_98765_0&quot;
W0618 17:31:58.161542 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.161633 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.161879 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_12345678_0&quot;
W0618 17:31:58.161983 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_12345678_0&quot;
W0618 17:31:58.162078 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.162160 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.162298 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.162403 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot;
W0618 17:31:58.162494 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_12345678_0&quot;
W0618 17:31:58.162576 15439 docker.go:269] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_12345678_0&quot;
I0618 17:31:58.164822 15439 plugins.go:56] Registering credential provider: .dockercfg
E0618 17:31:58.165088 15439 kubelet.go:1835] error getting node: node not found
I0618 17:31:58.165618 15439 runonce.go:59] waiting for 1 pods
I0618 17:31:58.166095 15439 runonce.go:145] Container &quot;bar&quot; not running: api.ContainerState{Waiting:(*api.ContainerStateWaiting)(0xc20834c930), Running:(*api.ContainerStateRunning)(nil), Terminated:(*api.ContainerStateTerminated)(nil)}
I0618 17:31:58.166220 15439 runonce.go:111] pod &quot;foo&quot; containers not running: syncing
W0618 17:31:58.173560 15439 docker.go:259] found a container with the &quot;k8s&quot; prefix, but too few fields (5): &quot;k8s_net_foo.new.test_abcdefgh_42&quot;
I0618 17:31:58.173949 15439 runonce.go:124] pod &quot;foo&quot; containers synced, waiting for 1ms
W0618 17:31:58.178447 15439 docker.go:259] found a container with the &quot;k8s&quot; prefix, but too few fields (5): &quot;k8s_net_foo.new.test_abcdefgh_42&quot;
E0618 17:31:58.178664 15439 manager.go:742] Error examining the container: parse docker container name &quot;/k8s_net_foo.new.test_abcdefgh_42&quot; error: Docker container name &quot;k8s_net_foo.new.test_abcdefgh_42&quot; has less parts than expected [k8s net foo.new.test abcdefgh 42]
W0618 17:31:58.179478 15439 docker.go:259] found a container with the &quot;k8s&quot; prefix, but too few fields (5): &quot;k8s_net_foo.new.test_abcdefgh_42&quot;
I0618 17:31:58.179651 15439 runonce.go:107] pod &quot;foo&quot; containers running
I0618 17:31:58.179788 15439 runonce.go:72] started pod &quot;foo&quot;
I0618 17:31:58.179862 15439 runonce.go:81] 1 pods started
W0618 17:31:59.842085 15439 connection.go:126] Stream rejected: Unable to parse '' as a port: strconv.ParseUint: parsing &quot;&quot;: invalid syntax
W0618 17:31:59.860739 15439 connection.go:126] Stream rejected: Unable to parse 'abc' as a port: strconv.ParseUint: parsing &quot;abc&quot;: invalid syntax
W0618 17:31:59.967321 15439 connection.go:126] Stream rejected: Unable to parse '-1' as a port: strconv.ParseUint: parsing &quot;-1&quot;: invalid syntax
W0618 17:32:00.026988 15439 connection.go:126] Stream rejected: Unable to parse '65536' as a port: strconv.ParseUint: parsing &quot;65536&quot;: value out of range
W0618 17:32:00.104831 15439 connection.go:126] Stream rejected: Port '0' must be greater than 0
FAIL
coverage: 60.4% of statements
FAIL    github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet   3.423s"><pre class="notranslate"><code class="notranslate">KUBE_RACE="-race" KUBE_COVER="y" KUBE_GOVERALLS_BIN="$HOME/gopath/bin/goveralls" KUBE_TIMEOUT='-timeout 300s' KUBE_COVERPROCS=8 KUBE_TEST_ETCD_PREFIXES="${KUBE_TEST_ETCD_PREFIXES}" KUBE_TEST_API_VERSIONS="${KUBE_TEST_API_VERSIONS}" ./hack/test-go.sh -- -p=2
Running tests for APIVersion: v1 with etcdPrefix: registry
...
W0618 17:31:57.275251 15439 docker.go:259] found a container with the "k8s" prefix, but too few fields (2): "k8s_unidentified"
I0618 17:31:57.275655 15439 container_gc.go:128] Removing unidentified dead container "/k8s_unidentified" with ID "2876"
I0618 17:31:57.278692 15439 image_manager.go:274] [ImageManager]: Removing image "image-0" to free 1024 bytes
I0618 17:31:57.279295 15439 image_manager.go:274] [ImageManager]: Removing image "image-0" to free 1024 bytes
I0618 17:31:57.279756 15439 image_manager.go:274] [ImageManager]: Removing image "image-0" to free 1024 bytes
I0618 17:31:57.280216 15439 image_manager.go:274] [ImageManager]: Removing image "image-0" to free 1024 bytes
I0618 17:31:57.281203 15439 image_manager.go:212] [ImageManager]: Disk usage on "" () is at 95% which is over the high threshold (90%). Trying to free 150 bytes
I0618 17:31:57.281342 15439 image_manager.go:274] [ImageManager]: Removing image "image-0" to free 450 bytes
I0618 17:31:57.281655 15439 image_manager.go:212] [ImageManager]: Disk usage on "" () is at 95% which is over the high threshold (90%). Trying to free 150 bytes
I0618 17:31:57.281744 15439 image_manager.go:274] [ImageManager]: Removing image "image-0" to free 50 bytes
W0618 17:31:57.307083 15439 kubelet.go:567] Data dir for pod "bothpod" exists in both old and new form, using new
W0618 17:31:57.309383 15439 kubelet.go:622] Data dir for pod "newpod", container "bothctr" exists in both old and new form, using new
I0618 17:31:57.350196 15439 plugins.go:56] Registering credential provider: .dockercfg
E0618 17:31:57.357026 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.423204 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.450256 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.450703 15439 kubelet.go:1835] error getting node: node not found
I0618 17:31:57.588034 15439 plugins.go:56] Registering credential provider: .dockercfg
E0618 17:31:57.589181 15439 kubelet.go:1739] Pod "_": HostPort is already allocated, ignoring: [[0].port: duplicate value '81/']
E0618 17:31:57.591178 15439 kubelet.go:1739] Pod "newpod_foo": HostPort is already allocated, ignoring: [[0].port: duplicate value '80/']
E0618 17:31:57.591468 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.594614 15439 kubelet.go:1835] error getting node: node not found
--- FAIL: TestHandleNodeSelector (0.00s)
kubelet_test.go:2318: status of pod "podA_foo" is not found in the status map
E0618 17:31:57.600623 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.602728 15439 kubelet.go:1739] Pod "pod2_": HostPort is already allocated, ignoring: [[0].port: duplicate value '80/']
E0618 17:31:57.603082 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.603282 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.666564 15439 kubelet.go:2121] Error updating node status, will retry: error getting node "": Node "" not found
E0618 17:31:57.666683 15439 kubelet.go:2121] Error updating node status, will retry: error getting node "": Node "" not found
E0618 17:31:57.666745 15439 kubelet.go:2121] Error updating node status, will retry: error getting node "": Node "" not found
E0618 17:31:57.666810 15439 kubelet.go:2121] Error updating node status, will retry: error getting node "": Node "" not found
E0618 17:31:57.666868 15439 kubelet.go:2121] Error updating node status, will retry: error getting node "": Node "" not found
E0618 17:31:57.690660 15439 kubelet.go:1365] Deleting mirror pod "foo_ns" because it is outdated
E0618 17:31:57.698968 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.714840 15439 kubelet.go:1835] error getting node: node not found
I0618 17:31:57.861009 15439 kubelet.go:872] Node was previously registered
W0618 17:31:57.861717 15439 kubelet.go:958] Port name conflicted, "fooContainer-foo" is defined more than once
W0618 17:31:57.861814 15439 kubelet.go:958] Port name conflicted, "fooContainer-TCP:80" is defined more than once
E0618 17:31:57.920199 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.923393 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.927939 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:57.932362 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:58.002995 15439 kubelet.go:1835] error getting node: node not found
E0618 17:31:58.025981 15439 kubelet.go:1835] error getting node: node not found
I0618 17:31:58.029290 15439 plugins.go:56] Registering credential provider: .dockercfg
I0618 17:31:58.095041 15439 plugins.go:56] Registering credential provider: .dockercfg
I0618 17:31:58.096872 15439 plugins.go:56] Registering credential provider: .dockercfg
I0618 17:31:58.158154 15439 plugins.go:56] Registering credential provider: .dockercfg
W0618 17:31:58.159426 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_foo_new_12345678_0"
W0618 17:31:58.159557 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_foo_new_12345678_0"
W0618 17:31:58.159651 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.159729 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.159908 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.160051 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.160146 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_foo_new_12345678_0"
W0618 17:31:58.160241 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_foo_new_12345678_0"
W0618 17:31:58.160879 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_98765_0"
W0618 17:31:58.160981 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_98765_0"
W0618 17:31:58.161063 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.161149 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.161322 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_98765_0"
W0618 17:31:58.161447 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_98765_0"
W0618 17:31:58.161542 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.161633 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.161879 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_12345678_0"
W0618 17:31:58.161983 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_12345678_0"
W0618 17:31:58.162078 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.162160 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.162298 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.162403 15439 docker.go:269] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0"
W0618 17:31:58.162494 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_12345678_0"
W0618 17:31:58.162576 15439 docker.go:269] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_12345678_0"
I0618 17:31:58.164822 15439 plugins.go:56] Registering credential provider: .dockercfg
E0618 17:31:58.165088 15439 kubelet.go:1835] error getting node: node not found
I0618 17:31:58.165618 15439 runonce.go:59] waiting for 1 pods
I0618 17:31:58.166095 15439 runonce.go:145] Container "bar" not running: api.ContainerState{Waiting:(*api.ContainerStateWaiting)(0xc20834c930), Running:(*api.ContainerStateRunning)(nil), Terminated:(*api.ContainerStateTerminated)(nil)}
I0618 17:31:58.166220 15439 runonce.go:111] pod "foo" containers not running: syncing
W0618 17:31:58.173560 15439 docker.go:259] found a container with the "k8s" prefix, but too few fields (5): "k8s_net_foo.new.test_abcdefgh_42"
I0618 17:31:58.173949 15439 runonce.go:124] pod "foo" containers synced, waiting for 1ms
W0618 17:31:58.178447 15439 docker.go:259] found a container with the "k8s" prefix, but too few fields (5): "k8s_net_foo.new.test_abcdefgh_42"
E0618 17:31:58.178664 15439 manager.go:742] Error examining the container: parse docker container name "/k8s_net_foo.new.test_abcdefgh_42" error: Docker container name "k8s_net_foo.new.test_abcdefgh_42" has less parts than expected [k8s net foo.new.test abcdefgh 42]
W0618 17:31:58.179478 15439 docker.go:259] found a container with the "k8s" prefix, but too few fields (5): "k8s_net_foo.new.test_abcdefgh_42"
I0618 17:31:58.179651 15439 runonce.go:107] pod "foo" containers running
I0618 17:31:58.179788 15439 runonce.go:72] started pod "foo"
I0618 17:31:58.179862 15439 runonce.go:81] 1 pods started
W0618 17:31:59.842085 15439 connection.go:126] Stream rejected: Unable to parse '' as a port: strconv.ParseUint: parsing "": invalid syntax
W0618 17:31:59.860739 15439 connection.go:126] Stream rejected: Unable to parse 'abc' as a port: strconv.ParseUint: parsing "abc": invalid syntax
W0618 17:31:59.967321 15439 connection.go:126] Stream rejected: Unable to parse '-1' as a port: strconv.ParseUint: parsing "-1": invalid syntax
W0618 17:32:00.026988 15439 connection.go:126] Stream rejected: Unable to parse '65536' as a port: strconv.ParseUint: parsing "65536": value out of range
W0618 17:32:00.104831 15439 connection.go:126] Stream rejected: Port '0' must be greater than 0
FAIL
coverage: 60.4% of statements
FAIL    github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet   3.423s
</code></pre></div>
<p dir="auto">A developer accidentally made two deployments with labels that overlapped, such that one of the deployment's selectors matched the pods from both deployments.  In the repro below the labels are exactly the same, but this also happened one one set of labels is a subset of another.</p>
<p dir="auto">Expected: An error?</p>
<p dir="auto">Actual: <strong>Cluster CPU went past 100% and everything else broke.</strong> Crazy thrashing with kubernetes shutting down pods &amp; restarting new ones so quickly that we could not even get logs. They never made it past the Pending state.</p>
<p dir="auto">We are running kubernetes 1.2 on GKE. Here's a minimal repro, just apply it (on a cluster you don't need!  D: )</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: d1
spec:
  replicas: 1
  template:
    metadata:
      labels:
        duplicate-key: duplicate-value
    spec:
      containers:
        - image: busybox
          name: c1

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: d2
spec:
  replicas: 1
  template:
    metadata:
      labels:
        duplicate-key: duplicate-value
    spec:
      containers:
        - image: busybox
          name: c2"><pre class="notranslate"><code class="notranslate">apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: d1
spec:
  replicas: 1
  template:
    metadata:
      labels:
        duplicate-key: duplicate-value
    spec:
      containers:
        - image: busybox
          name: c1

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: d2
spec:
  replicas: 1
  template:
    metadata:
      labels:
        duplicate-key: duplicate-value
    spec:
      containers:
        - image: busybox
          name: c2
</code></pre></div>