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

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

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

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

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

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

Thanks, Eoghan. That makes sense.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 39 times

Last updated: Apr 27 '12