{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/integrations-core/issues/837","repository_url":"https://api.github.com/repos/DataDog/integrations-core","labels_url":"https://api.github.com/repos/DataDog/integrations-core/issues/837/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/integrations-core/issues/837/comments","events_url":"https://api.github.com/repos/DataDog/integrations-core/issues/837/events","html_url":"https://github.com/DataDog/integrations-core/issues/837","id":269985054,"number":837,"title":"[kubernetes] K8s 1.8 changed ReplicaSet naming","user":{"login":"andor44","id":496456,"avatar_url":"https://avatars1.githubusercontent.com/u/496456?v=4","gravatar_id":"","url":"https://api.github.com/users/andor44","html_url":"https://github.com/andor44","followers_url":"https://api.github.com/users/andor44/followers","following_url":"https://api.github.com/users/andor44/following{/other_user}","gists_url":"https://api.github.com/users/andor44/gists{/gist_id}","starred_url":"https://api.github.com/users/andor44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andor44/subscriptions","organizations_url":"https://api.github.com/users/andor44/orgs","repos_url":"https://api.github.com/users/andor44/repos","events_url":"https://api.github.com/users/andor44/events{/privacy}","received_events_url":"https://api.github.com/users/andor44/received_events","type":"User","site_admin":false},"labels":[{"id":563229400,"url":"https://api.github.com/repos/DataDog/integrations-core/labels/community","name":"community","color":"0e8a16","default":false},{"id":581291045,"url":"https://api.github.com/repos/DataDog/integrations-core/labels/Work%20in%20Progress","name":"Work in Progress","color":"000000","default":false}],"state":"open","locked":false,"assignee":{"login":"xvello","id":6241083,"avatar_url":"https://avatars2.githubusercontent.com/u/6241083?v=4","gravatar_id":"","url":"https://api.github.com/users/xvello","html_url":"https://github.com/xvello","followers_url":"https://api.github.com/users/xvello/followers","following_url":"https://api.github.com/users/xvello/following{/other_user}","gists_url":"https://api.github.com/users/xvello/gists{/gist_id}","starred_url":"https://api.github.com/users/xvello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xvello/subscriptions","organizations_url":"https://api.github.com/users/xvello/orgs","repos_url":"https://api.github.com/users/xvello/repos","events_url":"https://api.github.com/users/xvello/events{/privacy}","received_events_url":"https://api.github.com/users/xvello/received_events","type":"User","site_admin":false},"assignees":[{"login":"xvello","id":6241083,"avatar_url":"https://avatars2.githubusercontent.com/u/6241083?v=4","gravatar_id":"","url":"https://api.github.com/users/xvello","html_url":"https://github.com/xvello","followers_url":"https://api.github.com/users/xvello/followers","following_url":"https://api.github.com/users/xvello/following{/other_user}","gists_url":"https://api.github.com/users/xvello/gists{/gist_id}","starred_url":"https://api.github.com/users/xvello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xvello/subscriptions","organizations_url":"https://api.github.com/users/xvello/orgs","repos_url":"https://api.github.com/users/xvello/repos","events_url":"https://api.github.com/users/xvello/events{/privacy}","received_events_url":"https://api.github.com/users/xvello/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/DataDog/integrations-core/milestones/25","html_url":"https://github.com/DataDog/integrations-core/milestone/25","labels_url":"https://api.github.com/repos/DataDog/integrations-core/milestones/25/labels","id":2911552,"number":25,"title":"5.21","description":"","creator":{"login":"masci","id":7241,"avatar_url":"https://avatars3.githubusercontent.com/u/7241?v=4","gravatar_id":"","url":"https://api.github.com/users/masci","html_url":"https://github.com/masci","followers_url":"https://api.github.com/users/masci/followers","following_url":"https://api.github.com/users/masci/following{/other_user}","gists_url":"https://api.github.com/users/masci/gists{/gist_id}","starred_url":"https://api.github.com/users/masci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masci/subscriptions","organizations_url":"https://api.github.com/users/masci/orgs","repos_url":"https://api.github.com/users/masci/repos","events_url":"https://api.github.com/users/masci/events{/privacy}","received_events_url":"https://api.github.com/users/masci/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":11,"state":"open","created_at":"2017-11-14T12:55:55Z","updated_at":"2017-12-04T16:37:25Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2017-10-31T14:43:09Z","updated_at":"2017-12-05T14:04:50Z","closed_at":null,"author_association":"NONE","body":"K8s 1.8 changed the naming scheme for some objects, including ReplicaSets, in [this](https://github.com/kubernetes/kubernetes/pull/51538) commit, notably [the pod template hash is now encoded as a hexadecimal](https://github.com/kubernetes/kubernetes/pull/51538/files#diff-8059f32db3104eff877d689c93f31e25R55), rather than decimal. This breaks the assumption in [kubeutil](https://github.com/DataDog/dd-agent/blob/9ba3551885139490c834033716987b948fa0a19d/utils/kubernetes/kubeutil.py#L370-L382) about the name being all (base 10) digits. This is called for example by [`get_pod_creator_tags`](https://github.com/DataDog/dd-agent/blob/master/utils/kubernetes/kubeutil.py#L626), which in turn is used by the [docker integration](https://github.com/DataDog/integrations-core/blob/55a45278b20ae7f2395ce3a44cd205fa4e12da40/docker_daemon/check.py#L292). Due to this, docker metrics can't resolve ReplicaSets to their creating Deployment."},"comment":{"url":"https://api.github.com/repos/DataDog/integrations-core/issues/comments/349313411","html_url":"https://github.com/DataDog/integrations-core/issues/837#issuecomment-349313411","issue_url":"https://api.github.com/repos/DataDog/integrations-core/issues/837","id":349313411,"user":{"login":"ChipmunkV","id":5393579,"avatar_url":"https://avatars0.githubusercontent.com/u/5393579?v=4","gravatar_id":"","url":"https://api.github.com/users/ChipmunkV","html_url":"https://github.com/ChipmunkV","followers_url":"https://api.github.com/users/ChipmunkV/followers","following_url":"https://api.github.com/users/ChipmunkV/following{/other_user}","gists_url":"https://api.github.com/users/ChipmunkV/gists{/gist_id}","starred_url":"https://api.github.com/users/ChipmunkV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChipmunkV/subscriptions","organizations_url":"https://api.github.com/users/ChipmunkV/orgs","repos_url":"https://api.github.com/users/ChipmunkV/repos","events_url":"https://api.github.com/users/ChipmunkV/events{/privacy}","received_events_url":"https://api.github.com/users/ChipmunkV/received_events","type":"User","site_admin":false},"created_at":"2017-12-05T14:04:50Z","updated_at":"2017-12-05T14:04:50Z","author_association":"NONE","body":"Given two pod names, how to determine that they were created from a deployment with the same name?\r\n\r\nWhen having two lists that look something like that:\r\n\r\n    kube-scheduler-myhost\r\n    nginx-1441357144-xv75c\r\n    etcd-myhost\r\n    kube-apiserver-myhost\r\n    nginx-3263833659-t6z1s\r\n    elasticsearch-1530997684-b5g30\r\n    kube-dns-5007350209-t5h3a\r\n\r\nHow to determine which deployments are only in the first list but not in the second?"}}
{"actor":{"display_login":"ChipmunkV"}}