{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/66735","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/66735/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/66735/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/66735/events","html_url":"https://github.com/kubernetes/kubernetes/issues/66735","id":345427186,"node_id":"MDU6SXNzdWUzNDU0MjcxODY=","number":66735,"title":"Namespace keeps Terminating after deleted","user":{"login":"kaybinwong","id":5570216,"node_id":"MDQ6VXNlcjU1NzAyMTY=","avatar_url":"https://avatars0.githubusercontent.com/u/5570216?v=4","gravatar_id":"","url":"https://api.github.com/users/kaybinwong","html_url":"https://github.com/kaybinwong","followers_url":"https://api.github.com/users/kaybinwong/followers","following_url":"https://api.github.com/users/kaybinwong/following{/other_user}","gists_url":"https://api.github.com/users/kaybinwong/gists{/gist_id}","starred_url":"https://api.github.com/users/kaybinwong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaybinwong/subscriptions","organizations_url":"https://api.github.com/users/kaybinwong/orgs","repos_url":"https://api.github.com/users/kaybinwong/repos","events_url":"https://api.github.com/users/kaybinwong/events{/privacy}","received_events_url":"https://api.github.com/users/kaybinwong/received_events","type":"User","site_admin":false},"labels":[{"id":173493835,"node_id":"MDU6TGFiZWwxNzM0OTM4MzU=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/api-machinery","name":"sig/api-machinery","color":"d2b48c","default":false},{"id":130318610,"node_id":"MDU6TGFiZWwxMzAzMTg2MTA=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/triage/support","name":"triage/support","color":"d455d0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-07-28T07:31:37Z","updated_at":"2018-10-27T10:02:28Z","closed_at":null,"author_association":"NONE","body":"**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n/kind bug\r\n\r\n**What happened**:\r\nusing kubectl delete ns xxxx, but its status keeps Terminating\r\n\r\n**What you expected to happen**:\r\ndestroy and can recreate\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\nkubectl create ns xxx\r\n\r\n// do some other job\r\n\r\nkubect delete ns xxx --now=true\r\n\r\n**Anything else we need to know?**:\r\nnothing else\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\n```\r\n[root@passport-dev rancher]# kubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"9\", GitVersion:\"v1.9.2+coreos.0\", GitCommit:\"b427929b2982726eeb64e985bc1ebb41aaa5e095\", GitTreeState:\"clean\", BuildDate:\"2018-01-18T22:56:14Z\", GoVersion:\"go1.9.2\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"9\", GitVersion:\"v1.9.2+coreos.0\", GitCommit:\"b427929b2982726eeb64e985bc1ebb41aaa5e095\", GitTreeState:\"clean\", BuildDate:\"2018-01-18T22:56:14Z\", GoVersion:\"go1.9.2\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n- Cloud provider or hardware configuration:\r\nhardware\r\n- OS (e.g. from /etc/os-release):\r\n```\r\n[root@passport-dev rancher]# cat /etc/os-release\r\nNAME=\"CentOS Linux\"\r\nVERSION=\"7 (Core)\"\r\nID=\"centos\"\r\nID_LIKE=\"rhel fedora\"\r\nVERSION_ID=\"7\"\r\nPRETTY_NAME=\"CentOS Linux 7 (Core)\"\r\nANSI_COLOR=\"0;31\"\r\nCPE_NAME=\"cpe:/o:centos:centos:7\"\r\nHOME_URL=\"https://www.centos.org/\"\r\nBUG_REPORT_URL=\"https://bugs.centos.org/\"\r\n\r\nCENTOS_MANTISBT_PROJECT=\"CentOS-7\"\r\nCENTOS_MANTISBT_PROJECT_VERSION=\"7\"\r\nREDHAT_SUPPORT_PRODUCT=\"centos\"\r\nREDHAT_SUPPORT_PRODUCT_VERSION=\"7\"\r\n```\r\n- Kernel (e.g. `uname -a`):\r\n```\r\n[root@passport-dev rancher]# uname -a\r\nLinux passport-dev 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n- Install tools:\r\nkubespray\r\n- Others:\r\nnothing"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/433607497","html_url":"https://github.com/kubernetes/kubernetes/issues/66735#issuecomment-433607497","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/66735","id":433607497,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzYwNzQ5Nw==","user":{"login":"qdrop17","id":42340241,"node_id":"MDQ6VXNlcjQyMzQwMjQx","avatar_url":"https://avatars2.githubusercontent.com/u/42340241?v=4","gravatar_id":"","url":"https://api.github.com/users/qdrop17","html_url":"https://github.com/qdrop17","followers_url":"https://api.github.com/users/qdrop17/followers","following_url":"https://api.github.com/users/qdrop17/following{/other_user}","gists_url":"https://api.github.com/users/qdrop17/gists{/gist_id}","starred_url":"https://api.github.com/users/qdrop17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qdrop17/subscriptions","organizations_url":"https://api.github.com/users/qdrop17/orgs","repos_url":"https://api.github.com/users/qdrop17/repos","events_url":"https://api.github.com/users/qdrop17/events{/privacy}","received_events_url":"https://api.github.com/users/qdrop17/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T10:02:28Z","updated_at":"2018-10-27T10:02:28Z","author_association":"NONE","body":"> To be clear, removing the finalizer does not actually resolve the issue that was blocking the namespace deletion, it just skips any remaining resource cleanup that needed to be done. That is not recommended, since it can leave orphaned resources associated with the now-removed namespace.\r\n> \r\n> This command will show any resources associated with the namespace:\r\n> \r\n> ```shell\r\n> kubectl api-resources --verbs=list --namespaced -o name | \\\r\n>   xargs -n 1 kubectl get -o name -n $NAMESPACE\r\n> ```\r\n> \r\n> Does that reveal any remaining resources? If so, investigating why those are not being removed would be the next step.\r\n\r\nUnfortunately I already delete the namespaces using the method I mentioned. In the meantime, I discovered some bug with the metrics-server's key and certificate deployment (see here: https://github.com/rancher/rke/issues/866#issuecomment-420019920) which I fixed. This removed the issue: We can now create and remove namespaces without any problems.\r\n\r\nYet I'm interested if there are any dangling / orphaned resources in our Kubernetes cluster. How can I find and remove those?"}}
{"actor":{"display_login":"qdrop17"}}