Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add capability to cache lxc images used for starting lxc containers #1205
Conversation
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Does not match ['fixes-1402826'] |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Generating tarball failed |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Does not match ['fixes-1403546', 'fixes-1403596'] |
wallyworld
added some commits
Nov 21, 2014
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Tests failed |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Tests failed |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Tests failed |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
wallyworld commentedNov 21, 2014
LXC image blobs are now cached in the state server blob store.
These changes do 2 things:
There's a few new moving parts to make this work:
This writes the image blobs and metadata to state storage.
This serves image blobs from the state blob store.
The -T parameter is used to instruct lxc-create to fetch the image blob from the state server rather than https://cloud-images.com
When the lxc-create script asks the state server for an image blob, if it is not yet in the database, the state server will fetch it from https://cloud-images, cache it in the blob store, and hand it back to lxc-create. When stored in the state server, the metadata includes the time at which the image was cached.
A similar workflow is already used to handle tools tarballs.
(Review request: http://reviews.vapour.ws/r/515/)