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

treestore: detect changed image dependencies. #1198

Closed
sgotti opened this issue Jul 28, 2015 · 2 comments
Closed

treestore: detect changed image dependencies. #1198

sgotti opened this issue Jul 28, 2015 · 2 comments

Comments

@sgotti
Copy link
Contributor

sgotti commented Jul 28, 2015

If image example.com/a depends on example.com/b and if, for any reason, example.com/b changes (updated ACI on the remote server, new latest image url discovered, fetch from file etc...) the rendered image is different.
This isn't a problem with rkt without overlayfs as the image is rendered at any run/prepare but it's a problem with the treestore as it's used as the lowerdir of the overlayfs for that image.

Actually, the treestore id is the upper image hash. Since, in this case, the upper image hash isn't changed, it cannot be simply overwritten because it can be in use by a pod's overlayfs

I see two main needs:

  • Find a different way to name the treestore rendered images so they can be multiple for the same upper image and correctly referenced and cleaned.
  • Detect at rkt prepare/run time when a treestore should be re-rendered.
@sgotti
Copy link
Contributor Author

sgotti commented Aug 3, 2015

I started working on this.

@iaguis
Copy link
Member

iaguis commented Sep 28, 2015

Fixed via #1240

@iaguis iaguis closed this as completed Sep 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants