{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/403","repository_url":"https://api.github.com/repos/kubernetes-incubator/cri-o","labels_url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/403/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/403/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/403/events","html_url":"https://github.com/kubernetes-incubator/cri-o/issues/403","id":216799268,"number":403,"title":"Image status is requested with the wrong image name","user":{"login":"sameo","id":1043863,"avatar_url":"https://avatars1.githubusercontent.com/u/1043863?v=3","gravatar_id":"","url":"https://api.github.com/users/sameo","html_url":"https://github.com/sameo","followers_url":"https://api.github.com/users/sameo/followers","following_url":"https://api.github.com/users/sameo/following{/other_user}","gists_url":"https://api.github.com/users/sameo/gists{/gist_id}","starred_url":"https://api.github.com/users/sameo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameo/subscriptions","organizations_url":"https://api.github.com/users/sameo/orgs","repos_url":"https://api.github.com/users/sameo/repos","events_url":"https://api.github.com/users/sameo/events{/privacy}","received_events_url":"https://api.github.com/users/sameo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-24T14:18:37Z","updated_at":"2017-03-24T15:23:47Z","closed_at":null,"body":"When launching a k8s pod with the docker hub `sameo/nginx-kubecon` image:\r\n\r\n```\r\nkubectl run nginx --image=sameo/nginx-kubecon:1.0 --port=80\r\n```\r\n(Note we're asking for a tagged image, not a `latest` one)\r\n\r\n `ocid` initially pulls and stores the image as expected:\r\n\r\n```\r\n# ocic image status -id 4a97d18023383cecad7694a2daf8383e093ccbdd36a1f1af862db90ed8b9f340\r\nID: 4a97d18023383cecad7694a2daf8383e093ccbdd36a1f1af862db90ed8b9f340\r\nTag: docker.io/sameo/nginx-kubecon:latest\r\nTag: sameo/nginx-kubecon:1.0\r\nTag: docker.io/sameo/nginx-kubecon\r\nSize: 180932784\r\n```\r\n\r\nWhen launching a subsequent pod with the same image, `ocid` pulls the image again. After adding some debug in `vendor/github.com/containers/storage/storage/images.go` for dumping the images map (byname and byid), I see that the problem is `ocid` is asking for a status for an image with the name being set to `docker.io/sameo/nginx-kubecon:1.0` while we stored this image with the following tags:\r\n\r\n```\r\nTag: docker.io/sameo/nginx-kubecon:latest\r\nTag: sameo/nginx-kubecon:1.0\r\nTag: docker.io/sameo/nginx-kubecon\r\n```\r\n\r\nAs a consequence, the image is pulled again."},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/comments/289053928","html_url":"https://github.com/kubernetes-incubator/cri-o/issues/403#issuecomment-289053928","issue_url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/403","id":289053928,"user":{"login":"runcom","id":849915,"avatar_url":"https://avatars1.githubusercontent.com/u/849915?v=3","gravatar_id":"","url":"https://api.github.com/users/runcom","html_url":"https://github.com/runcom","followers_url":"https://api.github.com/users/runcom/followers","following_url":"https://api.github.com/users/runcom/following{/other_user}","gists_url":"https://api.github.com/users/runcom/gists{/gist_id}","starred_url":"https://api.github.com/users/runcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runcom/subscriptions","organizations_url":"https://api.github.com/users/runcom/orgs","repos_url":"https://api.github.com/users/runcom/repos","events_url":"https://api.github.com/users/runcom/events{/privacy}","received_events_url":"https://api.github.com/users/runcom/received_events","type":"User","site_admin":false},"created_at":"2017-03-24T15:23:47Z","updated_at":"2017-03-24T15:23:47Z","body":"Yup I remember this issue! @nalind any idea what's happening here? "}}
{"actor":{"display_login":"runcom"}}