Ask Your Question
0

Should glance re-download an updated image from remote storage?

asked 2012-04-27 13:49:37 -0500

We have some situations where we need to update an image in our remote storage repository which glance pulls images from. When we do that, we adjust the size and checksum in the glance registry to match the updated image. Glance will pull the image from cache, notice that the size doesn't match, and fail.

Would it be worthwhile to have glance re-download the image from the remote storage repository in this type of situation? Or, is there a better way to update images in a remote repository with glance?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-04-27 14:17:06 -0500

Thanks, Eoghan. That makes sense.

edit flag offensive delete link more
0

answered 2012-04-27 14:15:09 -0500

eglynn gravatar image

A point of information - we discussed image content mutability at the recent summit (in the context of restartable image downloads), and the conclusion was that image data (as opposed to metadata) are intended to be strictly immutable.

So what you're doing is not intended to be supported AFAIK.

That's not to say we couldn't make the cache more tolerant as you suggest.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-04-27 13:49:37 -0500

Seen: 21 times

Last updated: Apr 27 '12