<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./cluster/kubectl.sh create -f examples/extensions/deployment.yaml --v 8
I0104 15:17:42.816603    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.818053    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.947358    1813 round_trippers.go:258] GET https://10.245.1.2/api
I0104 15:17:42.947384    1813 round_trippers.go:265] Request Headers:
I0104 15:17:42.947391    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:42.982052    1813 round_trippers.go:283] Response Status: 200 OK in 34 milliseconds
I0104 15:17:42.982080    1813 round_trippers.go:286] Response Headers:
I0104 15:17:42.982087    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:42.982095    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:42.982102    1813 round_trippers.go:289]     Content-Length: 57
I0104 15:17:42.982137    1813 request.go:841] Response Body: {
  &quot;kind&quot;: &quot;APIVersions&quot;,
  &quot;versions&quot;: [
    &quot;v1&quot;
  ]
}
I0104 15:17:42.982336    1813 round_trippers.go:258] GET https://10.245.1.2/apis
I0104 15:17:42.982350    1813 round_trippers.go:265] Request Headers:
I0104 15:17:42.982356    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:42.983192    1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds
I0104 15:17:42.983211    1813 round_trippers.go:286] Response Headers:
I0104 15:17:42.983218    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:42.983224    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:42.983231    1813 round_trippers.go:289]     Content-Length: 326
I0104 15:17:42.983250    1813 request.go:841] Response Body: {
  &quot;kind&quot;: &quot;APIGroupList&quot;,
  &quot;groups&quot;: [
    {
      &quot;name&quot;: &quot;extensions&quot;,
      &quot;versions&quot;: [
        {
          &quot;groupVersion&quot;: &quot;extensions/v1beta1&quot;,
          &quot;version&quot;: &quot;v1beta1&quot;
        }
      ],
      &quot;preferredVersion&quot;: {
        &quot;groupVersion&quot;: &quot;extensions/v1beta1&quot;,
        &quot;version&quot;: &quot;v1beta1&quot;
      }
    }
  ]
}
I0104 15:17:42.984501    1813 round_trippers.go:258] GET https://10.245.1.2/version
I0104 15:17:42.984525    1813 round_trippers.go:265] Request Headers:
I0104 15:17:42.984532    1813 round_trippers.go:268]     User-Agent: kubectl/v1.2.0 (linux/amd64) kubernetes/7d3d155
I0104 15:17:42.984538    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:42.985516    1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds
I0104 15:17:42.985530    1813 round_trippers.go:286] Response Headers:
I0104 15:17:42.985534    1813 round_trippers.go:289]     Content-Length: 180
I0104 15:17:42.985538    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:42.985541    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:42.985561    1813 request.go:841] Response Body: {
  &quot;major&quot;: &quot;1&quot;,
  &quot;minor&quot;: &quot;2+&quot;,
  &quot;gitVersion&quot;: &quot;v1.2.0-alpha.5.596+7d3d155a4cc916-dirty&quot;,
  &quot;gitCommit&quot;: &quot;7d3d155a4cc9163c1baf5a8b2b645b3c3dd3bda0&quot;,
  &quot;gitTreeState&quot;: &quot;dirty&quot;
}
I0104 15:17:42.987242    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.988370    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.989589    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.991455    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.992454    1813 decoder.go:144] decoding stream as YAML
I0104 15:17:43.010982    1813 round_trippers.go:258] GET https://10.245.1.2/api
I0104 15:17:43.011017    1813 round_trippers.go:265] Request Headers:
I0104 15:17:43.011028    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:43.012070    1813 round_trippers.go:283] Response Status: 200 OK in 1 milliseconds
I0104 15:17:43.012093    1813 round_trippers.go:286] Response Headers:
I0104 15:17:43.012101    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:43.012108    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:43.012115    1813 round_trippers.go:289]     Content-Length: 57
I0104 15:17:43.012141    1813 request.go:841] Response Body: {
  &quot;kind&quot;: &quot;APIVersions&quot;,
  &quot;versions&quot;: [
    &quot;v1&quot;
  ]
}
I0104 15:17:43.012270    1813 round_trippers.go:258] GET https://10.245.1.2/apis
I0104 15:17:43.012282    1813 round_trippers.go:265] Request Headers:
I0104 15:17:43.012289    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:43.013280    1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds
I0104 15:17:43.013294    1813 round_trippers.go:286] Response Headers:
I0104 15:17:43.013301    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:43.013307    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:43.013313    1813 round_trippers.go:289]     Content-Length: 326
I0104 15:17:43.013332    1813 request.go:841] Response Body: {
  &quot;kind&quot;: &quot;APIGroupList&quot;,
  &quot;groups&quot;: [
    {
      &quot;name&quot;: &quot;extensions&quot;,
      &quot;versions&quot;: [
        {
          &quot;groupVersion&quot;: &quot;extensions/v1beta1&quot;,
          &quot;version&quot;: &quot;v1beta1&quot;
        }
      ],
      &quot;preferredVersion&quot;: {
        &quot;groupVersion&quot;: &quot;extensions/v1beta1&quot;,
        &quot;version&quot;: &quot;v1beta1&quot;
      }
    }
  ]
}"><pre class="notranslate"><code class="notranslate">$ ./cluster/kubectl.sh create -f examples/extensions/deployment.yaml --v 8
I0104 15:17:42.816603    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.818053    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.947358    1813 round_trippers.go:258] GET https://10.245.1.2/api
I0104 15:17:42.947384    1813 round_trippers.go:265] Request Headers:
I0104 15:17:42.947391    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:42.982052    1813 round_trippers.go:283] Response Status: 200 OK in 34 milliseconds
I0104 15:17:42.982080    1813 round_trippers.go:286] Response Headers:
I0104 15:17:42.982087    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:42.982095    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:42.982102    1813 round_trippers.go:289]     Content-Length: 57
I0104 15:17:42.982137    1813 request.go:841] Response Body: {
  "kind": "APIVersions",
  "versions": [
    "v1"
  ]
}
I0104 15:17:42.982336    1813 round_trippers.go:258] GET https://10.245.1.2/apis
I0104 15:17:42.982350    1813 round_trippers.go:265] Request Headers:
I0104 15:17:42.982356    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:42.983192    1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds
I0104 15:17:42.983211    1813 round_trippers.go:286] Response Headers:
I0104 15:17:42.983218    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:42.983224    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:42.983231    1813 round_trippers.go:289]     Content-Length: 326
I0104 15:17:42.983250    1813 request.go:841] Response Body: {
  "kind": "APIGroupList",
  "groups": [
    {
      "name": "extensions",
      "versions": [
        {
          "groupVersion": "extensions/v1beta1",
          "version": "v1beta1"
        }
      ],
      "preferredVersion": {
        "groupVersion": "extensions/v1beta1",
        "version": "v1beta1"
      }
    }
  ]
}
I0104 15:17:42.984501    1813 round_trippers.go:258] GET https://10.245.1.2/version
I0104 15:17:42.984525    1813 round_trippers.go:265] Request Headers:
I0104 15:17:42.984532    1813 round_trippers.go:268]     User-Agent: kubectl/v1.2.0 (linux/amd64) kubernetes/7d3d155
I0104 15:17:42.984538    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:42.985516    1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds
I0104 15:17:42.985530    1813 round_trippers.go:286] Response Headers:
I0104 15:17:42.985534    1813 round_trippers.go:289]     Content-Length: 180
I0104 15:17:42.985538    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:42.985541    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:42.985561    1813 request.go:841] Response Body: {
  "major": "1",
  "minor": "2+",
  "gitVersion": "v1.2.0-alpha.5.596+7d3d155a4cc916-dirty",
  "gitCommit": "7d3d155a4cc9163c1baf5a8b2b645b3c3dd3bda0",
  "gitTreeState": "dirty"
}
I0104 15:17:42.987242    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.988370    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.989589    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.991455    1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config
I0104 15:17:42.992454    1813 decoder.go:144] decoding stream as YAML
I0104 15:17:43.010982    1813 round_trippers.go:258] GET https://10.245.1.2/api
I0104 15:17:43.011017    1813 round_trippers.go:265] Request Headers:
I0104 15:17:43.011028    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:43.012070    1813 round_trippers.go:283] Response Status: 200 OK in 1 milliseconds
I0104 15:17:43.012093    1813 round_trippers.go:286] Response Headers:
I0104 15:17:43.012101    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:43.012108    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:43.012115    1813 round_trippers.go:289]     Content-Length: 57
I0104 15:17:43.012141    1813 request.go:841] Response Body: {
  "kind": "APIVersions",
  "versions": [
    "v1"
  ]
}
I0104 15:17:43.012270    1813 round_trippers.go:258] GET https://10.245.1.2/apis
I0104 15:17:43.012282    1813 round_trippers.go:265] Request Headers:
I0104 15:17:43.012289    1813 round_trippers.go:268]     Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA==
I0104 15:17:43.013280    1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds
I0104 15:17:43.013294    1813 round_trippers.go:286] Response Headers:
I0104 15:17:43.013301    1813 round_trippers.go:289]     Content-Type: application/json
I0104 15:17:43.013307    1813 round_trippers.go:289]     Date: Mon, 04 Jan 2016 14:17:23 GMT
I0104 15:17:43.013313    1813 round_trippers.go:289]     Content-Length: 326
I0104 15:17:43.013332    1813 request.go:841] Response Body: {
  "kind": "APIGroupList",
  "groups": [
    {
      "name": "extensions",
      "versions": [
        {
          "groupVersion": "extensions/v1beta1",
          "version": "v1beta1"
        }
      ],
      "preferredVersion": {
        "groupVersion": "extensions/v1beta1",
        "version": "v1beta1"
      }
    }
  ]
}
</code></pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/deads2k/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/deads2k">@deads2k</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/liggitt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/liggitt">@liggitt</a></p>
<p dir="auto">Found in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="123009514" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/18901" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/18901/hovercard" href="https://github.com/kubernetes/kubernetes/pull/18901">#18901</a> which is based on top of <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kubernetes/kubernetes/commit/b494855ebf7801b6e92f734ca402f0dc44c37b43/hovercard" href="https://github.com/kubernetes/kubernetes/commit/b494855ebf7801b6e92f734ca402f0dc44c37b43"><tt>b494855</tt></a> (almost latest master)</p>
<p dir="auto">Kubernetes API Server is reporting the wrong status for a running pod. I have a single container pod scheduled, and as far as I can see it is running on the minion, but kubernetes is very confused about its state.</p>
<p dir="auto">It shows as 'Pending':</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[stef@falcon cockpit]$ kubectl get pods 
NAME                IMAGE(S)                HOST                    LABELS              STATUS
apache              fedora/apache           &lt;unassigned&gt;            name=apache         Pending
second-test         vbatts/fedora-varnish   minion.thewalter.lan/   name=Second Test    Running"><pre class="notranslate"><code class="notranslate">[stef@falcon cockpit]$ kubectl get pods 
NAME                IMAGE(S)                HOST                    LABELS              STATUS
apache              fedora/apache           &lt;unassigned&gt;            name=apache         Pending
second-test         vbatts/fedora-varnish   minion.thewalter.lan/   name=Second Test    Running
</code></pre></div>
<p dir="auto">But you can see that it's running:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CONTAINER ID        IMAGE                          COMMAND             CREATED             STATUS              PORTS                NAMES
75f4e4a862c0        fedora/apache:latest           &quot;/run-apache.sh&quot;    About an hour ago   Up About an hour                         k8s_master.92a78031_apache.default.etcd_1416906634_c673f516         
4ab706944e0b        vbatts/fedora-varnish:latest   &quot;/srv/run.sh&quot;       About an hour ago   Up About an hour                         k8s_varnish.ecd56c27_second-test.default.etcd_1417637612_ac61c488   
9e4313824d6c        kubernetes/pause:latest        &quot;/pause&quot;            About an hour ago   Up About an hour    0.0.0.0:80-&gt;80/tcp   k8s_net.e9a68336_apache.default.etcd_1416906634_496b6211            
744be56e11a5        kubernetes/pause:latest        &quot;/pause&quot;            About an hour ago   Up About an hour                         k8s_net.fadb6b63_second-test.default.etcd_1417637612_77cfd3a8       "><pre class="notranslate"><code class="notranslate">CONTAINER ID        IMAGE                          COMMAND             CREATED             STATUS              PORTS                NAMES
75f4e4a862c0        fedora/apache:latest           "/run-apache.sh"    About an hour ago   Up About an hour                         k8s_master.92a78031_apache.default.etcd_1416906634_c673f516         
4ab706944e0b        vbatts/fedora-varnish:latest   "/srv/run.sh"       About an hour ago   Up About an hour                         k8s_varnish.ecd56c27_second-test.default.etcd_1417637612_ac61c488   
9e4313824d6c        kubernetes/pause:latest        "/pause"            About an hour ago   Up About an hour    0.0.0.0:80-&gt;80/tcp   k8s_net.e9a68336_apache.default.etcd_1416906634_496b6211            
744be56e11a5        kubernetes/pause:latest        "/pause"            About an hour ago   Up About an hour                         k8s_net.fadb6b63_second-test.default.etcd_1417637612_77cfd3a8       
</code></pre></div>
<p dir="auto">The container is accessible on the machine.</p>