storage: fix image retrieval by id

kubelet sends a request to create a container with an image ID (as
opposed as an image name). That ID comes from the ImageStatus response.
This patch fixes that by setting the image ID as well as the image name
and fix the login to lookup for image ID as well.

Found while running `make test-e2e-node`.

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-01-31 16:32:27 +01:00
parent d6ab91be27
commit 2202c1a460
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
5 changed files with 105 additions and 3 deletions

View file

@ -350,7 +350,7 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
attempt := metadata.GetAttempt()
containerInfo, err := s.storage.CreateContainer(s.imageContext,
sb.name, sb.id,
image, "",
image, image,
containerName, containerID,
metaname,
attempt,