Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@yifan-gu
Copy link
Contributor

@yifan-gu yifan-gu commented Jan 6, 2016

This commit changes the way how List/Inspect pod fetches image manifest
for apps. Previously, the manifest is read from store, which will be empty
if the image is removed. Now the manifest is read from the image manifest
inside the pod directory, so it won't be affected by image removal.

However, some information like importtime, image size are not available
for List/Inspect pod after this change.

Should fix #1924 (comment)

cc @derekparker @jonboulle @krnowak

@yifan-gu
Copy link
Contributor Author

yifan-gu commented Jan 6, 2016

Rebased on #1938 and #1924

@yifan-gu yifan-gu force-pushed the resolve_key branch 2 times, most recently from e10e2de to 833c6ce Compare January 6, 2016 23:06
@yifan-gu
Copy link
Contributor Author

yifan-gu commented Jan 6, 2016

@jonboulle I think we should also consider:

  • whether rkt fetch should return a full size hash?
  • whether we should allow partial image hash in pod manifest?

@yifan-gu yifan-gu closed this Jan 7, 2016
@yifan-gu yifan-gu reopened this Jan 7, 2016
@jonboulle
Copy link
Contributor

Sorry, I don't understand either of your questions. can you elaborate/give an example?

@yifan-gu
Copy link
Contributor Author

yifan-gu commented Jan 7, 2016

  • the sha512 hash returned by rkt fetch is truncated.
rkt fetch coreos.com/etcd:v2.0.8
...
sha512-86aa5fa7158bf69d9b1078f2c557b971
rkt image list --full
sha512-86aa5fa7158bf69d9b1078f2c557b971315bf4304f3036c4518ebd26c7205cdf coreos.com/etcd:v2.0.8      
  • Both truncated and non-truncated hashes are allowed in PodManifest.Apps[i].Image.ID

This commit changes the way how List/Inspect pod fetches image
manifest for apps.

Previously, the manifest is read from store, which will be empty
if the image is removed. Now the manifest is read from the image
manifest inside the pod directory, so it won't be affected by
image removal.

However, some information like importtime, image size are not
available for List/Inspect pod after this change.
@jonboulle
Copy link
Contributor

Gotcha.

whether rkt fetch should return a full size hash?

Let's just add --full, IMHO

whether we should allow partial image hash in pod manifest?

No, I don't think so.

@yifan-gu
Copy link
Contributor Author

@jonboulle Created issues for the questions. Is this one ok to merge?

@jonboulle
Copy link
Contributor

LGTM

yifan-gu added a commit that referenced this pull request Jan 13, 2016
api_service: Use image manifest in the pod directory for List/Inspect pod
@yifan-gu yifan-gu merged commit 7bb295b into rkt:master Jan 13, 2016
@yifan-gu yifan-gu deleted the resolve_key branch January 13, 2016 18:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants