{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5918","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5918/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5918/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5918/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/5918","id":64296153,"number":5918,"title":"If RC's ID contains a period, container continues to run after RC is stopped ","user":{"login":"rculbertson","id":5132957,"avatar_url":"https://avatars.githubusercontent.com/u/5132957?v=3","gravatar_id":"","url":"https://api.github.com/users/rculbertson","html_url":"https://github.com/rculbertson","followers_url":"https://api.github.com/users/rculbertson/followers","following_url":"https://api.github.com/users/rculbertson/following{/other_user}","gists_url":"https://api.github.com/users/rculbertson/gists{/gist_id}","starred_url":"https://api.github.com/users/rculbertson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rculbertson/subscriptions","organizations_url":"https://api.github.com/users/rculbertson/orgs","repos_url":"https://api.github.com/users/rculbertson/repos","events_url":"https://api.github.com/users/rculbertson/events{/privacy}","received_events_url":"https://api.github.com/users/rculbertson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/bug","name":"kind/bug","color":"ff0000"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/master","name":"team/master","color":"d2b48c"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/node","name":"team/node","color":"d2b48c"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/UX","name":"team/UX","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-25T15:16:28Z","updated_at":"2015-03-25T20:00:55Z","closed_at":null,"body":"If a replication controller's ID contains a period, the docker container will continue run after you stop the controller. It will also continue to run if you instead resize the number of replicas to 0.\r\n\r\nSteps to reproduce:\r\n1. Take the guestbook example's [json file](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/guestbook/redis-master-controller.json), and replace the ID's first dash with a period (i.e. `\"id\": \"redis-master-controller\"` becomes `\"id\": \"redis.master-controller\"`). \r\n2. gcloud preview container kubectl create -f redis-master-controller.json\r\n3. gcloud preview container kubectl stop rc redis.master-controller\r\n4. Query for all RC's and pods to see it is gone:\r\n```\r\n$ gcloud preview container kubectl get rc,pod\r\nPOD                 IP                  CONTAINER(S)        IMAGE(S)                           HOST                                                               LABELS              STATUS              CREATED\r\nskydns-fplln        10.40.0.3           etcd                quay.io/coreos/etcd:latest         k8s-ryan-test-2-node-1.c.prefab-wave-844.internal/130.211.82.125   k8s-app=skydns      Running             13 days\r\n                                        kube2sky            kubernetes/kube2sky:1.0\r\n                                        skydns              kubernetes/skydns:2014-12-23-001\r\nCONTROLLER          CONTAINER(S)        IMAGE(S)                           SELECTOR            REPLICAS\r\nskydns              etcd                quay.io/coreos/etcd:latest         k8s-app=skydns      1\r\n                    kube2sky            kubernetes/kube2sky:1.0\r\n                    skydns              kubernetes/skydns:2014-12-23-001\r\n```\r\nRun `sudo docker ps` on the node to see the redis container is still running:\r\n```\r\n$ sudo docker ps\r\nCONTAINER ID        IMAGE                     COMMAND                CREATED              STATUS              PORTS                 \r\n7b8c9c522343        dockerfile/redis:latest   \"redis-server /etc/r   About a minute ago   Up About a minute                         \r\n8115706a8b09        kubernetes/pause:go       \"/pause\"               About a minute ago   Up About a minute                         \r\nd72bbf3d8f71        google/cadvisor:0.8.0     \"/usr/bin/cadvisor\"    2 minutes ago        Up 2 minutes                              \r\na059ba7c25f2        kubernetes/pause:go       \"/pause\"               2 minutes ago        Up 2 minutes        0.0.0.0:4194->8080/tcp  \r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/86196061","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/5918#issuecomment-86196061","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5918","id":86196061,"user":{"login":"rculbertson","id":5132957,"avatar_url":"https://avatars.githubusercontent.com/u/5132957?v=3","gravatar_id":"","url":"https://api.github.com/users/rculbertson","html_url":"https://github.com/rculbertson","followers_url":"https://api.github.com/users/rculbertson/followers","following_url":"https://api.github.com/users/rculbertson/following{/other_user}","gists_url":"https://api.github.com/users/rculbertson/gists{/gist_id}","starred_url":"https://api.github.com/users/rculbertson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rculbertson/subscriptions","organizations_url":"https://api.github.com/users/rculbertson/orgs","repos_url":"https://api.github.com/users/rculbertson/repos","events_url":"https://api.github.com/users/rculbertson/events{/privacy}","received_events_url":"https://api.github.com/users/rculbertson/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T20:00:55Z","updated_at":"2015-03-25T20:00:55Z","body":"Ah, great. Sorry for the dupe then. I didn't realize that bug was the same issue. I am using GKE. Can work around the issue until the fix is rolled out. Thanks!"}}