{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9600","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9600/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9600/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9600/events","html_url":"https://github.com/ManageIQ/manageiq/issues/9600","id":163824662,"number":9600,"title":"container_node_id not set on node EmsEvent","user":{"login":"cben","id":273688,"avatar_url":"https://avatars.githubusercontent.com/u/273688?v=3","gravatar_id":"","url":"https://api.github.com/users/cben","html_url":"https://github.com/cben","followers_url":"https://api.github.com/users/cben/followers","following_url":"https://api.github.com/users/cben/following{/other_user}","gists_url":"https://api.github.com/users/cben/gists{/gist_id}","starred_url":"https://api.github.com/users/cben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cben/subscriptions","organizations_url":"https://api.github.com/users/cben/orgs","repos_url":"https://api.github.com/users/cben/repos","events_url":"https://api.github.com/users/cben/events{/privacy}","received_events_url":"https://api.github.com/users/cben/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/providers/containers","name":"providers/containers","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"simon3z","id":130393,"avatar_url":"https://avatars.githubusercontent.com/u/130393?v=3","gravatar_id":"","url":"https://api.github.com/users/simon3z","html_url":"https://github.com/simon3z","followers_url":"https://api.github.com/users/simon3z/followers","following_url":"https://api.github.com/users/simon3z/following{/other_user}","gists_url":"https://api.github.com/users/simon3z/gists{/gist_id}","starred_url":"https://api.github.com/users/simon3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon3z/subscriptions","organizations_url":"https://api.github.com/users/simon3z/orgs","repos_url":"https://api.github.com/users/simon3z/repos","events_url":"https://api.github.com/users/simon3z/events{/privacy}","received_events_url":"https://api.github.com/users/simon3z/received_events","type":"User","site_admin":false},"assignees":[{"login":"simon3z","id":130393,"avatar_url":"https://avatars.githubusercontent.com/u/130393?v=3","gravatar_id":"","url":"https://api.github.com/users/simon3z","html_url":"https://github.com/simon3z","followers_url":"https://api.github.com/users/simon3z/followers","following_url":"https://api.github.com/users/simon3z/following{/other_user}","gists_url":"https://api.github.com/users/simon3z/gists{/gist_id}","starred_url":"https://api.github.com/users/simon3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon3z/subscriptions","organizations_url":"https://api.github.com/users/simon3z/orgs","repos_url":"https://api.github.com/users/simon3z/repos","events_url":"https://api.github.com/users/simon3z/events{/privacy}","received_events_url":"https://api.github.com/users/simon3z/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2016-07-05T11:00:29Z","updated_at":"2016-07-20T11:14:09Z","closed_at":null,"body":"`process_container_entities_in_event!` (added in #6012) assigns node/pod/replicator ids based on `event_hash[:ems_ref]`.  AFAICT this works for pods and replicators but fails for nodes.\r\n\r\nI'm not sure what practical user-visible consequences this has.\r\n@zeari told me it probably affects the node's Timeline, but I'm seeing there NODE_REBOOTED and other events for this—and only this—node (\"Power activity\" + \"Alarms/Status ...\" groups), while I see in the console that `EmsEvent.pluck(:container_node_id).uniq == [nil]`, i.e. it's never set.\r\n\r\nEventParserMixin [sets ems_ref from `event[:uid]`][1], which EventCatcherMixin [sets from `event.object.involvedObject.uid`][2].  Alas, nodes don't have a .uid there, only name:\r\n```\r\n(byebug) event.object.involvedObject\r\n#<Kubeclient::Common::WatchNotice kind=\"Node\", name=\"vm-test-03.example.com\">\r\n(byebug) event\r\n#<Kubeclient::Common::WatchNotice type=\"ADDED\", object={:kind=>\"Event\", :apiVersion=>\"v1\", :metadata=>{:name=>\"vm-test-03.example.com.145e5e89db53522a\", :namespace=>\"default\", :selfLink=>\"/api/v1/namespaces/default/events/vm-test-03.example.com.145e5e89db53522a\", :uid=>\"233eba92-429b-11e6-af37-525400c7c086\", :resourceVersion=>\"1062651\", :creationTimestamp=>\"2016-07-05T10:27:56Z\", :deletionTimestamp=>\"2016-07-05T12:27:56Z\"}, :involvedObject=>{:kind=>\"Node\", :name=>\"vm-test-03.example.com\"}, :reason=>\"Starting\", :message=>\"Starting kube-proxy.\", :source=>{:component=>\"kube-proxy\", :host=>\"vm-test-03.example.com\"}, :firstTimestamp=>\"2016-07-05T10:27:54Z\", :lastTimestamp=>\"2016-07-05T10:27:54Z\", :count=>1, :type=>\"Normal\"}>\r\n```\r\n\r\n[1]: https://github.com/ManageIQ/manageiq/blob/2f7f04982a6d328f13d0ce7bc6bf420e8d757075/app/models/manageiq/providers/kubernetes/container_manager/event_parser_mixin.rb#L17\r\n[2]: https://github.com/ManageIQ/manageiq/blob/2f7f04982a6d328f13d0ce7bc6bf420e8d757075/app/models/manageiq/providers/kubernetes/container_manager/event_catcher_mixin.rb#L58\r\n\r\n@miq-bot label providers/containers, bug\r\ncc @dkorn "},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/233920925","html_url":"https://github.com/ManageIQ/manageiq/issues/9600#issuecomment-233920925","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9600","id":233920925,"user":{"login":"cben","id":273688,"avatar_url":"https://avatars.githubusercontent.com/u/273688?v=3","gravatar_id":"","url":"https://api.github.com/users/cben","html_url":"https://github.com/cben","followers_url":"https://api.github.com/users/cben/followers","following_url":"https://api.github.com/users/cben/following{/other_user}","gists_url":"https://api.github.com/users/cben/gists{/gist_id}","starred_url":"https://api.github.com/users/cben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cben/subscriptions","organizations_url":"https://api.github.com/users/cben/orgs","repos_url":"https://api.github.com/users/cben/repos","events_url":"https://api.github.com/users/cben/events{/privacy}","received_events_url":"https://api.github.com/users/cben/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T11:14:09Z","updated_at":"2016-07-20T11:14:09Z","body":"Think I found it in k8s source:\r\nhttps://github.com/kubernetes/kubernetes/blob/master/pkg/controller/node/controller_utils.go#L245-L259"}}
{"actor":{"display_login":"cben"}}