<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): canary, too many pods, pods dying, label selector</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p>

<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): 1.2.0</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: baremetal</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): CentOS Linux release 7.2.1511 (Core)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 4.4.24-1</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>: flannel (0.5.3)</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
I am trying to deploy a canary as described at <a href="http://kubernetes.io/docs/user-guide/managing-deployments/#canary-deployments" rel="nofollow">http://kubernetes.io/docs/user-guide/managing-deployments/#canary-deployments</a>.  I have 2 deployments which are identical except for their names and # of replicas.  Deployment A has replicas=6 and deployment B has replicas=1, both having the same app label.  I have one service which includes both deployments via the label selector.  I am able to launch deployment A and everything runs fine.  However when I launch deployment B, I notice 3 pods are created for the deployment.  Even more problematic is it seems the pods in deployment B are in a cycle of dying and being recreated.  The interesting thing is, if I simply change the app label on deployment B and relaunch it, the correct number of replicas are created and the pod stays alive.  But obviously that won't work for canarying.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
Canary deployment should honor number of replicas and be stable.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
Create 2 deployments that share the same app label and 1 service which selects for the app label.  Launch first deployment and service.  Launch second deployment and observe above.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
While looking at the kubelet logs to see why the pods might be dying I see things like below related to the pods going up and down.</p>
<p dir="auto">Error running pod "server-canary-408865492-yf1g4_qa(d2c8e37c-9428-11e6-8c1b-90e2bac3873c)" container "configurator": runContainer: API error (404): {"message":"oci runtime error: container_linux.go:1215: running lstat on namespace path "/proc/28386/ns/ipc" caused "lstat /proc/28386/ns/ipc: no such file or directory""}</p>
<p dir="auto">Error running pod "408865492-ifa0s_qa(d1727ff2-9428-11e6-8c1b-90e2bac3873c)" container "server": GenerateRunContainerOptions: impossible: cannot find the mounted volumes for pod "server-canary-408865492-ifa0s_qa(d1727ff2-9428-11e6-8c1b-90e2bac3873c)"</p>
<p dir="auto">kubelet[17062]: , failed to "StartContainer" for "blah" with RunContainerError: "runContainer: API error (409): {"message":"cannot join network of a non running container: 947f639bbcccc5643a4812833bf5a9797bc36f6539c1677629c3ac9aa634f013"}\n"</p>
<p dir="auto">pod_workers.go:138] Error syncing pod 3d082c94-942c-11e6-8c1b-90e2bac3873c, skipping: [failed to "StartContainer" for "server" with RunContainerError: "runContainer: API error (500): {"message":"oci runtime error: process_linux.go:245: running exec setns process for init caused \"exit status 1\""}\n"</p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce/458/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce/458/</a></p>
<p dir="auto">Failed: [k8s.io] Downward API volume should update labels on modification [Conformance] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/downwardapi_volume.go:113
Timed out after 65.000s.
Expected
    &lt;string&gt;: content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;
    content of file &quot;/etc/labels&quot;: key1=&quot;value1&quot;
    key2=&quot;value2&quot;

to contain substring
    &lt;string&gt;: key3=&quot;value3&quot;

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/downwardapi_volume.go:112"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/downwardapi_volume.go:113
Timed out after 65.000s.
Expected
    &lt;string&gt;: content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"
    content of file "/etc/labels": key1="value1"
    key2="value2"

to contain substring
    &lt;string&gt;: key3="value3"

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/downwardapi_volume.go:112
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163506515" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28416" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28416/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28416">#28416</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172263977" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31055" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/31055/hovercard" href="https://github.com/kubernetes/kubernetes/issues/31055">#31055</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179667260" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33627" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33627/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33627">#33627</a></p>