{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/federation/issues/215","repository_url":"https://api.github.com/repos/kubernetes/federation","labels_url":"https://api.github.com/repos/kubernetes/federation/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/federation/issues/215/comments","events_url":"https://api.github.com/repos/kubernetes/federation/issues/215/events","html_url":"https://github.com/kubernetes/federation/issues/215","id":293908725,"number":215,"title":"Federated deployments cannot be deleted","user":{"login":"irfanurrehman","id":10027921,"avatar_url":"https://avatars0.githubusercontent.com/u/10027921?v=4","gravatar_id":"","url":"https://api.github.com/users/irfanurrehman","html_url":"https://github.com/irfanurrehman","followers_url":"https://api.github.com/users/irfanurrehman/followers","following_url":"https://api.github.com/users/irfanurrehman/following{/other_user}","gists_url":"https://api.github.com/users/irfanurrehman/gists{/gist_id}","starred_url":"https://api.github.com/users/irfanurrehman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfanurrehman/subscriptions","organizations_url":"https://api.github.com/users/irfanurrehman/orgs","repos_url":"https://api.github.com/users/irfanurrehman/repos","events_url":"https://api.github.com/users/irfanurrehman/events{/privacy}","received_events_url":"https://api.github.com/users/irfanurrehman/received_events","type":"User","site_admin":false},"labels":[{"id":735352407,"url":"https://api.github.com/repos/kubernetes/federation/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":732647560,"url":"https://api.github.com/repos/kubernetes/federation/labels/priority/important-soon","name":"priority/important-soon","color":"eb6420","default":false},{"id":764337202,"url":"https://api.github.com/repos/kubernetes/federation/labels/sig/cli","name":"sig/cli","color":"d2b48c","default":false},{"id":732626525,"url":"https://api.github.com/repos/kubernetes/federation/labels/sig/multicluster","name":"sig/multicluster","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-02-02T14:38:11Z","updated_at":"2018-02-02T14:38:32Z","closed_at":null,"author_association":"MEMBER","body":"<a href=\"https://github.com/jsgoller1\"><img src=\"https://avatars3.githubusercontent.com/u/1567977?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [jsgoller1](https://github.com/jsgoller1)**\n_Sunday Oct 08, 2017 at 13:20 GMT_\n_Originally opened as https://github.com/kubernetes/kubernetes/issues/53566_\n\n----\n\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n/kind bug\r\n/sig cli\r\n/sig federation\r\n@kubernetes/sig-federation\r\n\r\n**What happened**:\r\nI have a federated cluster composed of one host cluster and one joined cluster running in AWS. They were created following the steps in the documentation, and I am able to see via the kubernetes dashboard that all components are running correctly. \r\n\r\nTo test the federated setup, I used a simple nginx deployment also from the docs, stored in `deployment.proxy.yml`:\r\n```\r\napiVersion: extensions/v1beta1\r\nkind: Deployment\r\nmetadata:\r\n  name: proxy\r\nspec:\r\n  replicas: 5 # tells deployment to run 2 pods matching the template\r\n  template: # create pods using pod definition in this template\r\n    metadata:\r\n      labels:\r\n        app: nginx\r\n    spec:\r\n      containers:\r\n      - name: nginx\r\n        image: nginx:latest\r\n        ports:\r\n        - containerPort: 80\r\n```\r\nI then execute `kubectl create --context=federation -f deployment.proxy.yml`. Assuming I don't change `apiVersion`, the deployment runs fine and almost immediately reaches the desired count (if I use `apiVersion: apps/v1beta2` or any other API version than `extensions/` with my federated setup, I get errors and it won't start). I then go to tear down the deployment by executing `kubectl delete deployment --context=federation proxy`.\r\n\r\nHowever, kubectl reports `error: timed out waiting for the condition`. The deployment instances spin down to zero, but the deployment won't disappear: \r\n```\r\nNAME      DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE\r\nproxy     0         0         0            0           1h\r\n```\r\nI can delete them via the dashboard, or by switching to joined cluster's context and using `kubctl delete deployment proxy`, but even after kubectll reports they are deleted successfully, they reappear and still cannot be deleted from the federation context.\r\n\r\n**What you expected to happen**:\r\nThe deployment to be deleted. This works fine if I'm not using my federated context.\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\nCreate a federated setup via the docs, launch the above job, and then try to delete it.\r\n\r\n**Environment**:\r\n- Kubernetes version:\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"8\", GitVersion:\"v1.8.0\", GitCommit:\"6e937839ac04a38cac63e6a7a306c5d035fe7b0a\", GitTreeState:\"clean\", BuildDate:\"2017-09-28T22:57:57Z\", GoVersion:\"go1.8.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\",\r\n```\r\n- Cloud provider or hardware configuration: AWS\r\n- OS (e.g. from /etc/os-release): Ubuntu 16.04\r\n\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/federation/issues/comments/362603637","html_url":"https://github.com/kubernetes/federation/issues/215#issuecomment-362603637","issue_url":"https://api.github.com/repos/kubernetes/federation/issues/215","id":362603637,"user":{"login":"irfanurrehman","id":10027921,"avatar_url":"https://avatars0.githubusercontent.com/u/10027921?v=4","gravatar_id":"","url":"https://api.github.com/users/irfanurrehman","html_url":"https://github.com/irfanurrehman","followers_url":"https://api.github.com/users/irfanurrehman/followers","following_url":"https://api.github.com/users/irfanurrehman/following{/other_user}","gists_url":"https://api.github.com/users/irfanurrehman/gists{/gist_id}","starred_url":"https://api.github.com/users/irfanurrehman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfanurrehman/subscriptions","organizations_url":"https://api.github.com/users/irfanurrehman/orgs","repos_url":"https://api.github.com/users/irfanurrehman/repos","events_url":"https://api.github.com/users/irfanurrehman/events{/privacy}","received_events_url":"https://api.github.com/users/irfanurrehman/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T14:38:32Z","updated_at":"2018-02-02T14:38:32Z","author_association":"MEMBER","body":"<a href=\"https://github.com/nikhiljindal\"><img src=\"https://avatars0.githubusercontent.com/u/10199099?v=4\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [nikhiljindal](https://github.com/nikhiljindal)**\n_Friday Dec 01, 2017 at 08:13 GMT_\n\n----\n\nRemoving sig/cli label since as Jianhuiz [pointed out](https://github.com/kubernetes/kubernetes/issues/53566#issuecomment-340565304), this is due to a bug in federation deployment controller and does not require any code change to kubectl.\r\n\r\ncc @irfanurrehman This should be moved to the new kubernetes/federation repo?\n"}}
{"actor":{"display_login":"irfanurrehman"}}